UNPKG

neverrekt-apis

Version:

APIs for NeverRekt

73 lines (72 loc) 2.06 kB
export declare type BittrexParams = { SECRET: string; KEY: string; SUBACCOUNT: string; }; declare class Bittrex { private SECRET; private KEY; private SUBACCOUNT; private axios; prefix: string; constructor(SECRET: string, KEY: string); private getContentHash; private getSignature; private makeRequest; /** * @docs https://bittrex.github.io/api/v3#operation--markets-get * @description Request via this endpoint to get a list of available currency pairs for trading. */ getMarketList(): Promise<{ symbol: string; baseCurrencySymbol: string; quoteCurrencySymbol: string; minTradeSize: number; precision: number; status: string; createdAt: string; notice: string; prohibitedIn: string; associatedTermsOfService: string[]; tags: string[]; }[]>; /** * @docs https://bittrex.github.io/api/v3#operation--markets-tickers-get * @description Request market tickers for all the trading pairs in the market (including 24h volume) */ getTickerInformation(): Promise<{ symbol: string; lastTradeRate: string; bidRate: number; askRate: number; }[]>; /** * @docs https://bittrex.github.io/api/v3#operation--currencies-get * @description Request all currencies supported */ getCurrencies(): Promise<{ symbol: string; name: string; coinType: string; status: string; minConfirmations: number; notice: string; txFee: number; logoUrl: string; prohibitedIn: string; baseAddress: string; associatedTermsOfService: string; tags: string; }[]>; /** * @docs https://bittrex.github.io/api/v3#operation--balances-get * @description Get account balances */ getBalances(): Promise<{ currencySymbol: string; total: number; available: number; updatedAt: string; }[]>; } export { Bittrex };