Prerequisites
- A WhiteBIT account with completed KYC (register)
- An API key with Trade permission (create key)
- Funds in Main balance (the lending API operates on Main balance, not Trade balance)
- HMAC-SHA512 signing configured (authentication guide)
curlandjqinstalled (for command-line examples)
The quickstart uses Flex plan endpoints, which are available to all authenticated users.
Fixed plan endpoints require B2B partner permissions — see the overview for details.
Fetch available Flex plans
Retrieve the list of available Flex plans to find a plan ID for investment.For Go and PHP examples, see SDKs.Expected response:Save the
- cURL
- Python
id value from a plan to use in the next step.Create a Flex investment
Invest into the selected Flex plan using the plan ID from Step 1.Required fields:
- cURL
- Python
plan (UUID from Step 1), amount (string). Optional: withReinvest (boolean, enables auto-reinvestment).Expected response:Check investment status
Verify the investment was created and check the current investment status.Expected response:
- cURL
- Python
What’s Next
Crypto Lending Overview
Plan types, capabilities, and integration patterns.
API Reference
Full endpoint documentation for all 13 lending endpoints.