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.