API reference · Stops & take-profits

Stop map

Open stop-loss and take-profit orders of one coin, bucketed by trigger price around the mark.

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

GET https://api.femtos.xyz/v1/hypercore/stops

Parameters

ParamInExample or valuesMeaning
coinqueryBTCHyperCore coin: perp (BTC), HIP-3 (xyz:TSLA)
bucketsquery40Most buckets (width rounded up to a round number); not with step
stepquery(optional)Bucket width in price units, instead of buckets (at most 400 buckets)
range_pctquery10Half-width of the grid around the mark, percent, (0, 100]

Example

curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/hypercore/stops?coin=BTC&buckets=40&range_pct=10"

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

Response fields

FieldTypeMeaning
buckets[]objectAscending price; empty when the mark is unknown: {pxLo, pxHi, count, notional, stop, takeProfit}
buckets[].stopobjectOpen trigger orders of one kind, by side and execution: {sell, buy}
totalsobjectOpen trigger orders by kind: {count, notional, stop, takeProfit}
belowobjectUnder the grid: {count, notional}
aboveobjectOver the grid: {count, notional}
markPxdecimal | nullMark: last trade
rangePctdecimalrange_pct applied
stepdecimal | nullBucket width
asOfint | nullTime of `height` (latest status of the open trigger-order table) (Unix ms); null before the table has one
heightint | nullHead block of the layer the answer is cut at: every event up to it is counted (latest status of the open trigger-order table); null before the table has one
positionsobject | nullThe perp positions that sized the whole-position orders: their cut (height, the node state rolled forward to it); null without any: {asOf, height, baseHeight, baseAsOf}

Related: Stops & take-profits

  • Stops stream WS hc.stops HyperCore
    Every trigger order event: placed, triggered, canceled, and the order a trigger placed.
  • Triggered stops GET /v1/hypercore/stops/triggered HyperCore
    Stop-loss and take-profit orders that fired, newest first, with the fill they got.
  • Wallet stops GET /v1/hypercore/wallet/{address}/stops HyperCore
    One wallet's open trigger orders, or with history=1 every status event of them.

More

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