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
+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;
}
}
}
}
}