Sources › Finance › Dukascopy › Sentiment Index

Dukascopy Sentiment Index API

Dukascopy — the current retail long/short split across the whole quoted universe.

DukascopyGET /sentiment-indexAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:dukascopy/sentiment-index

Send 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

NameTypeInRequiredDescription
typeenum: swfx | ccyqueryNoUniverse keying. `swfx` quotes by traded pair (EUR/USD), `ccy` by underlying (0700.HK). Default swfx Example: swfx
querystringqueryNoFilter on instrument name. Omit for the whole universe Example: EUR
limitnumberqueryNoItems to return. Default 100, max 1000 Example: 100

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:dukascopy/sentiment-index?type=swfx&query=EUR&limit=100" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:dukascopy/sentiment-index?type=swfx&query=EUR&limit=100", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:dukascopy/sentiment-index",
    params={"type":"swfx","query":"EUR","limit":"100"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:dukascopy",
  "data": {
    "asOf": "2026-08-21T02:00:00.000Z",
    "type": "swfx",
    "count": 100,
    "items": [
      {
        "instrument": "0700.HK/HKD",
        "longPercent": 72.23,
        "instrumentId": "35136",
        "shortPercent": 27.77,
        "netShortPercent": -44.46
      },
      {
        "instrument": "AON.US/USD",
        "longPercent": 70.14,
        "instrumentId": "86258",
        "shortPercent": 29.86,
        "netShortPercent": -40.28
      },
      {
        "instrument": "AOS.US/USD",
        "longPercent": 72.21,
        "instrumentId": "86362",
        "shortPercent": 27.79,
        "netShortPercent": -44.42
      },
      {
        "instrument": "ARKI.US/USD",
        "longPercent": 70.08,
        "instrumentId": "99630",
        "shortPercent": 29.92,
        "netShortPercent": -40.16
      },
      {
        "instrument": "ASML.NL/EUR",
        "longPercent": 72.43,
        "instrumentId": "72048",
        "shortPercent": 27.57,
        "netShortPercent": -44.86
      },
      {
        "instrument": "AUD/CAD",
        "longPercent": 26.38,
        "instrumentId": "2050",
        "shortPercent": 73.62,
        "netShortPercent": 47.24
      },
      {
        "instrument": "AUD/CHF",
        "longPercent": 55.87,
        "instrumentId": "2052",
        "shortPercent": 44.13,
        "netShortPercent": -11.74
      },
      {
        "instrument": "AUD/DKK",
        "longPercent": 70.94,
        "instrumentId": "2256",
        "shortPercent": 29.06,
        "netShortPercent": -41.88
      }
    ],
    "query": null,
    "total": 312,
    "dataset": "sentiment-index",
    "provider": "dukascopy"
  },
  "timestamp": "2026-08-20T15:03:41Z"
}

Frequently asked questions

How do I call the Dukascopy Sentiment Index API?

Send a GET request to https://api.zapi.ink/v1/finance:dukascopy/sentiment-index with your Zapi key in the x-api-key header. Parameters — optional: type, query, limit. The response is JSON in the { project, data, timestamp } envelope.

What does the Dukascopy Sentiment Index API return?

Dukascopy — the current retail long/short split across the whole quoted universe. The example response has the fields asOf, type, count, items, query, total, dataset, provider. Each item in items has fields such as instrument, longPercent, instrumentId, shortPercent, netShortPercent.

Is the Dukascopy Sentiment Index 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 Index 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-index".

What other Dukascopy API endpoints are there?

It has 5 endpoints. Besides Sentiment Index: Instrument List, M1 Candles, Ticks, Sentiment History.