import { ICryptoExchanges } from "./cryptoExchanges"; import { ILastTradeForACryptoPair } from "./lastTradeForACryptoPair"; import { ICryptoSnapshotSingleTickerFormatted, ICryptoSnapshotAllTickersFormatted, ICryptoSingleTickerFullBookFormatted } from "./snapshots"; import { IHistoricCryptoTradeQuery, IHistoricCryptoTradeFormatted } from "./historicCryptoTrades"; import { IAggregateQuery, IAggResponseFormatted } from "../stocks/aggregates"; import { ICryptoDailyOpenCloseFormatted } from "./ICryptoTickJson"; export { ICryptoExchanges } from "./cryptoExchanges"; export { ILastTradeForACryptoPair } from "./lastTradeForACryptoPair"; export { ICryptoSnapshotSingleTickerFormatted, ICryptoSnapshotAllTickersFormatted, ICryptoSingleTickerFullBookFormatted } from "./snapshots"; export { IAggregateQuery, IAggResponseFormatted } from "../stocks/aggregates"; export { IHistoricCryptoTradeQuery, IHistoricCryptoTradeFormatted } from "./historicCryptoTrades"; export { ICryptoDailyOpenCloseFormatted } from "./ICryptoTickJson"; export interface ICryptoClient { dailyOpenClose: (from: string, to: string, date: string) => Promise; exchanges: () => Promise; lastTradeForPair: (from: string, to: string) => Promise; historicTrades: (from: string, to: string, date: string, query?: IHistoricCryptoTradeQuery) => Promise; snapshotSingleTicker: (ticker: string) => Promise; snapshotAllTickers: () => Promise; snapshotGainersLosers: (direction?: string) => Promise; snapshotSingleTickerFullBook: (ticker: string) => Promise; previousClose: (ticker: string, query?: IAggregateQuery) => Promise; aggregates: (ticker: string, multiplier: number, timespan: string, from: string, to: string, query?: IAggregateQuery) => Promise; groupedDaily: (locale: string, market: string, date: string, query?: IAggregateQuery) => Promise; } export declare const cryptoClient: (apiKey: any, apiBase?: string) => ICryptoClient; export default cryptoClient;