UNPKG

neverrekt-apis

Version:

APIs for NeverRekt

67 lines (66 loc) 1.92 kB
declare class Mxc { private accessKey; private secretKey; private axios; constructor(accessKey?: string, secretKey?: string); private getSignature; private makeRequest; /** * @docs https://mxcdevelop.github.io/APIDoc/open.api.v2.en.html#all-symbols * @description List all market pairs symbols supported. */ getAllMarketSymbols(): Promise<{ code: number; data: { symbol: string; state: string; price_scale: number; quantity_scale: number; min_amount: string; max_amount: string; maker_fee_rate: string; taker_fee_rate: string; }[]; }>; /** * @docs https://mxcdevelop.github.io/APIDoc/open.api.v2.en.html#ticker-information * @description Retrieve ticker information of required pair symbol. If pair symbol is not provided, return all symbols. */ getTickerInformation(params?: { symbol?: string; }): Promise<{ code: number; data: { symbol: string; volume: string; high: string; low: string; bid: string; ask: string; open: string; last: string; time: number; change_rate: string; }[]; }>; /** * @docs https://mxcdevelop.github.io/APIDoc/open.api.v2.en.html#current-system-time * @description Retrieve the system time. */ getCurrentSystemTime(): Promise<{ code: number; data: number; }>; /** * @docs https://mxcdevelop.github.io/APIDoc/open.api.v2.en.html#balance * @description Balance information of each currency */ getAccountBalance(): Promise<{ code: number; data: Record<string, { frozen: string; available: string; }>; }>; } export { Mxc };