Create a simulation to test 1 month of data in 30 mins
This commit is contained in:
@@ -27,8 +27,8 @@ namespace Controllers.PythonInterop {
|
||||
}
|
||||
|
||||
// Return ( Error, Signal )
|
||||
public (string, float) PredictAI(string StockSymbol) {
|
||||
(bool, string) Success = PyProcess.RunPythonProcess(_PyPath, _ExecPath + "/aipredictor.py", returns: true, PyArgs: StockSymbol);
|
||||
public (string, float) PredictAI(string StockSymbol, int DataEndDaysAgo = 0) {
|
||||
(bool, string) Success = PyProcess.RunPythonProcess(_PyPath, _ExecPath + "/aipredictor.py", returns: true, PyArgs: $"{StockSymbol} {DataEndDaysAgo}");
|
||||
if (!Success.Item1) {
|
||||
return (Success.Item2, 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user