API reference · Liquidations & positions

Position change history

Past perp position changes of one coin over a size, one row per account and block.

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

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

Parameters

ParamInExample or valuesMeaning
coinqueryBTCPerp coin
minNotionalquery1000000Smallest notional (USD, decimal string)
fromquery(optional)Window start (ms)
toquery(optional)Window end (ms, exclusive)
sortquery(empty), time, notionalNewest first, or largest first
limitquery50Rows

Example

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

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

Response fields

FieldTypeMeaning
changes[]objectSorted as asked: {block, time, coin, user, kind, dir, start_position, end_position, sz, px, notional, liquidation, …}
changes[].kindopen | increase | reduce | close | flip | unchangedWhat the block did to the position (unchanged: traded both ways, e.g. opened and closed)
frommsStart of the window read
tomsEnd of the window read (exclusive)
billingmediummedium

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.
  • 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