API reference · Liquidations & positions

Positions

Open positions of one perp with leverage and liquidation price.

  • Elysium: not served
  • HyperCore
  • HyperEVM: not served
  • Not on Elysium or HyperEVM: served on HyperCore only

GET https://api.femtos.xyz/v1/positions

Parameters

ParamInExample or valuesMeaning
coinqueryBTCPerp coin
sidequery(empty), long, shortOne side
sortquerynotional, upnl, liqDistanceSort
limitquery50Rows

Example

curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/positions?coin=BTC&sort=notional&limit=50"

Key: Authorization: Bearer $FEMTOS_KEY. Get a free key, or with no browser through agent onboarding.

Response fields

FieldTypeMeaning
positions[]objectSorted as asked: {address, szi, side, entryPx, notional, upnl, leverage, marginMode, liqPx, liqDistancePct, label, entity}
markPxdecimal | nullMark used
asOfmsTime of `height` (Unix ms)
heightintBlock the positions are at: the node's latest state (one every 10,000 blocks, ~12 min) rolled forward with every fill, funding payment and ledger update since, a few seconds behind the chain; the state itself while the roll is not running
baseHeightintBlock of that node state (= height when not rolled forward)
sortstringSort applied (liqDistance or upnl without what they need: notional)
orderstringOrder applied

Related: Liquidations & positions

  • Liquidations GET /v1/liquidations HyperCore
    Perp liquidations, newest first, one row per account, coin and block.
  • Liquidations stream WS hc.liquidations HyperCore
    Each liquidation fill, the block it happens.
  • Liquidation stats GET /v1/liquidations/stats HyperCore
    Totals, per coin, per time bucket and the largest, over a window.
  • Position changes WS hc.positions HyperCore
    Each perp position change, one per block, account and coin.
  • Open interest GET /v1/positions/overview HyperCore
    Open interest, accounts and unrealized PnL per perp.
  • Liquidation map GET /v1/positions/liqmap HyperCore
    Notional that would be liquidated at each price around the mark.

More

Agent guide (agents.md)llms.txtOpenAPIMCP serverGet an API keyChangelog