---
title: "Get Flex Investment History"
method: POST
path: "/api/v4/main-account/smart-flex/investments/history"
tags: ["Crypto Lending - Flex"]
---

# Get Flex Investment History

`POST /api/v4/main-account/smart-flex/investments/history`

## Request

- Base URL: `https://whitebit.com`
- URL: `https://whitebit.com/api/v4/main-account/smart-flex/investments/history`
- Auth: API key in header `X-TXC-APIKEY` and API key in header `X-TXC-PAYLOAD` and API key in header `X-TXC-SIGNATURE`
- TypeScript: <https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4/docs/api/v4/main-account/smart-flex/investments/history/post.ts> (a function with typed inputs; its response is checked against the schema)

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>

## Request body

- object
  - `limit` integer: Pagination limit.
  - `offset` integer: Pagination offset.
  - `plan` string: Filter by plan ID (UUID).
  - `investment` string: Filter by investment ID.
  - `transaction` string: Filter by transaction ID.
  - `dateFrom` integer: Filter from date (timestamp).
  - `dateTo` integer: Filter to date (timestamp).
  - `actionTypes` integer[]: Array of operation type IDs. See table below.
  - `request` string, required: Request signature
  - `nonce` integer, required: Unique request identifier

## Response `200`

Successful response

- object
  - `data` FlexInvestmentHistory[]
    - `createdAt` integer: Transaction creation timestamp
    - `planId` string: Flex plan identifier
    - `investmentId` string: Flex investment identifier
    - `currency` string: Transaction currency
    - `amount` string: Transaction amount
    - `transaction_id` string: Transaction identifier
    - `actionType` integer: Action type: 1-INVEST, 2-REINVEST, 3-WITHDRAW_FROM_INVESTMENT, 4-DAILY_EARNING, 5-CLOSE_INVESTMENT, 6-OPEN_INVESTMENT
  - `limit` integer
  - `offset` integer

## Other responses

- `400`: Validation failed

---

[API](https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4.md) - [All operations](https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4/revisions/76c9def9942f?raw)
