getTrades

The getTrades() method of Nectar instances returns recent trades.

Usage

import { Nectar } from "@wasd3rplay/nectar-sdk";

const nectar = new Nectar();

const symbol = "WETH_ETHSEPOLIA:USDT_ETHSEPOLIA";

const trades = await nectar.getTrades(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

  • Trade[]

    • Recent trades.

Last updated