InstallationResult
class cAlgo.API Since 5.1
DesktopCLICloud
The result of an algo installation.
Definition
public class InstallationResult
Namespace: cAlgo.API · Group: AlgoRegistry
Examples
public partial class TestExample : Robot
{
protected override void OnStart()
{
var result = AlgoRegistry.Install("path/to-algo-file.algo");
if (!result.Succeeded)
Print($"Algo installation failed with error: {result.Error}");
}
}
import clr
clr.AddReference("cAlgo.API")
# Import cAlgo API types
from cAlgo.API import *
# Import trading wrapper functions
from robot_wrapper import *
class Test():
def on_start(self):
result = api.AlgoRegistry.Install("path/to-algo-file.algo")
if result.Succeeded == False:
print(f"Algo installation failed with error: {result.Error}")
{
"AccessRights": "None"
}