alpacahq / alpacahq/alpaca-trade-api-go
Marketdata DefaultClient authentication does not seem to work
- Vorherrschende Sprache
- Go
- Sterne
- 429
- Forks
- 118
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
marketdata DefaultClient authentication does not seem to work, I have this piece code:
`func printCurrentPrice(symbol string) {
lastQuote, err := marketdata.GetLatestQuote(symbol, marketdata.GetLatestQuoteRequest{
Feed: marketdata.SIP,
Currency: "USD",
})
if err != nil {
fmt.Printf("Failed to get last quote for %s: %s\n", symbol, err)
return
}
fmt.Printf("The last quoted price for %s is $%.2f\n", symbol, lastQuote.AskPrice)
}`
This will simple return:
`$ go run main.go
Failed to get last quote for AAPL:
403 Forbidden
403 Forbidden
nginx
(HTTP 403)
`
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.