UNPKG

neverrekt-apis

Version:

APIs for NeverRekt

60 lines (59 loc) 1.81 kB
declare class Gateio { private key; private secret; private axios; private prefix; constructor(key?: string, secret?: string); private getSignature; private makeRequest; /** * @docs https://www.gate.io/docs/apiv4/en/index.html?python#list-all-currency-pairs-supported * @description List all currency pairs supported */ getAllCurrencyPairs(): Promise<{ id: string; base: string; quote: string; fee: string; min_base_amount: string; min_quote_amount: string; amount_precision: number; precision: number; trade_status: "untradable" | "buyable" | "sellable" | "tradable"; sell_start: number; buy_start: number; }[]>; /** * @docs https://www.gate.io/docs/apiv4/en/index.html?python#retrieve-ticker-information * @description Retrieve ticker information. Return only related data if currency_pair is specified; otherwise return all of them. */ getTickerInformation(params?: { currency_pair?: string; }): Promise<{ currency_pair: string; last: string; lowest_ask: string; highest_bid: string; change_percentage: string; base_volume: string; quote_volume: string; high_24h: string; low_24h: string; etf_net_value: string; etf_pre_net_value: string; etf_pre_timestamp: number; etf_leverage: string; }[]>; /** * @docs https://www.gate.io/docs/apiv4/en/index.html?python#list-spot-accounts * @description List spot accounts */ getSpotAccounts(params?: { currency?: string; }): Promise<{ currency: string; available: string; locked: string; }[]>; } export { Gateio };