POST /lend

Lend an asset - /lend

Route

POST https://api.pods.finance/v1/lend

Description

This route is used to lend a certain asset to the system.

Request

Body

The request should have the following parameters

Field
Type
Description
Required

amount

number

Amount to lend

Yes

asset

string

Asset to lend by its ticker (ETH, BTC, USDC)

Yes

Example

{
  "amount": 200000,
  "asset": "USDC"
}

The amount and collateral_amount should contians the asset's decimals. (E.g: 1 USDC = 100000. 6 decimals)

Responses

Success (200 OK)

If the request is successful, the API will return a 200 status code with the following response structure.

Example Response

{
    "status": "OK",
}

Last updated