Skip to content
Velo

Rows API

Fetch historical futures, options, or spot rows as pandas DataFrames. Large requests are split into API-sized batches automatically.

Methods

MethodDescription
.get_rowsFetches every batch and returns one DataFrame.
.batch_rowsSplits a row request into API-sized parameter dictionaries.
.stream_rowsFetches prepared batches and yields one DataFrame per batch.

Row parameters

get_rows() and batch_rows() accept a parameter dictionary with the following fields:

FieldTypeDescription
typestrOne of "futures", "options", or "spot".
exchangeslist[str]Exchanges to query.
productslist[str]Exchange-native products to query. Use this or coins.
coinslist[str]Velo-aggregated coins to query. Use this or products.
columnslist[str]Market-data columns to return.
beginintBeginning of the time range as a Unix timestamp in milliseconds.
endintEnd of the time range as a Unix timestamp in milliseconds.
resolution`intstr`

If both coins and products are present, products takes precedence. String resolutions align begin down and end up to complete bucket boundaries.