Skip to main content
Override the client-level builder fee for one trade:

Important behavior

  • pairId comes from getPairs()
  • collateral has a fixed minimum open size of MIN_OPEN_SIZE_USD (5)
  • market orders respect slippage
  • limit and stop orders do not use slippage
  • the SDK does not cap leverage locally; contract-side limits are authoritative
  • isDayTrade may be required when leverage exceeds a pair’s overnight limit
  • builder.address and builder.feeBps can be overridden per trade; omitted fields fall back to the client builder config
  • successful SDK submissions to the Trading contract report { hash } to POST /v1/trade in the background for attribution

Parameters

Response schema