getMarketPriceByPair

Get market price by pair.

Usage

visionWeb.vs.getMarketPriceByPair(sellTokenName, buyTokenName);

Parameters

ParameterDescriptionTypeDefault
sellTokenNameSell token name.number|string-
buyTokenNameBuy 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},
]