request interface

/Trade/tradeMarketOrder

additional restrictions

Parameter Required Type Notes
symbol Yes string Trading pair name such as btc_usdt
number No float Must be passed when selling, pass in the quantity
total No float Must be passed when buying, and pass in the cost amount
side Yes string Type buy: buy sell: sell
client_user_id No string User-defined user_id

return data example

{
  "status": 200, //status 200 successful
  "source": "API",
  "msg": "OK", //return OK if status is 200 otherwise return FAIL
  "data": {
    "order_id": 1324800, //order ID
    "user_id": 100000665, //system user ID
    "client_user_id": 157489, //user defined user ID
    "symbol": "btc_usdt", //trade pair name
    "side": "buy", //type buy/sell
    "total": "2000.88", //total price of the order
    "over_num": "0", //remaining quantity
    "deal_num": "0.05", //deal quantity
    "deal_total": "2000.88", //total cost of the transacted order
    "deal_avg_price": "36262.96", //average price
    "fee": "0", //fees
    "status": 2 //status 0-not filled|1-partially filled|2-all filled|3-cancelled
  },
  "seconds": 1625055537, //second timestamp
  "microtime": 1625055537833 // millisecond timestamp
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""

      results matching ""

        No results matching ""