Skip to content
Velo

.batch_rows

Splits a row request into parameter dictionaries that fit within the API's per-request row limit. Use the result with .stream_rows when you want to process each batch as it arrives.

Example

batches = client.batch_rows(params)
 
for rows in client.stream_rows(batches):
    print(rows)

Parameters

params

  • Type: dict

See Row parameters for the accepted fields. Integer and string resolutions are supported. If both coins and products are supplied, only products is used.

Return type

list[dict]

Returns the request dictionaries to pass to .stream_rows. Small requests produce a one-item list.