Get market price by pair.
Usage
visionWeb.vs.getMarketPriceByPair(sellTokenName, buyTokenName);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
sellTokenName | Sell token name. | number|string | - |
buyTokenName | Buy token name. | number|string | - |
Returns
Array
Example
visionWeb.vs.getMarketPriceByPair('1000001', '1000002');
> [
{sell_token_quantity: 15, buy_token_quantity: 44},
{sell_token_quantity: 1, buy_token_quantity: 5},
{sell_token_quantity: 11, buy_token_quantity: 64},
]