apilayer / marketstack

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

intraday historical data no later than 2020? #23

Open eduferbur opened 3 years ago

eduferbur commented 3 years ago

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 commented 3 years ago

Same error here.