杠杆交易

交易

安全类型: TRADE

交易下方的接口都需要签名API Key验证

创建杠杆订单

POST https://openapi.xxx.xx/sapi/v1/margin/order

Headers

Request Body

{
    'symbol': 'LXTUSDT', 
    'orderId': '494736827050147840', 
    'clientOrderId': '157371322565051',
    'transactTime': '1573713225668', 
    'price': '0.005452', 
    'origQty': '110', 
    'executedQty': '0', 
    'status': 'NEW',
    'type': 'LIMIT', 
    'side': 'SELL'
}

权重(IP/UID): 5

杠杆订单查询

GET https://openapi.xxx.xx/sapi/v1/margin/order

Query Parameters

Headers

{
    'orderId': '499890200602846976', 
    'clientOrderId': '157432755564968', 
    'symbol': 'BHTUSDT', 
    'price': '0.01', 
    'origQty': '50', 
    'executedQty': '0', 
    'avgPrice': '0', 
    'status': 'NEW', 
    'type': 'LIMIT', 
    'side': 'BUY', 
    'transactTime': '1574327555669'
}

权重(IP/UID): 5

撤销杠杆订单

POST https://openapi.xxx.xx/sapi/v1/margin/cancel

Headers

Request Body

{
    'symbol': 'LXTUSDT', 
    'orderId': '494736827050147840', 
    'clientOrderId': '157371322565051',
    'transactTime': '1573713225668', 
    'price': '0.005452', 
    'origQty': '110', 
    'executedQty': '0', 
    'status': 'NEW',
    'type': 'LIMIT', 
    'side': 'SELL'
}

权重(IP/UID): 5

杠杆当前委托

GET https://openapi.xxx.xx/sapi/v1/margin/openOrders

权重(IP/UID): 5

Query Parameters

Headers

[
    {
        'orderId': '499902955766523648', 
        'symbol': 'BHTUSDT', 
        'price': '0.01', 
        'origQty': '50', 
        'executedQty': '0', 
        'avgPrice': '0', 
        'status': 'NEW', 
        'type': 'LIMIT', 
        'side': 'BUY', 
        'time': '1574329076202'
        },...
]

权重(IP/UID): 1

杠杆交易记录

GET https://openapi.xxx.xx/sapi/v1/margin/myTrades

Query Parameters

Headers

[
  {
    "symbol": "ETHBTC",
    "id": 100211,
    "bidId": 150695552109032492,
    "askId": 150695552109032493,
    "price": "4.00000100",
    "qty": "12.00000000",
    "time": 1499865549590,
    "isBuyer": true,
    "isMaker": false,
    "feeCoin": "ETH",
    "fee":"0.001"
  },...
]

权重(IP/UID): 1

Last updated