Generate line chart data
Generate line chart data based on flexible query parameters
/v1/charts/lineAuthorization
bearerAuth Bearer token authentication. Use your user token in the format: Bearer {{user_token}}
In: header
Query Parameters
Record type to query (e.g., currency_pairs, exchange_rates, ledgers, transactions)
Field to use for X-axis values
Field to use for Y-axis values
Field to group by for multiple series
Limit number of data points
Offset for pagination
Base color for chart series (HSL format)
Gap filling strategy for missing time points
Filter by type (e.g., SELL, BUY, MID)
Filter by source (e.g., SNB, Currency Cloud)
Filter by date greater than or equal to (RFC3339 format)
Filter by date less than or equal to (RFC3339 format)
Filter by date greater than (RFC3339 format)
Filter by date less than (RFC3339 format)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/charts/line?rec_type=currency_pairs&x_field=date&y_field=rate&group_by=base_currency&limit=50&offset=0&color=hsl%2858%2C+70%25%2C+50%25%29&fill_gaps=daily&search.source=SNB"[
{
"id": "string",
"color": "string",
"data": [
{
"x": "string",
"y": "string"
}
]
}
]{
"error": "string",
"code": "string",
"params": {}
}{
"error": "string",
"code": "string",
"params": {}
}{
"error": "string",
"code": "string",
"params": {}
}{
"error": "string",
"code": "string",
"params": {}
}{
"error": "string",
"code": "string",
"params": {}
}