Struct Position
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
SizePositionSizeHow much of the asset.
AssetIdentifierAssetIdentifierWhich asset.
Properties
AssetIdentifier
Which asset.
public AssetIdentifier AssetIdentifier { get; init; }
Property Value
Size
How much of the asset.
public PositionSize Size { get; init; }
Property Value
Methods
Of(long, AssetIdentifier)
Construct a position of quantity units of assetIdentifier.
public static Position Of(long quantity, AssetIdentifier assetIdentifier)
Parameters
quantitylongassetIdentifierAssetIdentifier