# Forex Sentiment: Retail Long/Short Ratio by Broker (`scrapemint/forex-sentiment-tracker`) Actor

Retail trader positioning for 24 forex pairs, gold, silver, oil, indices and crypto: % long and short from Myfxbook, OANDA, Dukascopy, FX Blue, XM and more, with contrarian buy/sell signals and change since your last run.

- **URL**: https://apify.com/scrapemint/forex-sentiment-tracker.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Forex Sentiment: Retail Long/Short Ratio by Broker

See how retail traders are positioned right now, the way the Myfxbook Community Outlook and IG Client Sentiment show it, but from **9 brokers at once** and as data you can schedule:

- **% long and % short** for 24 forex pairs, gold, silver, WTI and Brent oil, US30, NAS100, SP500, GER40, Bitcoin, Ethereum and the dollar index
- **Per-broker split**: Myfxbook, OANDA, Dukascopy, FX Blue, XM, InstaForex, FIBO Group, AMarkets and FXSSI, so you can see when brokers disagree
- **Contrarian signal**: `sell` when the crowd is at least 60% long, `buy` when it is at least 60% short (threshold is yours to set)
- **Change since your last run**: how far the long % moved, for spotting fast positioning shifts
- **Popularity**: how many traders hold the symbol, relative to the others

Data from the FXSSI sentiment aggregator. No API key, no login.

### Who uses it

- **Forex and gold traders**: a contrarian filter. Retail traders are mostly wrong at extremes, so 75%+ long is a warning sign for longs
- **Signal channels and EA / bot builders**: feed sentiment into Telegram alerts, MT4/MT5 expert advisors or TradingView webhooks
- **Analysts and newsletters**: daily positioning tables next to COT data and the economic calendar

### Example input

All symbols, every hour on a schedule:

```json
{ "signalThreshold": 65, "trackChanges": true }
```

Majors and gold only, one row per broker:

```json
{ "symbols": ["EURUSD", "GBPUSD", "USDJPY", "XAUUSD"], "output": "brokers" }
```

### Example output

```json
{
  "symbol": "EURUSD",
  "assetClass": "forex",
  "longPct": 75.62,
  "shortPct": 24.38,
  "crowd": "long",
  "contrarianSignal": "sell",
  "signalThresholdPct": 60,
  "brokerCount": 9,
  "brokersLong": 8,
  "brokersShort": 1,
  "minLongPct": 27,
  "maxLongPct": 83.93,
  "longPctByBroker": {
    "Myfxbook": 83.93,
    "XM": 79.41,
    "FX Blue": 76.9,
    "FXSSI": 71.22,
    "Dukascopy": 70.03,
    "AMarkets": 68.67,
    "OANDA": 64.85,
    "InstaForex": 53.49,
    "FIBO Group": 27
  },
  "popularity": 9777,
  "previousLongPct": null,
  "longPctChange": null,
  "previousSnapshotTime": null,
  "snapshotTime": "2026-11-24T09:00:08.000Z"
}
```

Rows come sorted by how one-sided the crowd is, most extreme first. `previousLongPct` is `null` on your first run; schedule the actor and it fills in from the second run onwards.

### Pricing

**$0.002 per symbol row**, no monthly fee. The first row of every run is free. All 25 symbols cost $0.048 per run; hourly for a month is about $35, every 4 hours about $9. Filter `symbols` to pay for fewer.

### Related actors

- [ForexFactory Economic Calendar](https://apify.com/scrapemint/forexfactory-economic-calendar): high-impact news times, forecasts and actuals
- [CFTC COT Tracker](https://apify.com/scrapemint/cftc-cot-tracker): what large speculators and commercials hold
- [Currency Exchange Rates](https://apify.com/scrapemint/currency-exchange-rates-scraper): daily FX rates
- [Central Bank Policy Rates](https://apify.com/scrapemint/central-bank-policy-rates): rate decisions worldwide

# Actor input Schema

## `symbols` (type: `array`):

Keep only these, e.g. EURUSD, GBPUSD, USDJPY, XAUUSD, NAS100, BTCUSD. Empty = all 24: EURUSD, GBPUSD, USDJPY, USDCHF, USDCAD, AUDUSD, NZDUSD, EURGBP, EURJPY, EURAUD, EURCHF, GBPJPY, GBPCHF, AUDJPY, XAUUSD, XAGUSD, XTIUSD, XBRUSD, US30, NAS100, SP500, GER40, BTCUSD, ETHUSD.

## `brokers` (type: `array`):

Average only these brokers: Myfxbook, OANDA, Dukascopy, FX Blue, XM, InstaForex, FIBO Group, AMarkets, FXSSI. Empty = all.

## `signalThreshold` (type: `integer`):

Contrarian signal: sell when at least this % of traders are long, buy when at least this % are short. 60 is common; higher = fewer, stronger signals.

## `output` (type: `string`):

One row per symbol (average across brokers, with each broker inside), or one row per symbol and broker.

## `trackChanges` (type: `boolean`):

Remember each run's snapshot and add how much the long % moved since your previous run. Best with a schedule (every 1-4 hours).

## Actor input object example

```json
{
  "signalThreshold": 60,
  "output": "symbols",
  "trackChanges": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per symbol or per broker.

## `summary` (type: `string`):

Snapshot time, rows returned and active signals.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/forex-sentiment-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/forex-sentiment-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call scrapemint/forex-sentiment-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapemint/forex-sentiment-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/qTKbfscer605UFIgQ/builds/tkldu0aza0OJR749H/openapi.json
