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
| Param | In | Example or values |
|---|---|---|
coin | query | BTC |
buckets | query | 40 |
step | query | (optional) |
range_pct | query | 10 |
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
| Field | Type | Meaning |
|---|---|---|
buckets[] | object | Ascending price; empty when the mark is unknown: {pxLo, pxHi, count, notional, stop, takeProfit} |
buckets[].stop | object | Open trigger orders of one kind, by side and execution: {sell, buy} |
totals | object | Open trigger orders by kind: {count, notional, stop, takeProfit} |
below | object | Under the grid: {count, notional} |
above | object | Over the grid: {count, notional} |
markPx | decimal | null | Mark: last trade |
rangePct | decimal | range_pct applied |
step | decimal | null | Bucket width |
asOf | int | null | Time of `height` (latest status of the open trigger-order table) (Unix ms); null before the table has one |
height | int | null | Head 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 |
positions | object | null | The 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.