Skip to main content
GET
/
v1
/
orderbook
/
fetch_orderbook_impact
Fetch orderbook impact
curl --request GET \
  --url https://github.com/openpx-trade/openpx/v1/orderbook/fetch_orderbook_impact
{
  "asset_id": "<string>",
  "buy_fill_pct": 123,
  "openpx_ts": "2023-11-07T05:31:56Z",
  "sell_fill_pct": 123,
  "size": 123,
  "buy_avg_price": 123,
  "buy_slippage_bps": 123,
  "exchange_ts": "2023-11-07T05:31:56Z",
  "mid": 123,
  "sell_avg_price": 123,
  "sell_slippage_bps": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.openpx.trade/llms.txt

Use this file to discover all available pages before exploring further.

Slippage curve at a single requested size. Walks the book consuming levels until size is filled or the side exhausts; returns partial fills with fill_pct < 100.0. size must be > 0.

Query Parameters

asset_id
string
required
size
number<double>
required

Response

Success.

asset_id
string
required
buy_fill_pct
number<double>
required
openpx_ts
string<date-time>
required
sell_fill_pct
number<double>
required
size
number<double>
required
buy_avg_price
number<double> | null
buy_slippage_bps
number<double> | null
exchange_ts
string<date-time> | null
mid
number<double> | null
sell_avg_price
number<double> | null
sell_slippage_bps
number<double> | null