Get market order list
Usage
visionWeb.vs.getMarketOrderList(sellTokenName, buyTokenName);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
sellTokenName | Sell token name. | number|string | - |
buyTokenName | Buy token name. | number|string | - |
Returns
Array.
Example
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,
},
]