Skip to main content
Create Flex Investment

Authorizations

X-TXC-APIKEY
string
header
required

The public WhiteBIT API key.

X-TXC-PAYLOAD
string
header
required

Base64-encoded JSON request body.

X-TXC-SIGNATURE
string
header
required

HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).

Body

application/json
plan
string
required

Plan external ID (UUID).

Example:

"8f2e9d3c-1a4b-4c2d-9e5f-6a7b8c9d0e1f"

amount
string
required

Investment amount.

Example:

"1000.500000"

request
string
required

Request signature

Example:

"{{request}}"

nonce
integer
required

Unique request identifier

Example:

1594297865000

withReinvest
boolean
default:false

Enable auto-reinvestment.

Example:

true

Response

Investment created successfully

data
object