Skip to content

AlgoType

interface cAlgo.API

DesktopCLICloud

Base type for representing an algorithm.

Environment behaviour

Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (AlgoRegistry, AlgoRegistry.Get).

Definition

public interface AlgoType

Namespace: cAlgo.API · Group: AlgoRegistry

Examples

public partial class TestExample : Robot
{
    protected override void OnStart()
    {
        foreach (var algo in AlgoRegistry)
        {
            Print($"Name: {algo.Name} | Kind: {algo.AlgoKind} | ProjectFilePath: {algo.ProjectFilePath}");
        }
    }
}
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):
        for algo in api.AlgoRegistry:
            print(f"Name: {algo.Name} | Kind: {algo.AlgoKind} | ProjectFilePath: {algo.ProjectFilePath}")
{
  "AccessRights": "None"
}

Properties

Name Description
AlgoKindDesktopCLICloudAlgoKind Gets algorithm kind.
NameDesktopCLICloudstring Gets algorithm name.
ProjectFilePathDesktopCLICloudstring Gets algorithm project file ".csproj" path if it has source code, otherwise null.