get_long_series

core_v2.GCapiClientV2.get_long_series(
    market_id,
    n_months=6,
    by_time='15min',
    n=3900,
    interval='MINUTE',
    span=15,
)

Retrieve a long time series of OHLC data by bypassing API limitations. Internally uses get_ohlc to fetch data in chunks across the specified period.

Parameters

Name Type Description Default
market_id str The market ID for which OHLC data is fetched. required
n_months int Number of months of data to retrieve. 6
by_time str The frequency (interval) used to chunk data requests (e.g., ‘15min’, ‘30min’, etc.). '15min'
n int The maximum number of data points per request. 3900
interval str The interval of OHLC data (e.g., “MINUTE”, “HOUR”). 'MINUTE'
span int The span size for the given interval. 15

Returns

Name Type Description
pd.DataFrame A concatenated DataFrame of all the OHLC data retrieved.