Prerequisites
- A WhiteBIT account with completed KYC (register)
- An API key with Trade permission (create key)
- B2B partner access to the lending endpoints (institutional services form)
- 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)
Both Flex and Fixed plan endpoints require B2B partner permissions. Request access via the
institutional services form. See the overview for details.
1
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.2
Create a Flex investment
Invest into the selected Flex plan using the plan ID from Step 1. Sign the request as in Step 1
(
make_request builds the payload and signature); for language clients, see SDKs.Endpoint: POST /api/v4/main-account/smart-flex/investments/investExpected response:
3
Check investment status
Verify the investment was created and check its status. Sign the request as in Step 1.Endpoint:
POST /api/v4/main-account/smart-flex/investments (no additional fields)Expected response:4
Withdraw from investment
Withdraw funds from the Flex investment back to Main balance. Sign the request as in Step 1.Endpoint:
POST /api/v4/main-account/smart-flex/investments/withdrawExpected response:
What’s Next
Crypto Lending Overview
Fixed vs Flex plan mechanics, B2B partner permissions for lending endpoints, ~90 supported assets, and auto-invest behavior.
API Reference
Full endpoint documentation for all 13 lending endpoints.