Synthetic
Der Synthetic Positions Builder.
Konstruktoren
public Synthetic(Security security, ISecurityProvider provider)
synthetic = Synthetic(security, provider)
Der Synthetic Positions Builder.
- security
- Das Instrument (Option oder Basiswert).
- provider
- Der Anbieter von Informationen über Instrumente.
Methoden
public ValueTask<ValueTuple<Security, Sides>[]> BuyAsync(CancellationToken cancellationToken)
result = synthetic.BuyAsync(cancellationToken)
To get the synthetic position to buy the option.
- cancellationToken
- CancellationToken
Rückgabe: The synthetic position.
public ValueTask<ValueTuple<Security, Sides>[]> BuyAsync(decimal strike, CancellationToken cancellationToken)
result = synthetic.BuyAsync(strike, cancellationToken)
To get the option position for the underlying asset synthetic buy.
- strike
- Strike.
- cancellationToken
- CancellationToken
Rückgabe: The option position.
public ValueTask<ValueTuple<Security, Sides>[]> BuyAsync(decimal strike, DateTime expiryDate, CancellationToken cancellationToken)
result = synthetic.BuyAsync(strike, expiryDate, cancellationToken)
To get the option position for the underlying asset synthetic buy.
- strike
- Strike.
- expiryDate
- The date of the option expiration.
- cancellationToken
- CancellationToken
Rückgabe: The option position.
public ValueTask<ValueTuple<Security, Sides>[]> PositionAsync(Sides side, CancellationToken cancellationToken)
result = synthetic.PositionAsync(side, cancellationToken)
To get the synthetic position for the option.
- side
- The main position direction.
- cancellationToken
- CancellationToken
Rückgabe: The synthetic position.
public ValueTask<ValueTuple<Security, Sides>[]> PositionAsync(decimal strike, DateTime expiryDate, Sides side, CancellationToken cancellationToken)
result = synthetic.PositionAsync(strike, expiryDate, side, cancellationToken)
To get the option position for the synthetic base asset.
- strike
- Strike.
- expiryDate
- The date of the option expiration.
- side
- The main position direction.
- cancellationToken
- CancellationToken
Rückgabe: The option position.
public ValueTask<ValueTuple<Security, Sides>[]> SellAsync(CancellationToken cancellationToken)
result = synthetic.SellAsync(cancellationToken)
To get the synthetic position to sale the option.
- cancellationToken
- CancellationToken
Rückgabe: The synthetic position.
public ValueTask<ValueTuple<Security, Sides>[]> SellAsync(decimal strike, CancellationToken cancellationToken)
result = synthetic.SellAsync(strike, cancellationToken)
To get the option position for synthetic sale of the base asset.
- strike
- Strike.
- cancellationToken
- CancellationToken
Rückgabe: The option position.
public ValueTask<ValueTuple<Security, Sides>[]> SellAsync(decimal strike, DateTime expiryDate, CancellationToken cancellationToken)
result = synthetic.SellAsync(strike, expiryDate, cancellationToken)
To get the option position for synthetic sale of the base asset.
- strike
- Strike.
- expiryDate
- The date of the option expiration.
- cancellationToken
- CancellationToken
Rückgabe: The option position.