Skip to main content

Overview

The sentiment API provides market positioning data for currency pairs, showing the percentage of traders holding long vs short positions.

Get all sentiment data

Retrieve the 50 most recent sentiment records:
Response:

Get sentiment for a specific pair

Filter by date range

Response (formatted for charting):

Using sentiment data

Contrarian indicator

Retail sentiment is often used as a contrarian indicator:
  • High long percentage (>70%) → Consider short positions
  • High short percentage (>70%) → Consider long positions

JavaScript example

Chart integration

The date-filtered endpoint returns data sorted oldest-first, making it ready for time-series charts: