0

I am trying to fetch Brazilian stock prices with Alpha Vantage API. For this example, I'll talk about PETR4. I have used Alpha Vantage Search Endpoint. It returns the symbol of the currency:

{ "bestMatches": [ { "1. symbol": "PETR4.SAO", ... } }

Nevertheless, the TIME_SERIES_DAILY endpoint (or any other as a matter of fact) returns an error:

"Error Message": "Invalid API call. Please retry or visit the documentation (https://www.alphavantage.co/documentation/) for TIME_SERIES_DAILY."

Notice that it works with GOOG ticker, for example.

What is the correct way to fetch prices of Brazilian stocks from Alpha Vantage API?

2
  • 1
    What is your question? Commented Mar 22, 2020 at 14:12
  • I've edited the question and added it. I would like to know how to fetch the stock prices correctly.
    – pedrovgp
    Commented Mar 25, 2020 at 17:56

1 Answer 1

0

The correct symbol to Petrobras ON is PETR4.SA, you can try putting yours apikey at the and of the following request:

https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=PETR4.SA&interval=5min&apikey= your api key goes here

1
  • The symbol correction worked.
    – pedrovgp
    Commented Apr 18, 2020 at 22:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .