Margin
Trade
Security Type: TRADE
Endpoints under Trade require an API-key and a signature.
New Order
POST
https://openapi.xxx.com/sapi/v1/margin/order
Rate Limit:100times/2s
Headers
X-CH-SIGN
string
Sign
X-CH-APIKEY
string
Your API-key
X-CH-TS
integer
timestamp
Request Body
symbol
string
Symbol Name. E.g. BTCUSDT
volume
number
Order vol. For MARKET BUY orders, vol=amount.
side
string
Side of the order, BUY/SELL
type
string
Type of the order, LIMIT/MARKET
price
number
Order price, REQUIRED for LIMIT orders
newClientOrderId
string
Unique order ID generated by users to mark their orders
recvWindow
string
Time window
Query Order
GET
https://openapi.xxx.com/sapi/v1/margin/order
Rate Limit: 20times/2s
Query Parameters
orderId
string
Order ID
newClientOrderId
string
Client Order Id, Unique order ID generated by users to mark their orders. E.g. 354444heihieddada
symbol
string
Symbol Name.E.g. BTCUSDT
Headers
X-CH-SIGN
string
Sign
X-CH-APIKEY
string
Your API-key
X-CH-TS
integer
timestamp
Cancel Order
POST
https://openapi.xxx.com/sapi/v1/margin/cancel
Rate Limit: 100times/2s
Headers
X-CH-SIGN
string
Sign
X-CH-APIKEY
string
Your API-key
X-CH-TS
integer
timestamp
Request Body
orderId
string
Order ID
newClientOrderId
string
Client Order Id, Unique order ID generated by users to mark their orders. E.g. 354444heihieddada
symbol
string
Symbol Name. E.g. BTCUSDT
Current Open Orders
GET
https://openapi.xxx.com/sapi/v1/margin/openOrders
Rate Limit: 20times/2s
Query Parameters
symbol
string
Symbol Name. E.g. BTCUSDT
limit
string
Default 100; Max 1000
Headers
X-CH-SIGN
string
Sign
X-CH-APIKEY
string
Your API-key
X-CH-TS
integer
timestamp
Trades
GET
https://openapi.xxx.com/sapi/v1/margin/myTrades
Rate Limit: 20times/2s
Query Parameters
symbol
string
Symbol Name. E.g. BTCUSDT
limit
string
Default 100; Max 1000
fromId
integer
Trade Id to fetch from
Headers
X-CH-SIGN
string
Sign
X-CH-APIKEY
string
Your API-key
X-CH-TS
integer
timestamp
Last updated