Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

intraday historical data no later than 2020? #23

Open
eduferbur opened this issue Jun 15, 2021 · 1 comment
Open

intraday historical data no later than 2020? #23

eduferbur opened this issue Jun 15, 2021 · 1 comment

Comments

@eduferbur
Copy link

eduferbur commented Jun 15, 2021

Hi!
I'm trying to download a dataset with intraday historical data, but I do not receive prices older than 2020. I looked directly into the exchange and it has data from 2016, I tried different exchanges with same result and many stocks like TSLA, AMZN, NIO...
(Using Python and Marketstack Basic level — supporting intraday data and up to 10 years of historical data.)

Code for TSLA:

 url = 'http://api.marketstack.com/v1/intraday'
        params = {
        'access_key': '*******************************',
        'symbols': 'TSLA',
        'interval': '12hour',
        'exchange': 'IEXG',
        'date_from': '2015-06-10',
        'date_to': '2020-06-10', 
        'limit': '1000'

        }
        api_result = requests.get(url, self.params)

json respose:
{'pagination': {'limit': 1000, 'offset': 0, 'count': 5, 'total': 5}, 'data': [{'open': 940.01, 'high': 954.4399, 'low': 923.931, 'last': 940.67, 'close': 949.92, 'volume': 11220734.0, 'date': '2020-06-10T00:00:00+0000', 'symbol': 'TSLA', 'exchange': 'IEXG'} ... ... {'open': 858.0, 'high': 899.0, 'low': 854.1, 'last': 898.1, 'close': 835.0, 'volume': 15085297.0, 'date': '2020-06-02T00:00:00+0000', 'symbol': 'TSLA', 'exchange': 'IEXG'}]}

Thanks in advance!

@abediaga
Copy link

Same error here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants