Table of Contents

Class TradeSnapshot

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

One fill of an order of the account, copied by the platform.

        <p>Not in ATAS 8.0.15 yet: available from the next version.</p>
public sealed class TradeSnapshot
Inheritance
object
TradeSnapshot
Extension Methods

Remarks

A fill has no profit or loss of its own: which fills close which earlier ones is up to the broker. For a rule over losing trades, watch RealizedPnL of the instrument between checks.

Constructors

TradeSnapshot()

Initializes an empty snapshot; the platform sets the values.

public TradeSnapshot()

Properties

AccountId

The account of the fill.

public string AccountId { get; init; }

Property Value

string

Commission

The commission of the fill, in the account currency; 0 if the connection does not report it.

public decimal Commission { get; init; }

Property Value

decimal

Direction

Bought or sold.

public OrderDirections Direction { get; init; }

Property Value

OrderDirections

OrderId

The broker id of the filled order; null if unknown.

public string? OrderId { get; init; }

Property Value

string

Price

The fill price.

public decimal Price { get; init; }

Property Value

decimal

SecurityId

The instrument of the fill.

public string SecurityId { get; init; }

Property Value

string

TimeUtc

When the fill happened (UTC; the replay time for a Market Replay account).

public DateTime TimeUtc { get; init; }

Property Value

DateTime

Volume

The filled volume, in lots.

public decimal Volume { get; init; }

Property Value

decimal