Skip to content
Discussion options

You must be logged in to vote

Looks like a similar solution as the one uncovered on yfinance is working here. The following seems to work for me:

import yahooquery as yq

from curl_cffi import requests
session = requests.Session(impersonate="chrome")

t = yq.Ticker("AAPL", session=session)
print( "regular market price:", tq.price["AAPL"]['regularMarketPrice'])
h=tq.history(period="1wk")

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@E-Asrar-Haghighi
Comment options

@tjean00
Comment options

Answer selected by E-Asrar-Haghighi
@E-Asrar-Haghighi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants