v1

latestOpenAPI 3.0.32026-07-2613529376.3 KB
Crypto Lending - Flex

Get Flex Investment History

Retrieve complete investment operations history with advanced filtering.

Available Action Types:

  • 1: INVEST - Investment creation
  • 2: REINVEST - Automatic reinvestment
  • 3: WITHDRAW_FROM_INVESTMENT - Partial withdrawal
  • 4: DAILY_EARNING - Daily earnings
  • 5: CLOSE_INVESTMENT - Investment closure
  • 6: OPEN_INVESTMENT - Investment opening
<Warning> Rate limit: 1000 requests/10 sec. </Warning> <Note> The API does not cache the response. </Note>
post/api/v4/main-account/smart-flex/investments/history

Request body

limitinteger

Pagination limit.

offsetinteger

Pagination offset.

planstring

Filter by plan ID (UUID).

investmentstring

Filter by investment ID.

transactionstring

Filter by transaction ID.

dateFrominteger

Filter from date (timestamp).

dateTointeger

Filter to date (timestamp).

actionTypesinteger[]

Array of operation type IDs. See table below.

requeststring required

Request signature

nonceinteger required

Unique request identifier

Example request

{
  "limit": 50,
  "plan": "8f2e9d3c-1a4b-4c2d-9e5f-6a7b8c9d0e1f",
  "investment": "inv_7e2d9c3b-1a4b-4c2d-9e5f-6a7b8c9d0e1f",
  "transaction": "tx_9f3e0d4c-2b5c-4d3e-8f6g-7a8b9c0d1e2f",
  "dateFrom": 1640995200,
  "dateTo": 1641081600,
  "actionTypes": [
    1,
    2,
    4
  ],
  "request": "{{request}}",
  "nonce": 1594297865000
}

Response

Successful response

limitinteger
offsetinteger

Example response

{
  "data": [
    {
      "createdAt": 1588345560,
      "planId": "12",
      "investmentId": "2765",
      "currency": "USDT",
      "amount": "100",
      "transaction_id": "tx_123456",
      "actionType": 1
    }
  ]
}