Table of Contents

Struct Position

Namespace
Virtufin.Base
Assembly
Virtufin.Base.dll

A holding: a PositionSize in some AssetIdentifier.

public readonly record struct Position : IEquatable<Position>
Implements
Inherited Members

Constructors

Position(PositionSize, AssetIdentifier)

A holding: a PositionSize in some AssetIdentifier.

public Position(PositionSize Size, AssetIdentifier AssetIdentifier)

Parameters

Size PositionSize

How much of the asset.

AssetIdentifier AssetIdentifier

Which asset.

Properties

AssetIdentifier

Which asset.

public AssetIdentifier AssetIdentifier { get; init; }

Property Value

AssetIdentifier

Size

How much of the asset.

public PositionSize Size { get; init; }

Property Value

PositionSize

Methods

Of(long, AssetIdentifier)

Construct a position of quantity units of assetIdentifier.

public static Position Of(long quantity, AssetIdentifier assetIdentifier)

Parameters

quantity long
assetIdentifier AssetIdentifier

Returns

Position