Time bars with sub-minute period — is barType=SECOND supported?

I’m trying to subscribe to 15-second time bars via the REST/WebSocket API. Sending:

POST /v2/indicator/{streamId}/timeBars/subscribe
{ "symbol": "XCME:GC.M26", "barType": "SECOND", "period": 15, "loadSize": 50 }

Response: HTTP 400 {"error1":"Invalid request body","status":"ERROR","message":"Error"}

Switching to "barType": "MINUTE", "period": 1 works fine.

Question: does the timeBars indicator support sub-minute periods? Is there a SECOND barType value, or is MINUTE the smallest? My TradingView 15-second charts are aggregated from tick data — should I subscribe to /v2/market/trades and bucket on the client side instead?

Thanks.

Hey @newoptionz,

Thanks for reaching out. The Ironbeam API does not support second-type bar periods at this time. The shortest time frame would be one minute bars.

Mike Murphy
[email protected]

1 Like