margin/accounting engine of the protocol
means an Automated Market Maker is Drift's source of constant liquidity that is based on the constant product formula x*y=k balancing the reserves.
refers to the network of Keeper Bots on Drift that facilitates the exchange of liquidity. For more information, read
means to Just-In-Time.
a "Just-in-Time" Auction refers to the dutch auction mechanism that lets Market Makers provide liquidity to Takers.
Market Makers / Makers
refers to parties on the platform that provide liquidity to the exchange. Liquidity 'provided' by Market Makers can be 'taken' by Takers. Market Makers includes parties that place orders on Drift with the 'Post-Only' function. This means the order be placed on the decentralised orderbook and will only add to the liquidity available. Market Makers also include parties that provide liquidity via the JIT mechanism.
refer to users on the platform that 'take' liquidity from the exchange. Takers take liquidity made available by Market Makers or Drift's AMM.
Liquidity Providers (LPs) are users who hold LP Shares in a particular Perpetuals Market and increase the AMM's liquidity. These users recieve positions pro-rate: e.g. their share amount of the AMM's constant product invariant (k). Adding/Removing LP shares increases/decreases the AMM's k
means you are speculating on the price of the asset going up.
means you are speculating on the price of the asset going down.
means Time Weighted Average Price which is the average price of the Oracle over a specified period of time. This approximation is calculated on-chain during program interactions with the account.
Index / Oracle Price
is the price of the underlying asset (currently: as reported by Pyth).
is the price of the relevant market.
refers to 1/24 the average premium every hour. if positive, longs pay shorts. if negative, shorts pay longs. see for more details
refers to the total size of all positions (long and short) in the relevant market.
refers to the total volume traded in past day in the relevant market.
means a base / quote asset pair.
means the position's bet on price change.
means the position's base asset value.
means the position's quote asset value.
means the average price paid (cost basis) for acquiring position.
means the average price realised if closing entire position.
means the soft estimate of price where liquidation of account will occur.
P&L (Profit & Loss)
means the Profit and/or Loss of position. Calculated on difference between EXIT PRICE and ENTRY PRICE.
Opens modal for reducing/closing position.
means the total available USD value of weighted collateral and P&L for margin trading
means the sum of P&L available in all open positions that has not been realised (settled) by the user yet.
Unrealised Funding P&L
means the unrealised amount collected/paid for funding payments. (will be automatically realised upon next user action)
means the value of collateral that can be used to open new risk-increasing positions.
means Total Notional Position Size / Total Collateral.
means Total Collateral / Total Notional Position Size.
Maintenance Margin Req.
is the margin ratio at which users will liquidated back up to the liquidation buffer.
maintenanceMarginReq / Total Collateral
is the curve invariant, currently for constant product. k = base_asset_reserve * quote_asset_reserve
Base Asset Reserve
means the virtual base reserves for a market (SOL reserves).
Quote Asset Reserve
means the virtual quote reserves for a market (e.g. USDC reserves in a SOL/USDC virtual pool).
means the magnitude of the quote asset reserve. For instance, one virtual quote asset reserve is a peg multiplier amount of the quote asset. A peg multiplier ensures that the base asset reserve and the quote asset reserve are balanced at the initialisation of the curve while ensuring that the starting price of the pool is equivalent to the oracle price of the base asset at initialisation.
in the AMM, is defined as (quote_asset_reserve * peg_multiplier) / base_asset_reserve. It is the true reserves price prior to any spread logic.
is the Price available to sell from the AMM, before slippage.
is the Price available to buy from the AMM, before slippage.
means the Market Price. Average of current Bid and Ask Price.
means the latest composite price from oracles. Oracle price is interchangeable with index price.
means modifying the peg multiplier which means re-pegging the curve such that the mark price is closer to the oracle price.
means modifying the curve's invariant k by scaling the base/quote asset reserves. For instance, this modifies the default slippage of a swap.
means the mark price if all users atomically closed their positions and no repegs/k adjustments occured (should be equal to the peg multiplier if all k adjustments were done during a balanced market).
base asset amount
The amount of base currency (e.g. SOL-PERP) held by a single user.
net user position
Current longs - shorts in a given market.