UNPKG

@coinset/zaif

Version:

Zaif API client for Node.js

25 lines 661 B
import type { ZaifPair } from '../../shared/types/currency'; import type { PublicAPI } from '../../shared/types'; declare type DepthOptions = { pair: ZaifPair; }; /** * Set of price and amount * * @remarks First is price, second is amount */ declare type PriceAmountSet = [number, number]; declare type DepthResponse = { asks: PriceAmountSet[]; bids: PriceAmountSet[]; }; /** * @throws `Error` * * @see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id34 * @beta */ declare const fetchDepth: PublicAPI<DepthOptions, DepthResponse>; export { fetchDepth }; export type { DepthResponse }; //# sourceMappingURL=depth.d.ts.map