Synthetic
StockSharp.Algo.Derivatives
合成位置ビルダー。
コンストラクター
Synthetic
public Synthetic(Security security, ISecurityProvider provider)
synthetic = Synthetic(security, provider)
合成位置ビルダー。
- security
- 機器(オプションまたは基底資産)。
- provider
- 機器に関する情報提供者
メソッド
BuyAsync
public ValueTask<ValueTuple<Security, Sides>[]> BuyAsync(CancellationToken cancellationToken)
result = synthetic.BuyAsync(cancellationToken)
To get the synthetic position to buy the option.
- cancellationToken
- CancellationToken
戻り値: The synthetic position.
BuyAsync
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
戻り値: The option position.
BuyAsync
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
戻り値: The option position.
PositionAsync
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
戻り値: The synthetic position.
PositionAsync
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
戻り値: The option position.
SellAsync
public ValueTask<ValueTuple<Security, Sides>[]> SellAsync(CancellationToken cancellationToken)
result = synthetic.SellAsync(cancellationToken)
To get the synthetic position to sale the option.
- cancellationToken
- CancellationToken
戻り値: The synthetic position.
SellAsync
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
戻り値: The option position.
SellAsync
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
戻り値: The option position.