Drift Protocol v2

โŒ˜K
๐Ÿ‘พWelcome to Drift Protocol
๐ŸงฎDrift DEX
๐Ÿ‘‹Getting Started
๐Ÿ“ˆPerpetual Futures
๐Ÿ“ŠSpot Margin Trading
๐ŸฆBorrow & Lend
๐Ÿ›๏ธStaking
๐Ÿ”ฌTechnical Explanations
๐Ÿ“Accounting and Settlement
โž—Borrow Interest Rate
๐Ÿ“œDelisting Process
โ›ฒDrift AMM
๐ŸƒJust-In-Time (JIT) Auctions
๐Ÿ“šKeepers & Decentralised Orderbook
โ˜ ๏ธLiquidators
๐Ÿ’งLiquidity Providers (LPs)
๐Ÿ“‹Protocol Guard Rails
๐Ÿ“Risks
๐Ÿ–ฅ๏ธDeveloper Resources
๐Ÿ“”Overview
โŒจ๏ธSDK Documentation
โŒจ๏ธTutorial: Bots
โš ๏ธTroubleshooting
๐Ÿ› ๏ธKeeper Bots
๐Ÿ› ๏ธTrading Bots
โŒจ๏ธHistorical Data (v1)
โŒจ๏ธAPI
๐Ÿ›ก๏ธSecurity
๐Ÿ›ก๏ธAudits
๐Ÿ›ก๏ธBug Bounty
โš–๏ธLegal and Regulations
๐Ÿ“Terms of Use
๐Ÿ“Disclaimer
๐Ÿ“Privacy Policy
๐Ÿ“Competition Terms and Conditions
๐Ÿ“šGlossary
Docs powered byย archbeeย 
10min

What is Spot Margin Trading?

Spot Trading is the direct purchase or sale of an asset. The delivery of the assets is immediate and the transaction settles on-chain. Once the spot trade has been confirmed, settlement will be instantaneous, and you will be able to see the increase or decrease in the asset immediately in your account balances.

Spot trading on Drift v2 uses liquidity from OpenBook DEX as well as our own DLOB. By default, margin trading is not enabled. Learn how to enable it in the next section.

1. Select the SOL / USDC market in the top bar or the market's dropdown menu

Hover over a market in the top bar
Hover over a market in the top bar

2. Select your direction (e.g. Buy or Sell) and order type (e.g. Market, Limit) 3. Input the asset amount you'd like to trade or the notional value

Spot trading form
Spot trading form

5. Once you've confirmed your order and its been filled, your Balances tab will update to reflect your balance changes

Document image

Enable Spot Margin Trading

Margin needs to be enabled per subaccount. Here's how you can enable margin:

Margin trading allows you to leverage your assets as collateral to borrow funds for the trade. The leverage a trader can take in each spot market is determined by the protocol's risk engine.

  1. Open Setttings
  2. Go to Margin Trading in the left navigation
  3. Click the toggle to enable it for the subaccount you want
  4. Sign the wallet transaction to confirm
Document image

Once margin is enabled, you should see the leverage bar appear in the trade form.

Spot margin trading example:

  1. Select the SOL / USDC spot market
  2. Select the BUY side in the trade form and your order type
  3. Enter the amount you'd like to purchase or use the leverage slider
  4. Click "BUY SOL"
  5. Once the order is filled, your balances tab will update with the asset amounts you've purchased and amount you've borrowed (if applicable)

๏ปฟ

Spot margin trade form
Spot margin trade form
Updated 26 Jan 2023
Did this page help you?
Yes
No
UP NEXT
Spot FAQ
Docs powered byย archbeeย 
TABLE OF CONTENTS
Enable Spot Margin Trading