Option Trading
Last updated
Last updated
The option trading library helps developers buy call or put options by performing the entire option trading flow when they make an order.
To fetch sign data from RPC
To place an order for the option trading
Input an object that includes option type (Call or Put), amount, underlying asset address (e.g. ETH address), premium asset (e.g. USDT address), expiration date (e.g. 2 hours, 8 hours, 24 hours)
To settle the option order at expiration time
With two main parameter:
JVaultOrder refers to above option trading parameter
LiquidateType includes 'NotExercising', 'Exercising', 'ProfitTaking'