femtos

HyperCore · Stops & take-profits

Stop map

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

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

Parameters

ParamInExample or values
coinqueryBTC
bucketsquery40
stepquery(optional)
range_pctquery10

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 snapshot that sized the whole-position orders (asOf, height); null without one: {asOf, height}

Related: Stops & take-profits

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

More