Skip to content

EnvironmentType

Summary

Represents the different environments where an algo can run.

Signature

1
public enum EnvironmentType

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 using cAlgo.API;
 namespace cAlgo.Robots;
 [Robot(AccessRights = AccessRights.None, AddIndicators = true)]
 public class Test : Robot
 {
     protected override void OnStart()
     {
         Print($"Current EnvironmentType is: {Application.EnvironmentType}");
     }
 }
1
2
3
4
5
6
7
8
9
 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):
         print(f"Current EnvironmentType is: {api.Application.EnvironmentType}")

See Also

Fields

Desktop

Summary

Represents the Desktop environment.

Signature

1
EnvironmentType.Desktop;

Return Value

EnvironmentType

Cloud

Summary

Represents the Cloud environment where algos can run.

Signature

1
EnvironmentType.Cloud;

Return Value

EnvironmentType

CLI

Summary

Represents the Command Line Interface (CLI) environment.

Signature

1
EnvironmentType.CLI;

Return Value

EnvironmentType