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

+10
View File
@@ -50,6 +50,16 @@ namespace Controllers.PythonInterop {
}
}
public float GetCurrentPrice(string StockSymbol) {
using (Py.GIL()) {
dynamic price = Py.Import("currentprice");
using (dynamic x = price.getCurrentPrice(StockSymbol)) {
float CurrentPrice = (float)x;
return x;
}
}
}
}
}