watchers

WATCHER: get a signed callback around a US company's earnings.

WATCHER: get a signed callback around a US company's earnings. Arm once, pay once (no account, no API key). trigger 'reported' (default) fires when results post — with reported EPS vs estimate, the surprise, and revenue; trigger 'upcoming' fires daysBefore the scheduled report date as a heads-up. Pass ticker (+ optional daysBefore for upcoming). Fires once per report period; bounded by a maxFires / expiry budget. Calendar via Finnhub. Deliveries are EIP-191-signed (verify offline) and retried with exponential backoff; missed pushes are recoverable via watchers.status. Returns a watcherId.

post/api/watchers/business-earnings

Request

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

Request body

tickerstring required

US-listed ticker to watch, e.g. AAPL.

trigger'reported' | 'upcoming'

'reported' (default) fires when results post; 'upcoming' fires ahead of the scheduled date.

daysBeforeinteger

For trigger='upcoming': how many days before the report date to fire (default 1).

callbackUrlstring uri required

Where we POST the event. Any http(s) URL; the JSON body is signed (verify with X-2s-Signature). e.g. https://your-agent.app/hooks/earnings

payloadobject

Arbitrary JSON echoed back verbatim in every callback so you can route/identify the event. e.g. {"agentId":"a1"}

expiresInSecondsinteger

How long the watch stays active, in seconds. Default 2592000 (30 days), max 7776000 (90 days).

maxFiresinteger

Stop after this many report events (default 1 — the next report). Each fire is a distinct fiscal period.

labelstring

Optional free-text tag to recognize this watcher later.

Response

(unresolved $ref)

Changes