> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quader864.ir/llms.txt
> Use this file to discover all available pages before exploring further.

# Get all sentiment

> Retrieve the latest sentiment data for all currency pairs

## Response

Returns an array of the 50 most recent sentiment records, sorted by date (newest first).

<ResponseField name="data" type="array">
  Array of sentiment objects

  <Expandable title="sentiment object">
    <ResponseField name="pair" type="string">
      Currency pair (e.g., "EURUSD")
    </ResponseField>

    <ResponseField name="date" type="string">
      Timestamp of the sentiment data
    </ResponseField>

    <ResponseField name="long" type="object">
      Long position data

      <Expandable title="properties">
        <ResponseField name="percent" type="number">
          Percentage of long positions
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="short" type="object">
      Short position data

      <Expandable title="properties">
        <ResponseField name="percent" type="number">
          Percentage of short positions
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api-verifier-2.onrender.com/api/sentiment
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "pair": "EURUSD",
      "date": "2024-01-15T12:00:00.000Z",
      "long": { "percent": 45 },
      "short": { "percent": 55 }
    },
    {
      "pair": "GBPUSD",
      "date": "2024-01-15T12:00:00.000Z",
      "long": { "percent": 62 },
      "short": { "percent": 38 }
    }
  ]
  ```
</ResponseExample>
