Skip to content

InstallationError

Summary

Represents the predefined algo installation errors.

Signature

1
public enum InstallationError

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 [Robot(AccessRights = AccessRights.None)]
 public 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}");
     }
 }
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 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}")

Fields

Forbidden

Summary

Installation error due to lack of permission by user.

Signature

1
InstallationError.Forbidden;

Return Value

InstallationError

InvalidFile

Summary

Installation error due to algo file being invalid.

Signature

1
InstallationError.InvalidFile;

Return Value

InstallationError

FileNotFound

Summary

Installation error due to algo file not found in provided path (Only for file path based installations).

Signature

1
InstallationError.FileNotFound;

Return Value

InstallationError

DownloadError

Summary

Installation error due to algo file downloading error (Only for URI based installations).

Signature

1
InstallationError.DownloadError;

Return Value

InstallationError

Canceled

Summary

When user cancels installation dialog.

Signature

1
InstallationError.Canceled;

Return Value

InstallationError

Unknown

Summary

Unknown or unrecognized error.

Signature

1
InstallationError.Unknown;

Return Value

InstallationError