Przejdź do treści
Zarejestruj się

Earn

Wykup z Earn

Odbierz pieniądze z pozycji wraz ze wszystkim, co zarobiła, a co nie zostało jeszcze wypłacone.

POST/api/v1/earn/redeemZdobądź klucz
curl --request POST \
  --url "https://reirex.com/api/v1/earn/redeem" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE" \
  --header "Content-Type: application/json" \
  --data '{"positionId":381}'

200 OKapplication/json

{
  "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": "2026-10-14T16:14:15.412Z"
}

Stały okres wraca sam w dniu zakończenia, a do tego czasu zwraca locked.

Treśćapplication/json

Odpowiedź

  • positionIdinteger

    Nasz identyfikator pozycji.

  • productIdstring

    Produkt, w którym jest.

  • currencystring

    Co zawiera.

  • kindstring

    cash, flexible, fixed lub staking.

  • aprstring

    Stopa roczna: 0.0420 to 4,2 % rocznie.

  • termDaysinteger

    Na ile dni środki są zablokowane; 0 dla produktów, w których pozostają dostępne.

  • amountstring

    Wpłacona kwota.

  • earnedstring

    Ile dotąd zarobiła, a po wykupie ile łącznie wypłaciła.

  • startedAtstring

    Kiedy środki trafiły do produktu.

  • endsAtstring | null

    Kiedy kończy się stały okres; null dla pozostałych.

  • redeemedAtstring | null

    Kiedy wróciła; null, dopóki zarabia.