Synthetic
El constructor de posiciones sintéticas.
Constructores
public Synthetic(Security security, ISecurityProvider provider)
synthetic = Synthetic(security, provider)
El constructor de posiciones sintéticas.
- security
- El instrumento (la opción o el activo subyacente).
- provider
- El proveedor de información sobre instrumentos.
Métodos
public ValueTask<ValueTuple<Security, Sides>[]> BuyAsync(CancellationToken cancellationToken)
result = synthetic.BuyAsync(cancellationToken)
To get the synthetic position to buy the option.
- cancellationToken
- CancellationToken
Devuelve: 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
Devuelve: 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
Devuelve: 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
Devuelve: 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
Devuelve: 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
Devuelve: 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
Devuelve: 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
Devuelve: The option position.