getOpenOrders
The getOpenOrders()
method of Nectar
instances returns open orders placed on the market of the given symbol.
Usage
import { Nectar } from "@wasd3rplay/nectar-sdk";
const nectar = new Nectar();
const symbol = "WETH_ETHSEPOLIA:USDT_ETHSEPOLIA";
const openOrders = await nectar.getOpenOrders({ symbol, page: 2 });
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
page?: number
Optional
Defaults to
1
A page number.
Returns
Paginated<Order>
Paginated open orders.
Last updated