Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jwage opened this issue Mar 23, 2022 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation Market Data API

Comments

@jwage
Copy link

jwage commented Mar 23, 2022

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

desc: The comma-separated exchanges which can be FTXU, ERSX or CBSE. Defaults to All.

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
Copy link
Contributor

gnvk commented Mar 23, 2022

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.

@drew887 drew887 added bug Something isn't working documentation Improvements or additions to documentation Market Data API labels Mar 23, 2022
@jwage
Copy link
Author

jwage commented Mar 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation Market Data API
Projects
None yet
Development

No branches or pull requests

3 participants