Skip to content

035query_order

ipqhjjybj edited this page Mar 3, 2020 · 8 revisions

Query Order

  • Request description: query order

  • Request type: POST

  • Signature required: Yes

  • Request Url:http://52.82.122.197:3000/api/v2/vapor/account/list-orders

  • Request parameter:

    name type description
    guid string the account id
    side string "buy" or "sell" , "" means both return
    filter dict states:["open","partial","filled","cancelled","submitted"]
  • Return value description:

    name type description
    symbol string the trading symbol
    side string buy or sell
    order_id int the id of the order
    open_price string the price that user input
    deal_price string the price that system deal
    amount string the volume that user send
    status string the condition status of the order
    client_id string the string that user input to identify order
    order_timestamp int the timestamp the order created
    update_timestamp int the timestamp that order status updated
  • Example:

# Request
POST http://52.82.122.197:3000/api/v2/vapor/account/list-orders

{
  'guid': '80f95d4c-65e0-4706-83d6-96e3184dddf7',
  'symbol': 'BTC/USDT',
  'side': '',
  'filter': {
    'states': ['open', 'partial']   
  }
}

status: ["open","partial","filled","cancelled","submitted"] 

submitted : 已提交订单,还未上链,这种订单无法撤销
open : 未成交
partial : 部分成交
filled : 全部成交
cancelled : 已撤单


side: ["", "buy", "sell"]

"", 指买单、卖单都查询
"buy", 指只查询买单
"sell", 指只查询卖单


# Response
{
  'code': 200,
  'msg': '',
  'result': {
    '_links': {},
    'data': [{
      'symbol': 'BTC/USDT',
      'side': 'buy',
      'order_id': 711076,
      'open_price': '6100.0000000000',
      'deal_price': '0.0000000000',
      'amount': '0.010000',
      'filled_amount': '0.000000',
      'status': 'open',
      'client_id': '123',
      'order_timestamp': 1579259999,
      'update_timestamp': 1579260001
    },
    {
      'symbol': 'BTC/USDT',
      'side': 'sell',
      'order_id': 710917,
      'open_price': '8829.7800000000',
      'deal_price': '0.0000000000',
      'amount': '2.643894',
      'filled_amount': '0.000000',
      'status': 'open',
      'client_id': '200113104801057734',
      'order_timestamp': 1579134385,
      'update_timestamp': 1579134610
    }],
    'limit': 1000,
    'start': 0
  }
}

MOV Trading API Introduction

MOV Exchange has such features.

HTTP API Introduction

Common API

Flash API

Spot API

WebSocket API Introduction


If any problems occur when using API, please contact us: support@8btc.com

Clone this wiki locally