finnhubio / Finnhub-API

Finnhub API provides institutional-grade financial data to investors, fintech startups and investment firms. We support real-time stock price, global fundamentals and alternative data. https://finnhub.io/docs/api
97 stars 6 forks source link

{'s': 'no_data'} with resolution 1 using candles #512

Closed Radhe-0 closed 1 year ago

Radhe-0 commented 1 year ago

this is my code:

import finnhub
finnhub_client = finnhub.Client(api_key="KEY")
candles = finnhub_client.stock_candles('QQQ', '1', 1590988249, 1591852249)

print(candles)

and this is the output:

{'s': 'no_data'} 

I have tried with other dates and symbols but always the same with resolution = '1'

finnhubio commented 1 year ago

Hi there,

If you are on the free plan, you will need to try a more recent timestamp to get the data. For example,

candles = finnhub_client.stock_candles('QQQ', '1', 1679288102, 1680497702)

Radhe-0 commented 1 year ago

Hi there,

If you are on the free plan, you will need to try a more recent timestamp to get the data. For example,

candles = finnhub_client.stock_candles('QQQ', '1', 1679288102, 1680497702)

Where can I see the limitations more specifically?

finnhubio commented 1 year ago

It's on the docs here: https://finnhub.io/docs/api/stock-candles (Free Tier: 1 year of historical data and new updates)

Or you can also see your free plan benefit here: https://finnhub.io/pricing