Skip to main content
The four endpoints below cover the full Flex lifecycle — fetch plans, invest, check status, withdraw — operating against Main balance. Access requires B2B partner permissions plus a key with the Trade permission.

Prerequisites

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 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.
Required fields: plan (UUID from Step 1), amount (string). Optional: withReinvest (boolean, enables auto-reinvestment).Expected response:
3

Check investment status

Verify the investment was created and check the current investment status.
Expected response:
4

Withdraw from investment

Withdraw funds from the Flex investment back to Main balance.
Required fields: plan (UUID), amount (string). Partial withdrawals are supported. To withdraw everything, use the full invested amount.Expected response:
After completing Step 4, the withdrawn amount returns to the Main balance. Verify by checking the Main balance endpoint.

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.
For Go and PHP examples, see SDKs.