Giter VIP home page Giter VIP logo

Comments (5)

btlk avatar btlk commented on September 22, 2024 3

I am surprised noone responded in 2 months, but I face the same problem.

After debugging sources and reading documentation, it is clear that either this endpoint never worked or alpha_vantage did a breaking change, because per doc:

...this endpoint uses the CSV format which is more memory-efficient than JSON...

This wrapper naively appends &datatype=json to the end of the uri which does work for the regular API but not extended one.

So a hotfix would be to request output_format="csv" and then pandas.from_csv for example

from alpha_vantage.

Dracozny avatar Dracozny commented on September 22, 2024 1

Not an API issue. I can get a response if I specify CSV format. the issue becomes converting it. as mentioned in #287 (comment) the output is a _csv.reader object so pipe it through list and then use pandas.dataframe.from_records to convert it back to pandas.

csv_list = list(_csv.reader)   
df = pandas.DataFrame.from_records(csv_list[1:], columns=csv_list[0])

As far as your API limit if you wanted to iterate through the 24 slices you can simply add a throttling delay to avoid hitting the limit.

from alpha_vantage.

quanthero avatar quanthero commented on September 22, 2024

if you don't have premium api key, you got only 5 API requests per minute

from alpha_vantage.

arturdaraujo avatar arturdaraujo commented on September 22, 2024

Why not implement this into the package? This solution works great

from alpha_vantage.

AlphaVantageSupport avatar AlphaVantageSupport commented on September 22, 2024

[2023-07] Temporarily closing this issue due to inactivity.

from alpha_vantage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.