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'
  },
  ...
]
  • symbol

    • The market symbol

    • The symbol expression is a combination of base_ticker, a colon (':'), and quote_ticker.

  • base_ticker

    • The 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 ETH provided by Ethereum (ETH) network.

  • base_ticker_display

    • How to display the base token in the UI

  • quote_ticker

    • The 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 USDT provided by Ethereum (ETH) network.

  • quote_ticker_display

    • How to display the quote token in the UI

  • last_price

    • The last traded price of the market

  • price_change

    • The price change over the last 24 hours

  • price_change_percent

    • The percentage change in price over the last 24 hours