getMarkets24hrSummary
Summarizes the trading data of all markets over the past 24 hours and provides the information through this method:
import { Nectar } from "@wasd3rplay/nectar-sdk";
const nectar = new Nectar();
const summaries = await nectar.getMarkets24hrSummary();Result
The result of this method is a list of markets' 24hr summaries:
e.g.
[
{
symbol: 'ETH_ETH:USDT_ETH',
base_ticker: 'ETH_ETH',
base_ticker_display: 'ETH',
quote_ticker: 'USDT_ETH',
quote_ticker_display: 'USDT',
last_price: '1233000000',
price_change: '0',
price_change_percent: '0'
},
...
]symbolThe market symbol
The symbol expression is a combination of
base_ticker, a colon (':'), andquote_ticker.
base_tickerThe base token of the market to buy or sell
The ticker expression is combination of token symbol, an underscore('_'), and the blockchain (network) symbol. So, the above example shows that the base token is the token with the symbol
ETHprovided by Ethereum (ETH) network.
base_ticker_displayHow to display the base token in the UI
quote_tickerThe quote token of the market used to buy or sell the base token as the currency
The ticker expression is combination of token symbol, an underscore('_'), and the blockchain (network) symbol. So, the above example shows that the quote token is the token with the symbol
USDTprovided by Ethereum (ETH) network.
quote_ticker_displayHow to display the quote token in the UI
last_priceThe last traded price of the market
price_changeThe price change over the last 24 hours
price_change_percentThe percentage change in price over the last 24 hours