loan_create
Create crypto-backed loans using cryptocurrency as collateral to receive stablecoins or fiat. Choose fixed collateral or fixed loan amounts for automatic calculation.
Instructions
Create a new loan by providing cryptocurrency as guarantee (collateral) to receive loan currency (can be any supported currency like USDC, EURC, or fiat). Specify amount_type to determine calculation mode: 'fixed_collateral' (guarantee amount is fixed, loan amount is calculated) or 'fixed_loan' (loan amount is fixed, guarantee amount is calculated). This avoids mathematical errors where the model tries to guess the exact LTV manually. Returns loan order details with status. [PRIVATE] First call without confirm=true returns a preview; set confirm=true only after the user agrees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt | No | Optional session token for authentication. API keys are recommended for most use cases. | |
| confirm | No | Must be true to execute. Ask the user first, then call again with confirm=true. Prevents accidental one-shot mutations by the LLM. | |
| amount_type | Yes | Calculation mode: 'fixed_collateral' means guarantee amount is fixed and loan amount will be calculated; 'fixed_loan' means loan amount is fixed and guarantee amount will be calculated | |
| loan_amount | No | Loan amount (required when amount_type is 'fixed_loan') | |
| loan_symbol | Yes | Loan currency symbol (e.g., USDC, EURC, EUR). Can be any supported currency. | |
| user_symbol | No | User's fiat currency symbol for conversion (e.g., EUR, USD). Optional, defaults to EUR. Used internally for calculations. | EUR |
| idempotency_key | No | Stable key for this logical action (UUID recommended). Reuse the same value when retrying after a timeout so Bit2Me does not execute twice. Auto-generated if omitted. | |
| guarantee_amount | No | Guarantee amount (required when amount_type is 'fixed_collateral') | |
| guarantee_symbol | Yes | Guarantee cryptocurrency symbol (e.g., BTC) |