Skip to main content
GET
/
api
/
sentiment
/
{pair}
curl "https://api-verifier-2.onrender.com/api/sentiment/EURUSD?startDate=2024-01-01&endDate=2024-01-15"
[
  {
    "date": "2024-01-01T00:00:00.000Z",
    "long": 48,
    "short": 52
  },
  {
    "date": "2024-01-02T00:00:00.000Z",
    "long": 45,
    "short": 55
  },
  {
    "date": "2024-01-03T00:00:00.000Z",
    "long": 51,
    "short": 49
  }
]

Path parameters

pair
string
required
Currency pair (e.g., “EURUSD”, “GBPUSD”)

Query parameters

startDate
string
Filter results from this date (ISO 8601 format)
endDate
string
Filter results until this date (ISO 8601 format)

Response

Returns an array of sentiment data formatted for charting, sorted by date (oldest first).
data
array
Array of chart data points
curl "https://api-verifier-2.onrender.com/api/sentiment/EURUSD?startDate=2024-01-01&endDate=2024-01-15"
[
  {
    "date": "2024-01-01T00:00:00.000Z",
    "long": 48,
    "short": 52
  },
  {
    "date": "2024-01-02T00:00:00.000Z",
    "long": 45,
    "short": 55
  },
  {
    "date": "2024-01-03T00:00:00.000Z",
    "long": 51,
    "short": 49
  }
]