Przejdź do treści
Zarejestruj się

Earn

Pobierz listę pozycji Earn

Pieniądze, które masz w Earn, wraz z tym, ile każda pozycja dotąd zarobiła.

GET/api/v1/earn/positionsZdobądź klucz
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
    }
  ]
}

Parametry zapytania

  • statusstring

    open dla środków, które wciąż zarabiają, redeemed dla pozycji, które już wróciły.

    Jedna zopenredeemed

Odpowiedź

  • positionsobject[]

    Pozycje od najnowszej.