You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
<title>403 Forbidden</title>
403 Forbidden
nginx
(HTTP 403)
`
The text was updated successfully, but these errors were encountered:
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
}
}`
This will simple return:
<title>403 Forbidden</title>`$ go run main.go
Failed to get last quote for AAPL:
403 Forbidden
nginx (HTTP 403) `
The text was updated successfully, but these errors were encountered: