StephanAkkerman / fintwit-bot

FinTwit-Bot is a Discord bot designed to track and analyze financial markets by pulling data from platforms like Twitter, Reddit, and Binance. It features customizable tools for sentiment analysis, market trends, and portfolio tracking to help traders stay informed and make data-driven decisions.
http://akkerman.ai/fintwit-bot/
MIT License
64 stars 15 forks source link

Use custom yahoo finance for async compatability #614

Closed StephanAkkerman closed 2 months ago

StephanAkkerman commented 2 months ago

Trending: https://query1.finance.yahoo.com/v1/finance/trending/US?count=50 OHLCV: https://query1.finance.yahoo.com/v7/finance/download/{ticker}

All info: https://query1.finance.yahoo.com/v8/finance/chart/AAPL?region=US&lang=en-US&includePrePost=false&interval=2m&useYfid=true&range=1d&corsDomain=finance.yahoo.com&.tsrc=finance

Shorter all info: https://query1.finance.yahoo.com/v8/finance/chart/aapl

StephanAkkerman commented 2 months ago

In case we need cookies: https://stackoverflow.com/questions/76065035/yahoo-finance-v7-api-now-requiring-cookies-python

https://query1.finance.yahoo.com/v1/test/getcrumb

StephanAkkerman commented 2 months ago

Maybe we can remove yfinance and yahoo-fin completely

StephanAkkerman commented 2 months ago

yfinance is used in:

yahoo_fin:

StephanAkkerman commented 2 months ago

Gainers: https://query2.finance.yahoo.com/v1/finance/screener/predefined/saved?formatted=false&lang=en-US&region=US&scrIds=day_gainers&count=5&corsDomain=finance.yahoo.com

Losers: https://query2.finance.yahoo.com/v1/finance/screener/predefined/saved?formatted=false&lang=en-US&region=US&scrIds=day_losers&count=5&corsDomain=finance.yahoo.com

Trending: https://query1.finance.yahoo.com/v1/finance/trending/US?count=50

Nasdaq tickers: https://github.com/atreadw1492/yahoo_fin/blob/master/yahoo_fin/stock_info.py#L151

Earning dates for given stock: ?

StephanAkkerman commented 2 months ago

No API endpoint for upcoming earning date, leaving it as it is for now

StephanAkkerman commented 2 months ago

https://github.com/gadicc/node-yahoo-finance2/issues/8