nestjs-ccxt
Version:
CCXT module for Nest framework (node.js) 🚀
16 lines (15 loc) • 574 B
TypeScript
import * as ccxt from 'ccxt';
import { OnModuleInit } from '@nestjs/common';
import { CcxtModuleOptions } from '.';
export declare class CcxtService implements OnModuleInit {
private readonly options;
private _clients;
private _lastMarketsFetch;
constructor(options: CcxtModuleOptions);
onModuleInit(): Promise<void>;
private loadExchange;
private loadExchangeMarkets;
private getExchange;
private marketsCacheExpired;
getClient(exchangeId: ccxt.ExchangeId, options?: Partial<ccxt.Exchange>): Promise<ccxt.Exchange>;
}