Skip to main content
GET
/
assets
/
{asset_id}
/
bars
Get historical bars (OHLCV data) for an asset
curl --request GET \
  --url https://api.bluum.finance/v1/assets/{asset_id}/bars \
  --header 'Authorization: Basic <encoded-value>'
{
  "bars": [
    {
      "t": "2024-01-15T09:30:00Z",
      "o": "175.50",
      "h": "176.20",
      "l": "175.10",
      "c": "175.85",
      "v": "1250000",
      "n": 4500,
      "vw": "175.65"
    }
  ],
  "symbol": "AAPL",
  "next_page_token": "<string>"
}

Authorizations

Authorization
string
header
required

HTTP Basic Authentication using the API Key as username and API Secret as password.

Path Parameters

asset_id
string<uuid>
required
Example:

"6c5b2403-24a9-4b55-a3dd-5cb1e4b50da6"

Query Parameters

timeframe
enum<string>
required

The timeframe for the bars

Available options:
1Min,
5Min,
15Min,
30Min,
1Hour,
1Day,
1Week,
1Month
start
string<date-time>

Start time for the data range (ISO 8601)

end
string<date-time>

End time for the data range (ISO 8601)

limit
integer
default:100

Maximum number of bars to return

Required range: 1 <= x <= 10000
page_token
string

Token for pagination

Response

Historical bars data

bars
object[]
symbol
string
Example:

"AAPL"

next_page_token
string | null

Token for pagination