.get_rows
Fetches a historical market-data request. Requests larger than one API response are split and collected automatically.
Example
end = client.timestamp()
params = {
'type': 'futures',
'exchanges': ['binance-futures'],
'products': ['BTCUSDT'],
'columns': ['close_price', 'funding_rate'],
'begin': end - 24 * 60 * 60 * 1000,
'end': end,
'resolution': '5m',
}
rows = client.get_rows(params)Parameters
params
- Type:
dict
See Row parameters for the accepted fields. If both coins and products are supplied, only products is used.
Return type
pandas.DataFrame
Returns every matching row in one DataFrame. An empty response produces an empty DataFrame.