getMarket24h
The getMarket24h()
method of Nectar
instances returns 24-hour trading information for a market of the given symbol.
Usage
import { Nectar } from "@wasd3rplay/nectar-sdk";
const nectar = new Nectar();
const symbol = "WETH_ETHSEPOLIA:USDT_ETHSEPOLIA";
const quote = await nectar.getMarket24h(symbol);
Parameters
symbol: string
A market symbol.
It is a combination of a base ticker, a colon, and a quote ticker.
E.g.,
ETH_ETHSEPOLIA:USDT_ETHSEPOLIA
Returns
MarketQuote
24-hour trading information for a market of the given symbol.
Last updated