RomelTorres / alpha_vantage

A python wrapper for Alpha Vantage API for financial data.
MIT License
4.3k stars 741 forks source link

outputsize=full is not working and is not a "full" #353

Closed ropaiva80 closed 11 months ago

ropaiva80 commented 1 year ago

Hi there,

I'd like to request fix de documentation. The outputsize flag was set and only less 1000 records nothing else. What is that??? And why the API don't support crypto ?

thank you

TheCrockett commented 12 months ago

@ropaiva80

I used to patch on the fly for this, until I rewrote my code to be more in line with how I was supposed to use it.

You're welcome to use my patch, it might still be applicable

`--- /usr/local/lib/python3.9/site-packages/alpha_vantage/alphavantage.py   2021-01-09 03:10:36.000000000 -0500
+++ /tmp/alphavantage.py    2021-01-09 03:31:02.953525878 -0500
@@ -192,6 +192,7 @@
             if output_format == 'json':
                 return data, meta_data
             elif output_format == 'pandas':
+       pandas.set_option('display.max_rows', None)
                 data_pandas = pandas.DataFrame.from_dict(data,
                                                          orient='columns')
                 # Rename columns to have a nicer name
@@ -264,10 +265,12 @@
                             data_array = []
                             for val in data:
                                 data_array.append([v for _, v in val.items()])
+                            pandas.set_option('display.max_rows', None)
                             data_pandas = pandas.DataFrame(data_array, columns=[
                                 k for k, _ in data[0].items()])
                     else:
-                        try:
+                        try: 
+                            pandas.set_option('display.max_rows', None)
                             data_pandas = pandas.DataFrame.from_dict(data,
                                                                      orient='index',
                                                                      dtype='float')
AlphaVantageSupport commented 11 months ago

Thanks @TheCrockett!