Skip to main content
GET
Get slippage for provided notional and side

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

asset
string
required

Asset identifier: base symbol (e.g. "ETH") or full pair (e.g. "ETHUSDC").

Minimum string length: 1
Example:

"ETH"

exchange
enum<string>
required

Exchange name

Available options:
aster,
binance,
bybit,
extended,
gate,
hyperliquid,
lighter,
mexc,
ondo,
robinhood
Example:

"aster"

notionalUsd
string
required

Notional USD includes leverage

Example:

1000

side
enum<string>
required

Side

Available options:
buy,
sell
Example:

"buy"

Response

GetSlippage · object | null

Slippage calculation result, or null when the top of book is crossed

avgPrice
number
required

Average execution price across all filled orderbook levels

Example:

1852.34

bestPrice
number
required

Best available price (ask for long, bid for short)

Example:

1850.5

depthImpact
number
required

Price impact as a percentage difference from the best price on the side you take, excluding the half-spread

Example:

0.099432

depthUsedUsd
number
required

Total USD value of orderbook depth consumed to fill the order

Example:

50000

effectiveSpreadBps
number
required

Spread between worst and best execution price in basis points

Example:

12.5

filled
boolean
required

Whether the order can be completely filled at current orderbook depth

filledPercent
number
required

Percentage of order filled (0-100)

Example:

100

slippage
number
required

Price impact as percentage difference from mid-price

Example:

0.125432

slippageBps
number
required

Price impact in basis points (slippage × 100)

Example:

12.54

worstPrice
number
required

Worst (highest for long, lowest for short) price encountered while filling

Example:

1854.75