Make purchased based on current prices | fix register issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user