watchers

WATCHER: get a signed callback when the Crypto Fear & Greed...

WATCHER: get a signed callback when the Crypto Fear & Greed index crosses a level (e.g. drops into Extreme Fear). Arm once, pay once. conditionType 'above'/'below'; threshold is the index value 0–100. Fires once per crossing; bounded by maxFires/expiry. Signed (verify offline) + retried; recoverable via watchers.status. Returns a watcherId.

post/api/watchers/fear-greed

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/watchers/fear-greed
  • Auth: API key in header PAYMENT-SIGNATURE

Request body

conditionType'above' | 'below' required

Fire when the index goes above or below the threshold.

thresholdnumber required

Index value 0–100 to cross (e.g. 20 = extreme fear, 80 = extreme greed).

callbackUrlstring uri required

Signed event POSTed here (verify X-2s-Signature). Any http(s) URL.

payloadobject

Arbitrary JSON echoed back in every callback.

expiresInSecondsinteger

Active window in seconds (default 30d, max 90d).

maxFiresinteger

Stop after this many callbacks (default 1).

labelstring

Optional free-text tag.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.