Returns aggregate trade volume for up to 100 condition IDs. The response mirrors multi-status semantics and always responds with HTTP 207.
207 Multi-Status so you can see the outcome of each condition independently.
include_24h — optional boolean. Defaults to false; set to true to receive a volume_24h field per successful condition.conditions — required array (1–100 entries). Each item must define a condition_id plus exactly two unique token_ids that belong to that condition. Duplicate tokens or empty strings trigger per-condition errors.status: 200 and reports the volume as 0.0.
207 Multi-Status. Each element in the array contains condition_id, status, and either the aggregated volumes or an error string.status: 200 entries include volume (total matched volume for the pair) and, when include_24h was true, volume_24h. Both values are returned as decimal strings.status: 400 indicates a validation issue isolated to that condition (missing tokens, duplicate token IDs, blank strings, etc.).status: 500 surfaces unexpected backend issues for that condition; retrying later is recommended.| Error | Meaning |
|---|---|
conditions_array_must_contain_at_least_one_entry | The request body omitted conditions or sent an empty list. |
maximum_of_100_conditions_allowed | More than 100 conditions were provided. |
condition_id_cannot_be_empty | condition_id was blank. |
token_ids_must_have_two_entries | A condition did not include exactly two token IDs. |
token_id_cannot_be_empty | One of the provided token IDs was blank. |
token_ids_must_be_unique | The same token ID was repeated within a condition. |
internal_error | Unexpected failure while fetching volume data. |
status. Successful entries may be mixed with error entries in the same response, so you can partially update your dashboards without rerunning the entire request.Payload for requesting aggregate trade volumes for specific condition IDs.
Multi-status response with per-condition volumes.
Condition ID echoed from the request.
HTTP-style status code for the individual condition (200, 400, or 500).
200
Total matched volume for the token pair, encoded as a string. Present when status is 200.
"98213.77"
Matched volume over the trailing 24 hours, encoded as a string. Included only when include_24h was set to true and data is available.
"213.77"
Machine-readable error when status is 4xx/5xx.
"token_ids_must_have_two_entries"