Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Crocantefinancial/crocante-pitch-frontend/llms.txt
Use this file to discover all available pages before exploring further.
Create Loan
Request Body
Target collateral ratio for the loan. Must meet the minimum collateral ratio requirements for the loan type. Higher ratios result in lower APR rates based on tier structure.Example:
"1.5" for 150% collateralizationThe loan amount in the size currency (e.g., USDT). Must be within the loan type’s min/max size limits.Example:
"1" for 1 USDTThe loan type identifier specifying the collateral and size currencies.Available types:
ETH_USDT, BTC_USDTResponse
The loan type identifier (e.g.,
ETH_USDT)Unique identifier for this loan operation
User ID who created the loan
Current owner of the loan
Timestamp when the loan was opened (ISO 8601)
Timestamp of the last update (ISO 8601)
Timestamp when the loan was closed, or null if still active
Current operation status:
ACTIVE, COMPLETEDOperation type:
LOANCurrency of the loan amount (e.g.,
USDT)Currency of the collateral (e.g.,
ETH, BTC)Loan status:
ACTIVE, REPAYED, LIQUIDATEDOriginal loan amount in size currency
Current collateral amount in collateral currency
Total amount repaid so far
Current outstanding debt including interest
Accrued interest amount
Current collateral ratio (collateral value / debt)Example:
"1.4999964170901844" represents ~150% collateralizationLiquidation price - the collateral price at which the loan will be liquidated
Current annual percentage rate based on the active tierExample:
"0.135" represents 13.5% APRCurrent tier index (0-based) determining the APR
Minimum collateral required to maintain the loan
APR at loan creation
Collateral ratio at loan creation
Original loan size
Initial collateral amount
Initial debt including origination fee
Origination fee charged at loan creation
Details of the most recent loan event
Timestamp of the event
Event type:
CREATE, ADD_COLLAT, REM_COLLAT, REPAY, LIQUIDATELoan status after this event
APR at the time of the event
Change in collateral amount (delta)
Change in repaid amount (delta)
Amount of collateral liquidated (if applicable)
Collateral price at the time of the event
Fees charged for this event
Change in tier number (delta)
Whether this was a forced liquidation
Whether the loan is subject to forced liquidation
Response Example
Repay Loan
REPAYED and remaining collateral is returned to the user.
Path Parameters
The loan operation ID to repay
Request Body
The amount to repay in the size currency. Can be partial or full repayment.Example:
"1.992138092931196373" to repay 1.99 USDTResponse
Returns the updated loan object with the same structure as the Create Loan response. Therepayed field will be updated, and debt will be reduced accordingly.
Liquidate Loan
Path Parameters
The loan operation ID to liquidate
Request Body
The amount of debt to repay through liquidation (in size currency). The system will liquidate enough collateral at current market price to cover this amount plus liquidation fees.Example:
"10.085159966953139616" to liquidate collateral worth ~10 USDTResponse
Returns the updated loan object. ThelastUpdate.type will be REPAY_COLLAT and will include:
liqCollat: Amount of collateral liquidatedliqCollatValue: Value of liquidated collateral in size currencyprice: Execution pricefee: Liquidation fee charged
Get Loan History
Path Parameters
The loan operation ID to retrieve history for
Response
Array of loan history events in chronological order
Timestamp when the event occurred (ISO 8601)
Event type:
ADD_COLLAT: Collateral was addedREM_COLLAT: Collateral was removedREPAY_SIZE: Loan repayment in size currencyREPAY_COLLAT: Debt repaid via collateral liquidationUPDATE_APR: APR tier changed due to ratio change
Event-specific data fields
Currency involved in the event (for ADD_COLLAT, REM_COLLAT, REPAY_SIZE)
Amount of currency involved
Amount of collateral liquidated (for REPAY_COLLAT)
Value of liquidated collateral in size currency
Amount repaid from liquidation
Execution price for liquidation
Fee charged for the liquidation
New APR value (for UPDATE_APR events)
