Przejdź do treści
Zarejestruj się

Earn

Subskrybuj Earn

Wpłać pieniądze do produktu, a zaczną zarabiać: od następnego dnia, jeśli pozostają dostępne, a od pierwszego dnia w stałym okresie.

POST/api/v1/earn/subscribeZdobądź klucz
curl --request POST \
  --url "https://reirex.com/api/v1/earn/subscribe" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE" \
  --header "Content-Type: application/json" \
  --data '{"productId":"USDT-flexible-0","amount":"1000"}'

201 Createdapplication/json

{
  "positionId": 381,
  "productId": "USDT-flexible-0",
  "currency": "USDT",
  "kind": "flexible",
  "apr": "0.0420",
  "termDays": 0,
  "amount": "1000.00000000",
  "earned": "0.00000000",
  "startedAt": "2026-10-14T16:14:15.412Z",
  "endsAt": null,
  "redeemedAt": null
}

Kwota od razu schodzi z Twojego salda. Saldo, które jej nie pokrywa, zwraca insufficient_balance, a kwota poniżej minimum produktu below_minimum.

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.