Base url 400 (Bad Request)

when i try Historical Data | Alpaca Docs
https://data.alpaca.markets/v1beta2/crypto/bars? symbols=ETH/USD&exchanges=CBSE&timeframe=1Min&start=
it shows
gridbot.js:48 GET https://data.alpaca.markets/v1beta2/crypto/bars?symbols=ETH/USD&exchanges=CBSE&timeframe=1Min&start=2022-09-28T03:47:52.227Z 400 (Bad Request)
how do i avoid this exchanges error ?

The Alpaca crypto historical data endpoint version v1beta2 doesn’t support the exchange request parameter. If you’ll check your link you see it in docs. This parameter is not just ignored but instead generates HTTP 400 status code.
If you want to request per-exchange bars you can still use the v1beta1 endpoints but AFAIK, they will be deprecated and won’t be accessible very soon.

1 Like