Saltar para o conteúdo
Registar

Earn

Listar posições Earn

O dinheiro que tem no Earn, com o que cada posição já rendeu.

GET/api/v1/earn/positionsObter uma chave
curl --request GET \
  --url "https://reirex.com/api/v1/earn/positions" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE"

200 OKapplication/json

{
  "positions": [
    {
      "positionId": 381,
      "productId": "USDT-flexible-0",
      "currency": "USDT",
      "kind": "flexible",
      "apr": "0.0420",
      "termDays": 0,
      "amount": "1000.00000000",
      "earned": "3.45205479",
      "startedAt": "2026-09-14T10:02:44.120Z",
      "endsAt": null,
      "redeemedAt": null
    }
  ]
}

Parâmetros de consulta

  • statusstring

    open para dinheiro que ainda está a render, redeemed para posições que já voltaram.

    Um deopenredeemed

Resposta

  • positionsobject[]

    As posições, da mais recente para a mais antiga.