Developer Portal

Current OHLC BarsGET

Returns the last OHLCV bar for each requested symbol and timeframe in a single call

View as Markdown
GET
/trendbars/current

Authorization

AuthorizationRequiredBearer <token>

JWT token obtained from the login endpoint

In: header

Query Parameters

sidsRequiredarray<string>

Symbol IDs to fetch the current bar for (repeat parameter for multiple)

timeframeRequiredstring

Bar timeframe/resolution

Value in: "1M" | "2M" | "3M" | "5M" | "15M" | "30M" | "1H" | "4H" | "12H" | "D" | "W" | "M"
curl -X GET "http://localhost:8081/api/v1/trendbars/current?sids=EURUSD&timeframe=1H" \
  -H "Authorization: Bearer <token>"

Successfully retrieved current bars

{
  "bars": [
    {
      "symbol_id": "EURUSD",
      "bar": {
        "open": 1.1234,
        "high": 1.1256,
        "low": 1.122,
        "close": 1.1245,
        "volume": 1000,
        "datetime": "2023-01-01T12:00:00Z"
      }
    }
  ]
}