apilayer / marketstack

Free Real-Time, Intraday & Historical Stock Market Data API
https://marketstack.com
67 stars 14 forks source link

Real-time stock prices #4

Open vsolanki888 opened 4 years ago

vsolanki888 commented 4 years ago

Hi, I am trying to fetch the realtime stock price but I am getting empty response below URL I have tried: https://api.marketstack.com/v1/eod/2020-06-24T11:56:24+0000?access_key=YOUR_ACCESS_KEY&symbols=TCS.XNSE But if I remove the current time and hit the URL then I am getting data till the yesterday only not today's data: https://api.marketstack.com/v1/eod?access_key=YOUR_ACCESS_KEY&symbols=TCS.XNSE In the response I am getting many attributes, May i know which attribute represents the real-time price, does adj_open stands for the real-time price?

Please help me, Does market stack returns real-time stock prices? If yes then how Thanks

mikkelking commented 4 years ago

The endpoint you are calling is eod meaning end-of-day, which is obviously not a real time feed, but just the prices at the end of the day. There is documentation here https://marketstack.com/documentation - find the documentation about eod, and there is a note about what the adjusted prices are, but it doesn't really explain.

This goes into more depth: https://budgeting.thenest.com/adjusted-closing-price-vs-closing-price-32457.html#:~:text=The%20closing%20price%20of%20a,offerings%20to%20determine%20a%20value.

The endpoint you need is intraday, which has the ability to be real time if you are on the right plan

marioernestoms commented 4 years ago

I have the same error with Brazilian stocks and use intraday endpoint. If I try with any USA stock like MSFT it's work perfect and I receive all the data, but if I try for example with ITSA4.BVMF I receive an empty JSON.

vsolanki888 commented 4 years ago

@marioernestoms I think right now they are providing intraday values for the USA country stocks only as I have read the Intraday prices are available for all US stock tickers included in the IEX (Investors Exchange) stock exchange. in the intraday documentation. @mikkelking If this is right so would you please tell us when all other country's stocks will be covered for intraday?

marioernestoms commented 4 years ago

@vsolanki888 I think it wasn't The only note that exists in documentation is about the time update that changes for the plans, but nothing about only for US Stocks.

hsharma-lsquared commented 4 years ago

image

@marioernestoms you can check the screenshot, which I found at here

@vsolanki888 any success? I am also unable to read the intraday (real-time) data for non-US stock symbols. and later found this comment in the documentation, Can someone please help me?

hsharma-lsquared commented 3 years ago

Thank you for contacting L Squared Support.

We have received your request and are working on responding to you as soon as possible. If you have any additional information to add to this case, please reply to this email. Thanks in advance for your patience and support. Support ticket number for your request is #8971.

Regards, Your L Squared Support Team

delvinwidjaja commented 3 years ago

@hsharma-lsquared are you on the basic plan or higher?

I'm facing an issue where I get empty data for the non-US stocks even if the market in this country is already closed for the day. Does anyone know is it because of my plan (currently on the free one) or something else?