Skip to main content

Update self trade strategy

PUT 

/self-trade-strategy

Updates account-wide self-trade matching behavior to given strategy.

Request

Query Parameters

    strategy SelfTradeStrategyrequired

    Possible values: [REJECT_TAKER, CANCEL_MAKER_SELF, CANCEL_MAKER_CHILD, CANCEL_MAKER_ANY]

    Defines self trade behaviour

Responses

Self trade strategy was successfully updated

Schema
    oneOf
    strategy SelfTradeStrategy (string)required

    Possible values: [REJECT_TAKER, CANCEL_MAKER_SELF, CANCEL_MAKER_CHILD, CANCEL_MAKER_ANY]

    Self trade matching behaviour:

    • REJECT_TAKER - default behaviour, rejects the taker order that would match against a maker order from any sub-account
    • CANCEL_MAKER_SELF - only cancels the maker order if it is from the same account that sent the taker order
    • CANCEL_MAKER_CHILD - only allows master to cancel its own maker orders and orders from its sub-account
    • CANCEL_MAKER_ANY - allows both master accounts and their subaccounts to cancel maker orders
    result stringrequired

    Possible values: [success]

    serverTime date-timerequired

    Server time in Coordinated Universal Time (UTC)

Loading...