Skip to content

Ysing the functions of the Forex Api using the Broker Api #157

Answered by Petersoj
Seyrelf asked this question in Q&A
Discussion options

You must be logged in to vote

A few things:

  • Don't construct your own instance of ApiClient otherwise the Alpaca authorization headers won't be present in requests. All API requests should be made through method calls in the AlpacaAPI instance and its endpoint methods (e.g. api.trader().accountActivities()...).
  • The Broker API doesn't have access to the market data endpoints that regular Alpaca users have. You can't use market data endpoints with Broker API keys or with the Connect API unless you have some sort of special agreement set in place with Alpaca.
  • The Broker API should be used if you're trying to use Alpaca as a white-label brokerage. If that's the case, you should reach out to their sales staff to discuss pr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Seyrelf
Comment options

Answer selected by Petersoj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants