Get Market Liquidity

Retrieves liquidity per price tick from the engine. The engine will skip price levels that have no liquidity, so it is not guaranteed that the bids/asks are evenly spaced.

See getMarketLiquidity API reference for more details.

Makes a call to REST API > Queries > Market Liquidity via the SDK.

Usage

import { createVertexClient } from '@vertex-protocol/client';

const vertexClient = await createVertexClient('testnet', ...);
const res = await vertexClient.market.getMarketLiquidity(...);

Last updated