Request Founder AccessApplications are open for a limited group of Founder Members

SupRes (Support/Resistance) API

SupRes (Support/Resistance) API

Use this endpoint to retrieve Support/Resistance snapshots.

Endpoint

GET https://api.darwintiq.com/v1/supres

Query parameters

  • symbol (required)
  • begin (optional) — start time (YYYY-MM-DD HH:MM:SS) for range mode
  • sort (optional)ASC (default) | DESC
  • latest (optional)1 returns only the latest snapshot
  • include_candles (optional)1 to include candle payload in range mode
  • attach (optional) — upstream attach flag for additional context data

Example

curl -H "Authorization: Bearer [YOUR_TOKEN]" \
  "https://api.darwintiq.com/v1/supres?symbol=EURUSD&latest=1"

Response (example)

{
  "status": "success",
  "symbol": "EURUSD",
  "latest": true,
  "snapshot": {
    "levels": [
      { "idx": 0, "type": "S", "price": 1.0829, "touches": 3 },
      { "idx": 1, "type": "R", "price": 1.0864, "touches": 2 }
    ],
    "mtf": [
      { "idx": 0, "type": "R", "price": 1.0882, "touches": 1, "tf": "H1" }
    ]
  }
}

Notes

  • type: S = support, R = resistance
  • touches: how often price respected the level in the snapshot window

Field reference

FieldTypeDescription
statusstringsuccess when the request succeeds.
symbolstringRequested symbol.
latestbooleanPresent in latest mode responses.
opentimestring | nullSnapshot timestamp in latest mode.
snapshotobject | nullLatest mode snapshot object.
snapshot.curarrayCurrent-timeframe levels.
snapshot.cur[].idxnumberIndex in snapshot.
snapshot.cur[].typestringS or R.
snapshot.cur[].pricenumberLevel price.
snapshot.cur[].touchesnumberTouch count in window.
snapshot.mtfarrayMulti-timeframe levels (if present).
snapshot.mtf[].idxnumberIndex in MTF list.
snapshot.mtf[].typestringS or R.
snapshot.mtf[].pricenumberLevel price.
snapshot.mtf[].touchesnumberTouch count in window.
snapshot.mtf[].tfstringTimeframe label (e.g., H1).
snapshot.regobject | nullOptional regression channel lines (mid/up/dn).
snapshot.swingobject | nullOptional swing lines (top/bot).
beginstringPresent in range mode responses.
sortstringPresent in range mode responses (ASC/DESC).
countnumberNumber of range snapshots.
supresobjectRange mode map keyed by opentime.
supres.<opentime>object | nullSnapshot at that timestamp.
candlesarrayOptional candles in range mode (include_candles=1).
metaobject | nullOptional metadata block from upstream.

Errors

  • 400 missing or invalid symbol
  • 401 missing bearer token
  • 403 invalid token or no subscription access for symbol
  • 429 per-token rate limit exceeded
  • 500 upstream or internal error