import { CoinSymbol, News } from '../..'; import { CurrencySymbol } from '../../constants'; import { AggregateCryptoData, CoinWithMetadata, Historical, Milliseconds, Nullable, RecipeIngredientVariable, RecipeTimeRange, Ticker } from '../../models'; import { OptionalAuthRequest } from '../common'; /** * GetMarketData */ export interface GetMarketDataRequest extends OptionalAuthRequest { coin: CoinSymbol; ingredients?: RecipeIngredientVariable[]; } export declare type GetMarketDataResponse = Nullable; /** * Gets market data. * @param userToken The token of the user. * @param coin The coin to find market data for. * @param ingredients The ingredients (technicals) to output. */ export declare const GetMarketData: import("../common").ProtocolFunction>; /** * GetLatestTickers */ export interface GetLatestTickersRequest extends OptionalAuthRequest { coin: CoinSymbol; } export declare type GetLatestTickersResponse = Ticker[]; /** * Gets market data for the past 24 hours. * @param userToken The token of the user. * @param coin The coin to find market data for. */ export declare const GetLatestTickers: import("../common").ProtocolFunction; /** * GetLatestTicker */ export interface GetLatestTickerRequest extends OptionalAuthRequest { coin: CoinSymbol; } export declare type GetLatestTickerResponse = Nullable; /** * Gets the latest ticker for a coin. * @param userToken The token of the user. * @param coin The coin to find market data for. */ export declare const GetLatestTicker: import("../common").ProtocolFunction>; /** * GetHistoricalMarketData */ export interface GetHistoricalMarketDataRequest extends OptionalAuthRequest { coin: CoinSymbol; range: RecipeTimeRange; ingredients?: RecipeIngredientVariable[]; } export declare type GetHistoricalMarketDataResponse = Nullable; /** * Gets historical market data. * @param userToken The token of the user. * @param coin The coin to find market data for. * @param range The time range to get the data for. * @param ingredients The ingredients (technicals) to output. */ export declare const GetHistoricalMarketData: import("../common").ProtocolFunction>; /** * GetNews */ export interface GetNewsRequest extends OptionalAuthRequest { coin: CoinSymbol; } export declare type GetNewsResponse = News[]; export declare const GetNews: import("../common").ProtocolFunction; /** * GetHistoricalNews */ export interface GetHistoricalNewsRequest extends OptionalAuthRequest { coin: CoinSymbol; startTimestamp: Milliseconds; endTimestamp: Milliseconds; } export declare type GetHistoricalNewsResponse = News[]; export declare const GetHistoricalNews: import("../common").ProtocolFunction; /** * GetCoins */ export interface GetCoinsRequest extends OptionalAuthRequest { /** A query to search available coins for. If absent, returns all coins. */ query?: string; /** A limit for the number of coins returned. Defaults to 10. */ limit?: number; } export interface GetCoinsResponse { coins: CoinWithMetadata[]; } export declare const GetCoins: import("../common").ProtocolFunction; /** * GetCoinBySymbol */ export interface GetCoinBySymbolRequest extends OptionalAuthRequest { symbol: string; } export interface GetCoinBySymbolResponse { coin?: CoinWithMetadata; } export declare const GetCoinBySymbol: import("../common").ProtocolFunction; /** * GetAggregateCryptoData */ export interface GetAggregateCryptoDataRequest extends OptionalAuthRequest { currency?: CurrencySymbol; } export declare type GetAggregateCryptoDataResponse = AggregateCryptoData; export declare const GetAggregateCryptoData: import("../common").ProtocolFunction;