Intro
from velodata import lib as velo
client = velo.client('api_key')
ten_minutes_ms = 1000 * 60 * 10
params = {
'type': 'futures',
'columns': ['close_price', 'funding_rate'],
'exchanges': ['binance-futures', 'bybit'],
'products': ['BTCUSDT'],
'begin': client.timestamp() - ten_minutes_ms,
'end': client.timestamp(),
'resolution': '1m'
}
print(client.get_rows(params))Last updated
Was this helpful?