How to set timeframe parameter streaming bars in Crypto API

How do I set the timeframe parameter for bars streaming Real-time Data in the Alpaca Crypto Data API using websockets? I don’t see a way to set it in the subscription. The historical data API has a way to set the timeframe parameter in the URL path, but it does not work for me on the real-time data API. I’m using Javascript.

1 Like


Thank you for contributing! We have a dedicated discord focused solely on Crypto related queries with an active community and more engagement. Feel free to join via the invite link below;