Skip to content

035query_order

ipqhjjybj edited this page May 9, 2020 · 8 revisions

Query Order V2 Version

  • Request description: query order

  • Request type: POST

  • Signature required: Yes

  • Request Url:https://bcapi.movapi.com/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 https://bcapi.movapi.com/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 : already submited order, buy is not in chain, the order can't be cancelled! // 已提交订单,还未上链,这种订单无法撤销
open : the order is open, not traded // 未成交
partial : the order is open, part traded // 部分成交
filled : the order is closed, alltraded //全部成交
cancelled : the order is closed, cancelled // 已撤单


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

"", query buy,sell orders // 指买单、卖单都查询
"buy", only query buy orders // 指只查询买单
"sell", only query sell orders // 指只查询卖单


# 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
  }
}

Query Order V3 Version

  • Request description: query order

  • Request type: POST

  • Signature required: Yes

  • Request Url:https://bcapi.movapi.com/api/v3/vapor/account/list-orders?address=您的侧链地址

  • Request parameter:

    name type description
    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 https://bcapi.movapi.com/api/v3/vapor/account/list-orders?address=您的侧链地址

{
  'symbol': 'BTC/USDT',
  'side': '',
  'filter': {
    'states': ['open', 'partial']   
  }
}

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

submitted : already submited order, buy is not in chain, the order can't be cancelled! // 已提交订单,还未上链,这种订单无法撤销
open : the order is open, not traded // 未成交
partial : the order is open, part traded // 部分成交
filled : the order is closed, alltraded //全部成交
cancelled : the order is closed, cancelled // 已撤单


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

"", query buy,sell orders // 指买单、卖单都查询
"buy", only query buy orders // 指只查询买单
"sell", only query sell orders // 指只查询卖单


# 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