杠杆交易
Last updated
Was this helpful?
Last updated
Was this helpful?
交易下方的接口都需要
POST
https://openapi.xxx.com/sapi/v1/margin/order
限速规则:100次/2s
X-CH-SIGN
string
签名
X-CH-APIKEY
string
您的API-key
X-CH-TS
integer
时间戳
symbol
string
币对名称 E.g. BTCUSDT
volume
number
订单数量
side
string
订单方向, BUY/SELL
type
string
订单类型, LIMIT/MARKET
price
number
订单价格, 对于LIMIT
订单必须发送
newClientOrderId
string
客户端订单标识
recvWindow
string
时间窗口
GET
https://openapi.xxx.com/sapi/v1/margin/order
限速规则: 20次/2s
orderId
string
订单ID
newClientOrderId
string
客户端订单标识
symbol
string
币对名称E.g. BTCUSDT
X-CH-SIGN
string
签名
X-CH-APIKEY
string
您的API-key
X-CH-TS
integer
时间戳
POST
https://openapi.xxx.com/sapi/v1/margin/cancel
限速规则: 100次/2s
X-CH-SIGN
string
签名
X-CH-APIKEY
string
您的API-key
X-CH-TS
integer
时间戳
orderId
string
订单id
newClientOrderId
string
客户端订单标识
symbol
string
币对名称E.g. BTCUSDT
GET
https://openapi.xxx.com/sapi/v1/margin/openOrders
限速规则: 20次/2s
symbol
string
币对名称 E.g. BTCUSDT
limit
integer
默认100; 最大1000
X-CH-SIGN
string
签名
X-CH-APIKEY
string
您的API-key
X-CH-TS
integer
时间戳
GET
https://openapi.xxx.com/sapi/v1/margin/myTrades
限速规则: 20次/2s
symbol
string
币对名称 E.g. BTCUSDT
limit
string
默认100; 最大1000
fromId
integer
从这个tradeId开始检索
X-CH-SIGN
string
签名
X-CH-APIKEY
string
您的API-key
X-CH-TS
integer
时间戳