Table of Contents

Class OrderInterceptorAttribute

Namespace
ATAS.Indicators.Trading
Assembly
ATAS.Indicators.dll

Marks a class derived from OrderInterceptor as an order interceptor and supplies its discovery metadata. The platform lists only interceptors that carry this attribute.

Not in ATAS 8.0.15 yet: available from the next version.

[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class OrderInterceptorAttribute : Attribute
Inheritance
object
Attribute
OrderInterceptorAttribute
Extension Methods

Constructors

OrderInterceptorAttribute(string)

Marks the class as an order interceptor.

public OrderInterceptorAttribute(string id)

Parameters

id string

The stable identifier of the interceptor (Id).

Properties

DisplayName

Name shown in the list of order interceptors and in the rejection message the trader sees ("Rejected by <name>: <reason>"). If omitted, the class name is used.

public string? DisplayName { get; init; }

Property Value

string

Id

Stable interceptor identifier, e.g. "mycompany.daily-loss": <vendor>.<name> in lowercase letters, digits and dashes. The platform saves the user's choice (enabled, order, timeout, settings) under this identifier, so it must never change once the interceptor is released. The vendor atas is reserved.

public string Id { get; }

Property Value

string