Kwenta Documentation
DiscordKwentaTwitterBlog
  • 🥂Welcome to Kwenta
  • Getting Started
    • How to start using Kwenta
    • Introduction
    • Getting started on Optimism
    • How to get sUSD
    • Access Kwenta
      • Installing the IPFS Companion to Access Kwenta
      • Backup RPCs
      • Withdrawing from v2 Isolated Margin using Optimistic Etherscan
  • Using Kwenta
    • Futures on Kwenta
    • Jargon
    • Synthetix Isolated Margin
      • Funding
        • Technical Details
      • Delayed Orders
      • Maker/Takers on Kwenta
      • Leverage
      • Liquidations
      • Initial/Maintenance Margin
      • One-Click Trading
        • Onboarding to 1CT
        • FAQ
      • Smart Margin
        • Dashboard Overview
        • Futures UI Overview
        • Get Started with Smart Margin
          • Withdrawing sUSD & ETH
          • Opening/Closing Positions
          • Conditional Orders
            • Limit Orders
            • Stop-Loss Orders
          • FAQ
      • Delegated Trading
        • Getting started
        • Managing Delegates
        • Accessing Accounts Delegate to You
      • Fees
      • Referral Program
        • The Traders Tab
        • The Affiliates Tab
        • Incentive Tiers and Rewards
      • FAQ
    • Perennial Isolated Margin
      • Perennial Intro
        • Market Design
        • Oracles
        • Payoff & Positions
        • Trading Fees and Price Impact
        • Funding Rate
        • Interest Rate
        • Leverage & Liquidations
        • Collateral
        • CodeBase
      • Bridging to Arbitrum
      • Trading on Perennial
        • Dashboard Overview
        • Futures UI Overview
        • Opening/Closing Positions
        • Advanced Orders
          • Limit Orders
          • Stop-Loss Orders
      • Gasless Trading
        • Onboarding to 1-Click-Trading
        • FAQ
  • Kwenta Token
    • Staking KWENTA
      • How to stake KWENTA
      • Escrow and Vesting
      • Transferring Escrow Entries
    • Claiming Rewards
    • Trading Rewards
  • DAO
    • Kwenta Token
    • Governance
    • MarketingDAO
    • devDAO
      • Contributing to the Kwenta Frontend
        • Troubleshooting
        • Testing
  • Developers
    • Deployed Contracts
      • V2 Futures Market Proxy Contracts
    • Verify Kwenta
    • Kwenta SDK
  • Resources
    • Audits
    • Development progress Epoch 1 2024
    • GitHub
Powered by GitBook
On this page

Was this helpful?

  1. Using Kwenta
  2. Synthetix Isolated Margin

Smart Margin

Trade any market with a single account using Smart Margin

PreviousFAQNextDashboard Overview

Last updated 1 year ago

Was this helpful?

Kwenta's on-chain margin engine "Smart Margin" offers a comprehensive suite of tools for trading derivatives powered by Synthetix. Smart Margin (SM) accounts utilize a script-like trading language that defines ordered commands (or steps) to be batch executed by the trader in a single transaction.

The command structure supports unrestricted interactions with Synthetix (like modifying position margin and size across multiple markets) and other protocols integrated into the engine. Commands ranging from depositing margin from an EOA to the SM account and executing swaps via Uniswap's UniversalRouter can all be scripted in whatever order the trader desires.

Furthermore, given the upgradable nature of the SM system, future protocol integrations can happen seamlessly without disrupting the functionality already offered.

Additional details concerning protocol architecture and direct usage can be found in the . A complete list of supported commands and related inputs can be found in our Smart Margin . Finally, specific interaction flows have been tested natively in solidity and offer a great starting place for anyone looking to integrate Kwenta's margin engine.

README
wiki
here
Dashboard Overview
Futures UI Overview
Get Started with Smart Margin
Conditional Orders
FAQ
Smart Margin Command Execution Flow
Smart Margin Account Proxy Architecture
Smart Margin Account Creation UI