-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alpha Vantage API Review #13
Comments
@wickenden-g Thank you very much for your incredible review. Sadly I am not related to Alpha Vantage. One day I also discovered their API while googling and decided to write the python wrapper for it as my first step in playing around with financial algorithms. I am very happy and grateful for the acceptance it has had in the community since this is my first open source project. I would contact them directly on their website. They actually write back quickly and are always open to suggestions. Yours seem pretty reasonable. I was thinking on suggesting them on having some sort of company account in Github. Thanks again for the |
Is it only US-stocks? |
@frederic-adda According to my experience with Alpha Vantage, it covers US-based stocks, ETFs, and mutual funds AND stocks traded on major global stock exchanges. Perhaps @RomelTorres could shed some light on this? |
@frederic-adda @RomelTorres @coryleuck If you want to get data of Stocks from other exchanges other then US-Stock exchanges then you need to do something like this, If I wanted to get the stock value for TITAN from Indian Exchange NSE, then I need to use this in symbol NSE:TITAN . Ex:
|
OK, good to know! Thanks for the info
What I find disturbing is that the ticker symbol are standardized. For example, in the US, the symbol would be like « AAPL », and, for other markets than the US, like « AI.PA » (where .PA stands for Paris stock exchange).
So AlphaVantage seems to do it differently than the standard way? Weird …
Is there a list of their codes for the Stock exchanges around the world, so I could try to do the matching with the « standard » codes?
Thanks
Fred
… Le 16 nov. 2017 à 08:31, Vishwajeet Srivastava ***@***.***> a écrit :
@frederic-adda <https://github.com/frederic-adda> @RomelTorres <https://github.com/romeltorres> If you want to get data of Stocks from other exchanges from US-Stock exchanges then you need to do something like this, If I wanted to get the stock value for TITAN from Indian Exchange NSE, then I need to use this in symbol NSE:TITAN .
Ex:
ts = TimeSeries(key='API_KEY', output_format='pandas') data, meta_data = ts.get_daily_adjusted(symbol='NSE:TITAN', outputsize='full') data['close'].plot() plt.title('Daily Adjusted for the TITAN stock ') plt.show()
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#13 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQxqPoBwzewFodfiIAtkn6iO1B_koVKIks5s2-TagaJpZM4O8Ovr>.
|
@frederic-adda I doubt that there is an API which will provide you the list of all Stock Exchanges around the world. But still are here some links that might help you out, http://www.wikinvest.com/wiki/List_of_Stock_Exchanges |
Yahoo Finance used to do it.
I’m looking for a replacement for their API.
… Le 16 nov. 2017 à 15:27, Vishwajeet Srivastava ***@***.***> a écrit :
@frederic-adda I doubt that there is an API which will provide you the list of all Stock Exchanges around the world.
But still are here some links that might help you out, http://www.wikinvest.com/wiki/List_of_Stock_Exchanges
http://www.eoddata.com/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
HI, great python framework. Thank you so much for putting it together. I would love to see the adjusted data as an option |
Hi @kevingebert; what do you mean by adjusted data? Any call from the API I am missing? |
Maybe I am missing it. I'm talking about the split adjusted data. |
Great work on the API wrapper. I use the yahoo python wrapper ystocks a number of years ago. now that I have returned to a financial project I learned about the changes at yahoo. And then i found Alpha Vantage and then your API. I will poke through the basics and see what is there right now. The first thing I have not been able to find is the dividend event data. See issue #27 Great work so far. |
Hi Guys,
|
Hi @vignesh989 if it is not specified in the API by alphavantage, it is not doable direct in the python wrapper, nevertheless once you have the data in a pandas data frame. It should be easy to slice it. I would say first do the intraday call with full size and then slice it from there. |
@RomelTorres Thank you, I get a max for past 3 days even if I get the full size, I guess I should try a different data source. |
Hi, I am currently developing a basic Java (Android) app for portfolios management. Alpha Vantage data are very good for my purpose. I am wondering if i can load this applet on GooglePlay (free with little advertising) each user should request his own ApiKey. Could it be compatible with the terms of usage?Thank you. |
Hi @ellissitzky. That I cannot answer you, since here in github I just habe the python wrapper. Please send an email to the people from alphavantage on their website. Thanks, Romel |
@RomelTorres, thank you for your answer, i first asked to this blog in order to know if this info were already clear.. I read everything on AlphaVantage site, but the only part that may be about the topic is : https://www.alphavantage.co/terms_of_service/ - Intellectual Property. It's no clearly expressed a prohibition of use in apps, etc, but not even an encouragement to it. So, I will ask them by email . |
@ellissitzky Thank you for developing the Java application on top of Alpha Vantage. We have addressed your request via support@alphavantage.co |
@team-alphavantage, I just read (and answered) it! |
Wonderful piece of work, thank you. One small issue using "get_digital_currency_daily()". The result is returned in two currencies, market and USD, OK. But if I set the market to USD I get duplicate Pandas labels. So indexing a row ( row['. close (USD)'] ) results in a two element series for USD, and a scalar for other markets. I can special case USD, but it would be nice if you did as this might be a surprise for somebody. |
Hi @Ham-Merhead, I will have to check it out, I have been super busy lately and have not had a chance to sit down and solve some of the issues that have arisen in the past few weeks. Could you please post this in a separate issue with the piece of code and the resulting pandas data frame? I am planning to do a rework of the unittests, since they are not working well anymore, although most of the calls are correct (because I was a noob and did not know better when I wrote that part of code) I will try to get some free time and sit and do it properly. Saludos Romel |
Done. Thanks for the the response. I have a workaround for now. Interesting question as to if any change would happen here or by AV....... |
What's about Swiss Exchange (SIX) ? I tried to request SIX:NESN but with no success.. Is there a way to request data from SIX, LSE, Xetra? |
@vignesh989 Did you manage to get data from NSE? I am not able to pull the data. Here is the sample code. import os
from alpha_vantage.timeseries import TimeSeries
key = os.environ.get('ALPHAVANTAGE_KEY')
print(key)
ts = TimeSeries(key=key)
data, meta_data = ts.get_intraday('NSE:TITAN')
# data, meta_data = ts.get_intraday('NSE:RELIANCE')
# data, meta_data = ts.get_intraday('GOOGL')
print(meta_data) |
I cannot retrieve data for NSE. Just TITAN works well. |
Hi people, you can try directly in a web browser and see if it works. If it does create a new issue and I will work on it. If not we can ask in the alphavantage forum. |
Browser produces the same error. I think the problem is in alphavantage data. |
@ChillarAnand @igorcc No Guys they do not support it as of now, So this is workaround. So you can determine if the data is coming from NYSE or NSE the following way. If the market Start Time/End Time syncs with your market time it means its from your market, else its from NYSE.
So the best bet for people who are working with other markets is ignore stocks that have the same symbol as the stocks in NYSE. @ChillarAnand this is still a very good set of stocks, in NIFTY50 only 3 gets eliminated this way, rest of the stock data works as expected. @team-alphavantage It would be wonderful if you can add a parameter to your API to specify the market. @RomelTorres I'm so sorry to hijack your thread like this. |
@sanjes1 They have never responded to me. They don't believe in support apparently. |
I too would much like to see this since even though panda df slicing isnt a problem, trying to download a mass of data for one data point is quite expensive. This the most anticipated prospective feature of the Alpha Vantage API for me. @sanjes1 @mark100net Can confirm. I have reached out to them several times with this^ inquiry (dating weeks back) but received no response... Maybe if we all send a request? haha |
Ok, so they will talk, but you need to pay them. I subscribed to their monthly plan. They responded pretty quick. |
@sanjes1 The "~" 1 week of intraday depends on how many days the market is open out of the that last 7 I believe. I would use your premium status to request features such as that if you haven't already. |
@SterlingButters |
Hi, Is there any way where we can get information of the corresponding sector for the stocks we get the data or any way we can pull the stock performance(API available) along with corresponding industries. i am working on stock predictions so checking i may get any help on this |
What's the split coefficient supposed to be? I checked for some stocks that split and it was always 1.00 |
For me it has worked, using this formel for symbol, for european stocks: Fingerprint Cards (STO: FING-B) == FING-B.STO I think you got the point ;) |
If AlphaVantage are rearranging the letters in the acronyms of the stocks on different stock exchanges(for their API calls), they have to have a list clarifying the logic behind that. There IS no logic otherwise. |
@RomelTorres @thecodeflash, are you guys getting the correct timestamp for NSE:TITAN or any other NSE stock, i think it should show till 3:30 PM or something, it is showing 4:59. |
If you look at the time zone, it's in |
Hello, I know this is a long thread with a lot of questions. I should not add another comment, but I will do now, because there is a repeated question without a real question. To get the symbol of the instrument, you can search using ISIN. For example {
"bestMatches": [
{
"1. symbol": "CA.PAR",
"2. name": "Carrefour SA",
"3. type": "Equity",
"4. region": "Paris",
"5. marketOpen": "09:00",
"6. marketClose": "17:30",
"7. timezone": "UTC+01",
"8. currency": "EUR",
"9. matchScore": "0.1667"
}
]
} |
how to fetch data for nifty 50?can anyone help me with the url which fetch nifty 50 data |
Hi @spateltc, Currently, Alpha Vantage has support for stocks, crypto, TIs, sector, and FX. Index data you can get from pulling the individual stocks in the nifty 50. |
The symbol is
Then fetch the data:
|
Please ignore my previous comment. It was about an ETF. As per @PatrickAlphaVantage 's answer, to calculate an index, calculate the components is a solution. |
Thanks @jcisio for the info on the ETF |
@PatrickAlphaVantage I was looking for an alternative to my costly provider and alphavantage was one of the candiates but it has some blocking problems. Now I've just found out another big problem: no index data :( I've just searching a few examples and it really does not have index data. We can also use maths to calculate, but then it adds extra complexity. |
Hi folks, I am the OP of this Github issue. Appreciate the responses to my post (my inbox is exploding!), but frankly I don't feel comfortable seeing my review article morphing into tangential discussions. This issue is for reviewing the Alpha Vantage APIs, not for technical support or marketing campaigns. Can the moderators do something about the off-topic posts? |
Alpha Vantage API Review from a Python Developer
@RomelTorres congratulations on your wonderful python library for Alpha Vantage!
I am a full-stack python developer who uses the Alpha Vantage API to develop trading strategies for stocks, ETFs, and OTCs. I am wondering whether you are affiliated with Alpha Vantage, and whether this is a good place for me to leave a 360° review on their API service for future reference by the developer community.
So technically this is not a bug report or feature request - hope it's OK with you :)
The Experience
I was one of the "yahoo refugees" who stumbled upon Alpha Vantage via Google search. My first interactions with their website could be summarized by the good-old term WYSIWYG (what-you-see-is-what-you-get). Their documentation promised three things: (1) time series data with various resolutions, (2) over 50 technical signals, (3) sector data, and they kept their promise by providing demo URLs for all the said API functions.
They promised free API keys, and they also delivered. They promised "no promotional materials to your inbox," and indeed the only email I got from them so far was the announcement email for their new CSV feature.
This being said, there are a couple areas they could optimize upon.
The Data
Of the thousands of US-based equities I have analyzed so far, their historical data and technical indicators seem to match other reputable data sources. Their intraday data is realtime up to the current minute, which is fine for my research purposes but may not satisfy users who want to beat the market with millisecond precision. Perhaps a premium feature for this down the road?
Their JSON output is easily readable and python-parsable. For the daily time series, however, I understand that their most recent data point is the cumulative information of the current trading day (updated realtime), but why is the first timestamp in YYYY-MM-DD HH:MM:SS format while all the others are in the normal YYYY-MM-DD format typical of the EOD data?
I would love to see a consistent YYYY-MM-DD format across all the timestamps. The "last refreshed" timestamp can be specified in Meta Data instead:
In addition to the data presentation aspects, below are couple other data-related proposals:
In Summary
It is always a pleasure to have an API service that is well documented, platform/language-agnostic, and easily integratable. The fact that we have several third-party libraries built on top of Alpha Vantage on GitHub is in a sense testament to its developer-friendly nature. While there is still room for them to become a better version of themselves, I hope they thrive and stay true to the description on their home page - "driven by rigorous research, cutting edge technology, and a disciplined focus on democratizing access to data."
The text was updated successfully, but these errors were encountered: