Skip to main content
Function:
ABI Object:
Parameters:
  • signer - The account signer
  • subaccount - The Trading Account object
  • market - The PerpMarket object
  • size - Total size to execute (u64)
  • is_buy - True for buy, false for sell
  • is_reduce_only - Whether order can only reduce position
  • client_order_id - Optional client-assigned order ID `<Option<String>>`
  • twap_frequency_seconds - How often to execute sub-orders (u64)
  • twap_duration_seconds - Total duration for TWAP order (u64)
  • builder_address - Optional builder address `<Option<address>>`
  • builder_fees - Optional builder fee `<Option<u64>>`
Example: