Request
https://api.zapi.ink/v1/finance:dukascopy/sentiment-historySend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 30 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| query | string | query | No | Filter on instrument name; the slash is optional. Omit for the whole universe Example: EUR/USD |
| limit | number | query | No | Items to return. Default 100, max 1000 Example: 100 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:dukascopy/sentiment-history?query=EUR%2FUSD&limit=100" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:dukascopy/sentiment-history?query=EUR%2FUSD&limit=100", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:dukascopy/sentiment-history", params={"query":"EUR/USD","limit":"100"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:dukascopy", "data": { "count": 1, "items": [ { "last": { "longPercent": 28.64, "shortPercent": 71.36, "netShortPercent": 42.72 }, "oneDay": { "longPercent": 30.96, "shortPercent": 69.04, "netShortPercent": 38.08 }, "fiveDays": { "longPercent": 37.07, "shortPercent": 62.93, "netShortPercent": 25.86 }, "sixHours": { "longPercent": 29.89, "shortPercent": 70.11, "netShortPercent": 40.22 }, "instrument": "EUR/USD", "nameTruncated": false } ], "query": "EUR/USD", "total": 1, "dataset": "sentiment-history", "provider": "dukascopy" }, "timestamp": "2026-08-20T15:03:41Z" }
Frequently asked questions
How do I call the Dukascopy Sentiment History API?
Send a GET request to https://api.zapi.ink/v1/finance:dukascopy/sentiment-history with your Zapi key in the x-api-key header. Parameters — optional: query, limit. The response is JSON in the { project, data, timestamp } envelope.
What does the Dukascopy Sentiment History API return?
Dukascopy — how retail crowding sat at four fixed look-backs: now, 6 hours,. The example response has the fields count, items, query, total, dataset, provider. Each item in items has fields such as last, oneDay, fiveDays, sixHours, instrument, nameTruncated.
Is the Dukascopy Sentiment History API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Dukascopy Sentiment History API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "dukascopy" and endpoint "sentiment-history".
What other Dukascopy API endpoints are there?
It has 5 endpoints. Besides Sentiment History: Instrument List, M1 Candles, Ticks, Sentiment Index.
