alpacahq / alpaca-docs

Developer documentation for Alpaca API's
https://alpaca.markets/docs
14 stars 41 forks source link

Crypto latest quote api says exchange is csv query parameter but only accepts 1 value #10

Open jwage opened 2 years ago

jwage commented 2 years ago

When I try to pass a csv to this endpoint I got a 422. I think the docs here are wrong?

https://github.com/alpacahq/alpaca-docs/blob/4a250e031056eb0878ccfce10d99e36c35758795/data/webapi/endpoints/crypto-latest-quote.yaml#L16

HTTP/1.1 422 Unprocessable Entity returned for "https://data.alpaca.markets/v1beta1/crypto/BTCUSD/quotes/latest?exchange=FTXU,ERSX,CBSE".
[
  "code" => 42210000
  "message" => "invalid exchange: FTXU,ERSX,CBSE"
]
gnvk commented 2 years ago

You're absolutely right, the documentation is wrong here. If it supported multiple exchanges, the parameter would be called exchanges. We're going to fix the docs.

jwage commented 2 years ago

Thanks! I think there are several other instances of the same errror in other places too.