import { AxiosResponse } from "axios"; import { CryptoQuote, CryptoTrade, CryptoBar, CryptoSnapshot, CryptoOrderbook, AlpacaSnapshot, AlpacaQuote, AlpacaTrade, AlpacaBar, AlpacaNews, AlpacaOptionBar, AlpacaOptionTrade, AlpacaOptionQuote, AlpacaOptionSnapshot, CorporateActions } from "./entityv2"; export declare enum Adjustment { RAW = "raw", DIVIDEND = "dividend", SPLIT = "split", ALL = "all" } export declare enum TYPE { TRADES = "trades", QUOTES = "quotes", BARS = "bars", SNAPSHOTS = "snapshots" } export declare function dataV2HttpRequest(url: string, queryParams: any, config: any): Promise>; export declare function getDataV2(endpoint: TYPE, path: string, options: any, config: any): AsyncGenerator; export declare function getMultiDataV2(symbols: Array, url: string, endpoint: string, options: any, config: any): AsyncGenerator<{ symbol: string; data: any; }, void, unknown>; export interface GetTradesParams { start?: string; end?: string; pageLimit?: number; limit?: number; feed?: string; asof?: string; page_token?: string; sort?: Sort; } export declare function getTrades(symbol: string, options: GetTradesParams, config: any): AsyncGenerator; export declare function getMultiTrades(symbols: Array, options: GetTradesParams, config: any): Promise>; export declare function getMultiTradesAsync(symbols: Array, options: GetTradesParams, config: any): AsyncGenerator; export interface GetQuotesParams { start?: string; end?: string; pageLimit?: number; limit?: number; feed?: string; asof?: string; page_token?: string; sort?: Sort; } export declare function getQuotes(symbol: string, options: GetQuotesParams, config: any): AsyncGenerator; export declare function getMultiQuotes(symbols: Array, options: GetQuotesParams, config: any): Promise>; export declare function getMultiQuotesAsync(symbols: Array, options: GetQuotesParams, config: any): AsyncGenerator; export interface GetBarsParams { timeframe: string; adjustment?: Adjustment; start?: string; end?: string; pageLimit?: number; limit?: number; feed?: string; asof?: string; page_token?: string; sort?: Sort; } export declare function getBars(symbol: string, options: GetBarsParams, config: any): AsyncGenerator; export declare function getMultiBars(symbols: Array, options: GetBarsParams, config: any): Promise>; export declare function getMultiBarsAsync(symbols: Array, options: GetBarsParams, config: any): AsyncGenerator; export declare function getLatestTrade(symbol: string, config: any): Promise; export declare function getLatestTrades(symbols: Array, config: any): Promise>; export declare function getLatestQuote(symbol: string, config: any): Promise; export declare function getLatestQuotes(symbols: Array, config: any): Promise>; export declare function getLatestBar(symbol: string, config: any): Promise; export declare function getLatestBars(symbols: Array, config: any): Promise>; export declare function getSnapshot(symbol: string, config: any): Promise; export declare function getSnapshots(symbols: Array, config: any): Promise; export interface GetCryptoTradesParams { start?: string; end?: string; limit?: number; pageLimit?: number; sort?: Sort; } export declare function getCryptoTrades(symbols: string[], options: GetCryptoTradesParams, config: any): Promise>; export interface GetCryptoQuotesParams { start?: string; end?: string; limit?: number; pageLimit?: number; sort?: Sort; } export declare function getCryptoQuotes(symbols: string[], options: GetCryptoQuotesParams, config: any): Promise>; export interface GetCryptoBarsParams { start?: string; end?: string; timeframe: string; limit?: number; pageLimit?: number; sort?: Sort; } export declare function getCryptoBars(symbols: string[], options: GetCryptoBarsParams, config: any): Promise>; export declare function getLatestCryptoBars(symbols: Array, config: any): Promise>; export declare function getLatestCryptoTrades(symbols: Array, config: any): Promise>; export declare function getLatestCryptoQuotes(symbols: Array, config: any): Promise>; export declare function getCryptoSnapshots(symbols: Array, config: any): Promise>; export declare function getLatestCryptoOrderbooks(symbols: Array, config: any): Promise>; export declare enum Sort { ASC = "asc", DESC = "desc" } export interface GetNewsParams { symbols: Array; start?: string; end?: string; sort?: Sort; includeContent?: boolean; excludeContentless?: boolean; totalLimit?: number; pageLimit?: number; } export declare function getNews(options: GetNewsParams, config: any): Promise; export interface GetOptionBarsParams { timeframe: string; start?: string; end?: string; pageLimit?: number; limit?: number; feed?: string; page_token?: string; sort?: Sort; } export declare function getMultiOptionBars(symbols: Array, options: GetOptionBarsParams, config: any): Promise>; export declare function getMultiOptionBarsAsync(symbols: Array, options: GetOptionBarsParams, config: any): AsyncGenerator; export interface GetOptionTradesParams { start?: string; end?: string; pageLimit?: number; limit?: number; feed?: string; page_token?: string; sort?: Sort; } export declare function getMultiOptionTrades(symbols: Array, options: GetOptionTradesParams, config: any): Promise>; export declare function getMultiOptionTradesAsync(symbols: Array, options: GetOptionTradesParams, config: any): AsyncGenerator; export declare function getLatestOptionTrades(symbols: Array, config: any): Promise>; export declare function getLatestOptionQuotes(symbols: Array, config: any): Promise>; export declare function getOptionSnapshots(symbols: Array, config: any): Promise; export interface GetOptionChainParams { feed?: string; type?: string; pageLimit?: number; totalLimit?: number; strike_price_gte?: number; strike_price_lte?: number; expiration_date?: string; expiration_date_gte?: string; expiration_date_lte?: string; root_symbol?: string; page_token?: string; } export declare function getOptionChain(underlyingSymbol: string, options: GetOptionChainParams, config: any): Promise; export interface GetCorporateActionParams { types?: Array; start?: string; end?: string; pageLimit?: number; totalLimit?: number; page_token?: string; sort?: Sort; } export declare function getCorporateActions(symbols: Array, options: GetCorporateActionParams, config: any): Promise;