UNPKG

@coinset/bitmart

Version:

Universal BitMart API client

16 lines (15 loc) 685 B
import { SuccessResponse } from "./_utils.js"; import { reviver, TickerData } from "./ticker.js"; export declare type TickersResponse = SuccessResponse<{ tickers: TickerData[]; }>; /** Ticker is an overview of the market status of a trading pair, including the latest trade price, top bid and ask prices and 24-hour trading volume. * ```ts * import { fetchTickers } from "https://deno.land/x/bitmart@$VERSION/mod.ts" * await fetchTickers() * ``` * @note The fetched data is cached for 5 minutes. * @see https://developer-pro.bitmart.com/en/spot/quotation/ticker.html */ export declare function fetchTickers(init?: RequestInit): Promise<TickersResponse>; export { reviver };