Make purchased based on current prices | fix register issue

This commit is contained in:
derek committed 2026-03-08 21:11:17 -07:00
1 parent 2eab9d99ba
commit 5f371dddbc
3 files changed
+31 -3

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import yfinance as yf
def getCurrentPrice(symbol):
ticker = yf.Ticker(symbol)
data = ticker.history(period="1d", interval="1m")
current_price = data['Close'].iloc[-1]
return current_price