get_prices
core_v2.GCapiClientV2.get_prices(
market_id,
num_ticks,
from_ts,
to_ts,
price_type='MID',
)
Retrieve tick history (price data) for a specific market.
Parameters
market_id |
str |
The market ID for which price data is retrieved. |
required |
num_ticks |
int |
The maximum number of ticks to retrieve. |
required |
from_ts |
int |
Start timestamp for the data. |
required |
to_ts |
int |
End timestamp for the data. |
required |
price_type |
str |
The type of price data to retrieve (e.g., “MID”, “BID”, “ASK”). |
'MID' |
Returns
|
pd.DataFrame |
A DataFrame containing the price data. |