Developer Portal
Trader APIsHTTP APIPublic endpoints

Guest Current OHLCV BarsGET

Returns the latest OHLCV bar for up to 100 requested active symbols. Symbols that have no current bar may be omitted. No authentication required.

View as Markdown
GET
/public/trendbars/current

Query Parameters

sidsRequiredarray<string>

Active symbol IDs, supplied as repeated parameters (maximum 100)

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/public/trendbars/current?sids=string&timeframe=1H"

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"
      }
    }
  ]
}