API reference · Liquidations & positions

Position changes

Each perp position change, one per block, account and coin.

  • Elysium: not served
  • HyperCore
  • HyperEVM: not served
  • Not on Elysium or HyperEVM: a channel of HyperCore only

WebSocket channel hc.positions on wss://api.femtos.xyz/v1/ws

Parameters

ParamInExample or valuesMeaning
coinfilterBTCHyperCore market (BTC, @107, xyz:TSLA)
userfilter(optional)Account: 0x address or a named wallet's handle
min_notionalfilter100000Minimum notional, USD: default 100000, "0" for all

Subscribe

{"op":"subscribe","channel":"hc.positions","filter":{"coin":"BTC","min_notional":"100000"}}

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

Response fields

FieldTypeMeaning
dataHcPositionChangeeach perp position change, one per block, account and coin: {coin, user, kind, dir, start_position, end_position, sz, px, notional, liquidation, n_fills, tid, …}
data.kindopen | increase | reduce | close | flip | unchangedopen, increase, reduce, close, flip

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.
  • Positions GET /v1/positions HyperCore
    Open positions of one perp with leverage and liquidation price.
  • 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