Skip to main content

Inputs

  • pairId: from getPairs()
  • buy: true for long, false for short
  • price: current market price
  • collateral: USD string
  • leverage: leverage string

Notes

  • slippage applies to market orders
  • builder fees apply automatically if configured at client construction