# Lending & Borrowing

## API Endpoints Documentation

### GET Requests

#### Enter Market Status

**Endpoint:** `/enter-market-status`\
Retrieves the current market status and relevant details.

#### Get Asset Info

**Endpoint:** `/get-asset-info`\
Provides detailed information about a specific asset within the platform.

#### Get Claimed Rewards

**Endpoint:** `/get-claimed-rewards`\
Returns the list of rewards that have already been claimed by the user.

#### Get Governor Data

**Endpoint:** `/get-governor-data`\
Gathers data regarding the current governor settings and configurations.

#### Get Max Amounts

**Endpoint:** `/get-max-amounts`\
Fetches the maximum permissible values for relevant financial parameters.

#### Get Pool

**Endpoint:** `/get-pool`\
Obtains specific pool data, useful for insight into liquidity status.

#### Get Pools

**Endpoint:** `/get-pools`\
Returns a list of all available pools on the platform along with their current status.

#### Get User Account Data

**Endpoint:** `/get-user-account-data`\
Provides detailed account information specific to the user.

#### Get User Positions

**Endpoint:** `/get-user-positions`\
Retrieves current user positions across various investments and pools.

### POST Requests

#### Allow

**Endpoint:** `/allow`\
Enables authorization for specified actions or transactions on the platform.

#### Borrow

**Endpoint:** `/borrow`\
Permits the user to initiate a borrowing request under predefined terms.

#### Bundle Actions

**Endpoint:** `/bundle-actions`\
Allows users to execute multiple actions in a single, bundled transaction.

#### Claim Rewards

**Endpoint:** `/claim-rewards`\
Facilitates the claiming of eligible rewards accrued through platform activities.

#### Deposit

**Endpoint:** `/deposit`\
Initiates a deposit transaction for specified assets into the user account.

#### Enter Market

**Endpoint:** `/enter-market`\
Allows the user to opt into a specific market, enabling trading activities.

#### Exit Isolation Mode

**Endpoint:** `/exit-isolation-mode`\
Removes user account from isolation, thereby allowing normal operations.

#### Exit Market

**Endpoint:** `/exit-market`\
Allows users to withdraw from a market, ceasing any further trading activities.

#### Migrate

**Endpoint:** `/migrate`\
Facilitates the migration of assets or account settings to a new protocol or framework.

#### Repay

**Endpoint:** `/repay`\
Enables users to repay borrowed amounts back to the platform or protocol.

#### Set User E-Mode

**Endpoint:** `/set-user-e-mode`\
Configures the user-specific e-mode settings, altering experience or capabilities.

#### Transfer

**Endpoint:** `/transfer`\
Allows for secure asset transfer between users or accounts within the platform.

#### Withdraw

**Endpoint:** `/withdraw`\
Initiates the withdrawal of assets from the platform, returning them to the user.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dexlens.io/sdk-and-api/api/lending-and-borrowing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
