get_ohlc
core_v2.GCapiClientV2.get_ohlc(
    market_id,
    num_ticks,
    interval='HOUR',
    span=1,
    from_ts=None,
    to_ts=None,
)
 
Retrieve OHLC data for a specific market.
Parameters
| market_id | 
str | 
The market ID for which OHLC data is retrieved. | 
required | 
| num_ticks | 
int | 
The maximum number of OHLC data points to retrieve. | 
required | 
| interval | 
str | 
The time interval of the OHLC data (e.g., “MINUTE”, “HOUR”, “DAY”). | 
'HOUR' | 
| span | 
int | 
The span size for the given interval. | 
1 | 
| from_ts | 
int | 
Start timestamp for the data. | 
None | 
| to_ts | 
int | 
End timestamp for the data. | 
None | 
Returns
 | 
pd.DataFrame | 
A DataFrame containing the OHLC data. |