Pular para o conteúdo principal
GET
/
trading
/
positions
Listar posições do usuário
curl --request GET \
  --url https://api.n2.market/api/v1/trading/positions \
  --header 'X-API-Key: <api-key>'
{
  "positions": [
    {
      "id": "pos-123",
      "userId": "user-456",
      "marketId": "0336c14f-5a39-47c1-a88d-beee2e38163a",
      "outcomeId": "yes",
      "totalStake": 55,
      "oddLocked": 1.82,
      "potentialPayout": 100.1,
      "resolution": null,
      "updatedAt": "2026-03-30T14:30:00.000Z",
      "copyFromTraderId": null,
      "market": {
        "id": "0336c14f-5a39-47c1-a88d-beee2e38163a",
        "questions": {
          "pt": "Quem ganhará a eleição?",
          "en": "Who will win the election?",
          "es": "¿Quién ganará la elección?"
        },
        "status": "ACTIVE",
        "deadline": "2026-11-15T00:00:00.000Z",
        "winningOutcomeId": null,
        "createdAt": "2026-03-01T10:00:00.000Z",
        "logo": "https://cdn.n2.market/markets/election.png",
        "outcomes": [
          {
            "id": "yes",
            "text": {
              "pt": "Sim",
              "en": "Yes",
              "es": "Sí"
            }
          },
          {
            "id": "no",
            "text": {
              "pt": "Não",
              "en": "No",
              "es": "No"
            }
          }
        ]
      }
    }
  ],
  "total": 5,
  "limit": 20,
  "offset": 0
}

Autorizações

X-API-Key
string
header
obrigatório

API Key for authentication. Get your key from the dashboard.

Parâmetros de consulta

limit
integer
padrão:20

Maximum number of positions to return

Intervalo obrigatório: 1 <= x <= 100
offset
integer
padrão:0

Number of positions to skip for pagination

Intervalo obrigatório: x >= 0

Resposta

Posições recuperadas com sucesso

positions
object[]
total
integer
limit
integer
offset
integer