Skip to content

doc error + cancel_order vs flash_close_position? #3

@gvdhoven

Description

@gvdhoven

@tyler663 @BitunixOfficial

I am succesfully able to create trades (via /api/v1/futures/trade/place_order).
In case this is a limit order, i get returned an orderId.
In case it is a market order, i assume i also get an orderId back?

But when I want to close this order, i am a bit stuck:

For pending trades, I can use /api/v1/futures/trade/cancel_orders

But what if the order is (partially or completely filled) ?
How do i close one specific position at market price and what happens to the order that is pending (in case of a partially filled order)?
Obviously i have checked the GitHub code, but there is no sample for getting the positionid or how to close orders that are running.

Some API's like the flash close, requires a parameter "positionID" and i don't know how to get that.

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