femtos

HyperCore · Stops & take-profits

Stops stream

Every trigger order event: placed, triggered, canceled, and the order a trigger placed.

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

Parameters

ParamInExample or values
coinfilterBTC
userfilter(optional)
statusfilter(empty), open, triggered, filled, canceled
kindfilter(empty), stop, take_profit

Subscribe

{"op":"subscribe","channel":"hc.stops","filter":{"coin":"BTC"}}

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

Response fields

FieldTypeMeaning
snapshot: trueobject[]last 50 matching events
dataobjecthc.orders fields: {status, coin, side, px, sz, orig_sz, oid, user, order_type, trigger_px, trigger_condition, time, block…}
is_position_tpsl · kind · execboolean · stringposition TP/SL; stop | take_profit; market | limit
triggeredbooleantrue: the order a trigger placed (filled, canceled)

Related: Stops & take-profits

  • Stop map GET /v1/hypercore/stops
    Open stop-loss and take-profit orders of one coin, bucketed by trigger price around the mark.
  • 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.

More