Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

close_position() doesn't account for position_idx #83

@dextertd

Description

@dextertd

Recently, position mode switch was released for USDT perp, which means position_idx is a required parameter when in single position mode. https://bybit-exchange.github.io/docs/linear/#2021-12-28

In pybit Custom Endpoints there is a command close_position(), but it seems need modification, it dosent accept 'position_idx' and without it returns error:
pybit.exceptions.InvalidRequestError: Position idx not match position mode (ErrCode: 130001)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions