Cancel All CM Open Conditional Orders
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel all active LIMIT orders on specific symbol
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel All UM Algo Open Orders
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel All UM Open Conditional Orders
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel all active LIMIT orders on specific symbol
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel CM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
strategyId or newClientStrategyId must be sent.Request parameters.
Cancel an active LIMIT order
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Cancel Margin Account All Open Orders on a Symbol
Weight(IP): 5
Security Type: TRADE
Request parameters.
Cancel Margin Account OCO Orders
Weight(IP): 2
Security Type: TRADE
Notes:
Request parameters.
Cancel Margin Account Order
Weight(IP): 2
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Cancel an active UM algo order
Weight(IP): 1
Security Type: TRADE
Notes:
algoId or clientAlgoId must be sent.OptionalrequestParameters: CancelUmAlgoOrderRequestRequest parameters.
Cancel UM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
strategyId or newClientStrategyId must be sent.Request parameters.
Cancel an active UM LIMIT order
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Get trades for a specific account and CM symbol.
Weight: - 20 with symbol
pairSecurity Type: USER_DATA
Notes:
symbol or pair must be sentsymbol and pair cannot be sent togetherpair and fromId cannot be sent togetherOrderId can only be sent together with symbolpair is sent, tickers for all symbols of the pair will be returnedfromId cannot be sent with startTime or endTimestartTime and endTime are both not sent, then the last '24 hours' data will be returned.startTime and endTime cannot be longer than 24 hours.OptionalrequestParameters: CmAccountTradeListRequestRequest parameters.
Query CM Position ADL Quantile Estimation Values update every 30s. Values 0, 1, 2, 3, 4 shows the queue position and possibility of ADL from low to high. For positions of the symbol are in One-way Mode or isolated margined in Hedge Mode, "LONG", "SHORT", and "BOTH" will be returned to show the positions' adl quantiles of different position sides. If the positions of the symbol are crossed margined in Hedge Mode: "HEDGE" as a sign will be returned instead of "BOTH"; A same value caculated on unrealized pnls on long and short sides' positions will be shown for "LONG" and "SHORT" when there are positions in both of long and short sides.
Weight(IP): 5
Security Type: USER_DATA
OptionalrequestParameters: CmPositionAdlQuantileEstimationRequestRequest parameters.
Sign TradFi-Perps agreement contract
Weight(IP): 5
Security Type: USER_DATA
OptionalrequestParameters: DerivativesTradingPortfolioMarginRestAPI.FuturesTradfiPerpsContractRequestRequest parameters.
Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
Weight(IP): 30
Security Type: USER_DATA
OptionalrequestParameters: GetUmFuturesBnbBurnStatusRequestRequest parameters.
Apply for a margin loan.
Weight(IP): 100
Security Type: MARGIN
Request parameters.
Send in a new OCO for a margin account
Weight(IP): 1
Security Type: TRADE
Notes:
SELL: Limit Price > Last Price > Stop PriceBUY: Limit Price * Quantity Restrictions:ICEBERG quantities however do not have to be the same.OCO counts as 2 orders against the order rate limit.Request parameters.
Repay for a margin loan.
Weight(IP): 100
Security Type: MARGIN
Request parameters.
Repay debt for a margin loan.
Weight(IP): 3000
Security Type: TRADE
Notes:
amount is not sent, all the asset loan will be repaid if having enough specific repay assets.amount is sent, only the certain amount of the asset loan will be repaid if having enough specific repay assets.specifyRepayAssetsRequest parameters.
Margin Account Trade List
Weight(IP): 5
Security Type: USER_DATA
Notes:
fromId is set, returns orders with id >= fromId; otherwise returns recent order history.startTime and endTime must be less than 24 hours.Request parameters.
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.quantity and price must be sentquantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.quantity * When the order is GTX and the new price will cause it to be executed immediatelyRequest parameters.
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight(IP): 1
Security Type: TRADE
Notes:
Request parameters.
New CM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
STOP/TAKE_PROFIT, parameter timeInForce can be sent ( default GTC).STOP, STOP_MARKET:stopPricestopPriceTRAILING_STOP_MARKET:callbackRate)activationPrice, and the latest mark price = stopPricestopPriceRequest parameters.
Place new CM order
Weight(IP): 1
Security Type: TRADE
Notes:
type:newOrderRespType is sent as RESULT :MARKET order: the final FILLED result of the order will be return directly.LIMIT order with special timeInForce: the final status result of the order(FILLED or EXPIRED) will be returned directly.Request parameters.
New Margin Order
Weight(IP): 1
Security Type: TRADE
Request parameters.
Place new UM conditional order
Weight(IP): 1
Security Type: TRADE
Notes:
STOP, parameter timeInForce can be sent (default GTC).TAKE_PROFIT, parameter timeInForce can be sent (default GTC).triggerPrice.STOP, STOP_MARKET: BUY: latest price >= triggerPrice; SELL: latest price <= triggerPrice.TAKE_PROFIT, TAKE_PROFIT_MARKET: BUY: latest price <= triggerPrice; SELL: latest price >= triggerPrice.TRAILING_STOP_MARKET: BUY: lowest price after order placed <= activatePrice, and latest price >= lowest price * (1 + callbackRate); SELL: highest price after order placed >= activatePrice, and latest price <= highest price * (1 - callbackRate).selfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.Request parameters.
Place new UM conditional order
Weight(IP): 1
Security Type: TRADE
Notes:
STOP/TAKE_PROFIT, parameter timeInForce can be sent ( default GTC).STOP, STOP_MARKET:stopPricestopPriceTRAILING_STOP_MARKET:callbackRate)activationPrice, and the latest mark price = stopPricestopPriceselfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.GTD order auto cancel time might be delayed comparing to goodTillDateRequest parameters.
Place new UM order
Weight(IP): 1
Security Type: TRADE
Notes:
newOrderRespType is sent as RESULT :MARKET order: the final FILLED result of the order will be return directly.LIMIT order with special timeInForce: the final status result of the order(FILLED or EXPIRED) will be returned directly.selfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.GTD order auto cancel time might be delayed comparing to goodTillDateRequest parameters.
Query All CM Conditional Orders
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
CANCELED or EXPIRED, ANDOptionalrequestParameters: QueryAllCmConditionalOrdersRequestRequest parameters.
Get all account CM orders; active, canceled, or filled.
Weight: - 20 with symbol
pairSecurity Type: USER_DATA
Notes:
symbol or pair must be sent.orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.CANCELED or EXPIRED, ANDOptionalrequestParameters: QueryAllCmOrdersRequestRequest parameters.
Get all open conditional orders on a symbol. Careful when accessing this with no symbol.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
OptionalrequestParameters: QueryAllCurrentCmOpenConditionalOrdersRequestRequest parameters.
Get all open orders on a symbol.
If the symbol is not sent, orders for all symbols will be returned in an array.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
OptionalrequestParameters: QueryAllCurrentCmOpenOrdersRequestRequest parameters.
Get all UM open algo orders on a symbol. If the symbol is not sent, orders for all symbols will be returned.
Weight(IP): 1
Security Type: USER_DATA
Notes:
OptionalrequestParameters: QueryAllCurrentUmOpenAlgoOrdersRequestRequest parameters.
Get all open conditional orders on a symbol.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
symbol is not provided, conditional open orders for all symbols are returned.OptionalrequestParameters: QueryAllCurrentUmOpenConditionalOrdersRequestRequest parameters.
Get all open orders on a symbol.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
OptionalrequestParameters: QueryAllCurrentUmOpenOrdersRequestRequest parameters.
Query All Margin Account Orders
Weight(IP): 100
Security Type: USER_DATA
Notes:
orderId is set, returns orders with id >= orderId; otherwise returns recent order history.cummulativeQuoteQty < 0 means the data is unavailable at this time.Request parameters.
Query All UM Conditional Orders
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
CANCELED or EXPIRED, ANDOptionalrequestParameters: QueryAllUmConditionalOrdersRequestRequest parameters.
Get all account UM orders; active, canceled, or filled.
Weight(IP): 5
Security Type: USER_DATA
Notes:
orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.Request parameters.
Query CM Conditional Order History
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.NEW orders will not be found.CANCELED or EXPIRED, ANDRequest parameters.
Get order modification history
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.Request parameters.
Check an CM order's status.
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.CANCELED or EXPIRED, ANDRequest parameters.
Query Current CM Open Conditional Order
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.Request parameters.
Query current CM open order
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Query Current Margin Open Order
Weight(IP): 5
Security Type: USER_DATA
Notes:
symbol is not sent, order records for all symbols are returned.Request parameters.
Check an UM algo order's status. Orders will not be found if: status is CANCELED/EXPIRED with no fills and created 3+ days ago; or created 90+ days ago.
Weight(IP): 1
Security Type: USER_DATA
Notes:
algoId or clientAlgoId must be sent. algoId is self-increment for each specific symbol.OptionalrequestParameters: QueryCurrentUmOpenAlgoOrderRequestRequest parameters.
Query Current UM Open Conditional Order
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.CANCELED, TRIGGERED or EXPIRED, the error message "Order does not exist" will be returned.Request parameters.
Query current UM open order
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Query Margin Account Order
Weight(IP): 10
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.cummulativeQuoteQty < 0 means the data is unavailable at this time.Request parameters.
Query all OCO for a specific margin account based on provided optional parameters
Weight(IP): 100
Security Type: USER_DATA
OptionalrequestParameters: DerivativesTradingPortfolioMarginRestAPI.QueryMarginAccountsAllOcoRequestRequest parameters.
Retrieves a specific OCO based on provided optional parameters
Weight(IP): 5
Security Type: USER_DATA
OptionalrequestParameters: DerivativesTradingPortfolioMarginRestAPI.QueryMarginAccountsOcoRequestRequest parameters.
Query Margin Account's Open OCO
Weight(IP): 5
Security Type: USER_DATA
OptionalrequestParameters: DerivativesTradingPortfolioMarginRestAPI.QueryMarginAccountsOpenOcoRequestRequest parameters.
Get all algo orders: ACTIVE, CANCELED, TRIGGERED or FINISHED.
Weight(IP): 5
Security Type: USER_DATA
Notes:
algoId is set, it will get orders >= that algoId. Otherwise most recent orders are returned.Request parameters.
Query UM Conditional Order History
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.NEW orders will not be found.CANCELED or EXPIRED, ANDRequest parameters.
Get order modification history
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.Request parameters.
Check an UM order's status.
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.CANCELED or EXPIRED, ANDRequest parameters.
Query User's CM Force Orders
Weight: - 20 with symbol
symbolSecurity Type: USER_DATA
Notes:
OptionalrequestParameters: QueryUsersCmForceOrdersRequestRequest parameters.
Query user's margin force orders
Weight(IP): 1
Security Type: USER_DATA
OptionalrequestParameters: QueryUsersMarginForceOrdersRequestRequest parameters.
Query User's UM Force Orders
Weight: - 20 with symbol
symbolSecurity Type: USER_DATA
Notes:
autoCloseType is not sent, orders with both of the types will be returnedstartTime is not sent, data within 7 days before endTime can be queriedOptionalrequestParameters: QueryUsersUmForceOrdersRequestRequest parameters.
Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on EVERY symbol
Weight(IP): 1
Security Type: TRADE
Notes:
Request parameters.
Get trades for a specific account and UM symbol.
Weight(IP): 5
Security Type: USER_DATA
Notes:
startTime and endTime are both not sent, then the last '7 days' data will be returned.startTime and endTime cannot be longer than 7 days.fromId cannot be sent with startTime or endTime.Request parameters.
Query UM Position ADL Quantile Estimation
Values update every 30s. Values 0, 1, 2, 3, 4 shows the queue position and possibility of ADL from low to high. For positions of the symbol are in One-way Mode or isolated margined in Hedge Mode, "LONG", "SHORT", and "BOTH" will be returned to show the positions' adl quantiles of different position sides. If the positions of the symbol are crossed margined in Hedge Mode: "HEDGE" as a sign will be returned instead of "BOTH"; A same value caculated on unrealized pnls on long and short sides' positions will be shown for "LONG" and "SHORT" when there are positions in both of long and short sides.
Weight(IP): 5
Security Type: USER_DATA
OptionalrequestParameters: UmPositionAdlQuantileEstimationRequestRequest parameters.
TradeApi - interface TradeApi