Deposits & withdrawals
9. Authentication
Authorization: Bearer dfi_your_api_key_here10. Deposit Flow
Step 1 — Get the unsigned deposit transaction
GET /v1/positions/open/txParameter
Type
Required
Description
{
"success": true,
"data": {
"unsignedTxs": ["<base64-encoded transaction>"]
}
}Step 2 — Sign, submit, and confirm
Parameter
Type
Required
Description
11. Withdrawal Flow
Step 1 — Get the unsigned withdrawal transaction
Parameter
Type
Required
Description
Step 2 — Sign, submit, and confirm
Parameter
Type
Required
Description
12. Cancelling Pending Operations
Check refund eligibility
Parameter
Type
Required
Get the unsigned refund transaction
Parameter
Type
Required
Description
Sign, submit, and confirm the refund
Parameter
Type
Required
Description
13. Reading Positions and History
User positions
Portfolio summary
Transaction history
Parameter
Type
Required
Description
14. Example TypeScript Implementation
Last updated
