getMarketOrderList

查询市场交易订单列表。

用法

visionWeb.vs.getMarketOrderList(sellTokenName, buyTokenName);

入参

参数描述类型默认值
sellTokenName出售的代币名称number|string-
buyTokenName购买的代币名称number|string-

返回值

array,查询到的市场交易列表。

示例

visionWeb.vs.getMarketOrderList('1000001', '1000002');
> [
  {
    order_id:
      '819c599619160f9a5bac6beca1dd5939fda9a989c51cd747d34ecdd185f54981',
    owner_address: '4609f4ec5afca1d0f1d52d134f86c537be2f88bcad',
    create_time: 1609482570000,
    sell_token_id: '31303030303031',
    sell_token_quantity: 1500,
    buy_token_id: '31303030303032',
    buy_token_quantity: 4400,
    sell_token_quantity_remain: 1500,
  },
  {
    order_id:
      '310af06708e896f79b478edced85bd97e5d3c3b655e4dd6a1286aa21431fd4a9',
    owner_address: '46e3566fef444dcd7fcb6cabc0855ef5b087fc893e',
    create_time: 1609482522000,
    sell_token_id: '31303030303031',
    sell_token_quantity: 100,
    buy_token_id: '31303030303032',
    buy_token_quantity: 500,
    sell_token_quantity_remain: 100,
  },
  {
    order_id:
      '5d05a731c7083d6262b1a56fa07fac87cceba52af64c8b1c3937f7ff05ea99a9',
    owner_address: '4609f4ec5afca1d0f1d52d134f86c537be2f88bcad',
    create_time: 1609482558000,
    sell_token_id: '31303030303031',
    sell_token_quantity: 1100,
    buy_token_id: '31303030303032',
    buy_token_quantity: 6400,
    sell_token_quantity_remain: 1100,
  },
]