alpacahq / alpaca-trade-api-go

Go client for Alpaca's trade API
Apache License 2.0
315 stars 85 forks source link

Broker API authentication is not supported #243

Open st-wong opened 1 year ago

st-wong commented 1 year ago

Getting 403 error when providing APIKey and APISecret via ClientOpts. Noticed that they're being set via Headers but they should be set via req.SetBasicAuth(APIKey, APISecret)?

victorouse commented 1 year ago

Just bumping with reference to the Python SDK adding support for basic authorisation.

Also mentioned here:

gnvk commented 1 year ago

Basic auth is only used for the Broker API, which is not currently supported by this SDK. Would you be interested in it? Probably only for market data?