Skip to content
Sign up

Earn

Redeem from Earn

Take a position's money back, with everything it earned that hasn't been paid yet.

POST/api/v1/earn/redeemGet a key
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"
}

A fixed term comes back by itself on its end date, and answers locked until then.

Bodyapplication/json

Response

  • positionIdinteger

    Our id for the position.

  • productIdstring

    The product it is in.

  • currencystring

    What it holds.

  • kindstring

    cash, flexible, fixed or staking.

  • aprstring

    The yearly rate: 0.0420 is 4.2 % a year.

  • termDaysinteger

    How long the money is held, in days; 0 for products that stay available.

  • amountstring

    The money put in.

  • earnedstring

    What it has earned so far, or paid out in all once redeemed.

  • startedAtstring

    When the money went in.

  • endsAtstring | null

    When a fixed term ends; null for the rest.

  • redeemedAtstring | null

    When it came back; null while it earns.