Skip to content
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

Can't retrieve NQ data #41

Open
BuuurnZ opened this issue Feb 11, 2024 · 4 comments
Open

Can't retrieve NQ data #41

BuuurnZ opened this issue Feb 11, 2024 · 4 comments

Comments

@BuuurnZ
Copy link

BuuurnZ commented Feb 11, 2024

Hi,
When I'm trying to retrieve the data of MNQH2024 for exemple, it's not finding anything, but when i'm using search_symbol, the script is finding MNQ, any fix?

@filipepapa
Copy link

hey, try this:
nq_data = tv.get_hist(symbol='NQ',exchange='CME_MINI',interval=Interval.in_daily,n_bars=1,fut_contract=1)
when you use search symbol try using the correct exchange:
tv.search_symbol('MNQ','CME')
the sourceid will give you the exchange string

@Theumezz
Copy link

This worked for me, thanks!

@yourdailybread1
Copy link

Is there a way to retrieve specific contract data so for example "NQU2024"?

@filipepapa
Copy link

filipepapa commented Aug 8, 2024 via email

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

No branches or pull requests

4 participants