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)sort(optional) —ASC(default) |DESClatest(optional) —1returns only the latest snapshot
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= resistancetouches: how often price respected the level in the snapshot window