Option Trading

The option trading library helps developers buy call or put options by performing the entire option trading flow when they make an order.

Function List

  • To fetch sign data from RPC

MethodParameter TypeError Message
  • 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)

MethodParameter TypeError Message
  • To settle the option order at expiration time

    • With two main parameter:

      • JVaultOrder refers to above option trading parameter

      • LiquidateType includes 'NotExercising', 'Exercising', 'ProfitTaking'

MethodParameter TypeError Message

Last updated