Make purchased based on current prices | fix register issue

This commit is contained in:
2026-03-08 21:11:17 -07:00
parent 2eab9d99ba
commit 5f371dddbc
3 changed files with 31 additions and 3 deletions
+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