# To Bot/Solver

## Token API Documentation

#### API Endpoint

<https://developer.lambo.win>

### Endpoints

#### List Tokens

Get a paginated list of tokens.

**GET** `/token/list`

#### Query Parameters

| Parameter | Type    | Required | Default | Description    |
| --------- | ------- | -------- | ------- | -------------- |
| page      | integer | Yes      | 1       | Page number    |
| size      | integer | Yes      | 10      | Items per page |

#### Response (200)

```json
{
    "list": [
        {
            "address": "string",
            "pair": "string",
            "name": "string",
            "symbol": "string",
            "decimal": "integer",
            "create_block": "integer",
            "create_timestamp": "integer"
        }
    ],
    "total": "integer"
}

```

#### Batch Get Token Prices

Get prices for multiple tokens in a single request.

**POST** `/token/prices`

#### Request Body

```json
{
    "token_ids": ["string"]
}

```

#### Response (200)

```json
{
    "prices": {
        "token_id": "float64"
    }
}

```

### Data Models

#### TokenItemRes

| Field             | Type    | Description                         |
| ----------------- | ------- | ----------------------------------- |
| address           | string  | Token address                       |
| pair              | string  | Trading pair                        |
| name              | string  | Token name                          |
| symbol            | string  | Token symbol                        |
| decimal           | integer | Token decimals                      |
| create\_block     | integer | Block number when token was created |
| create\_timestamp | integer | Timestamp when token was created    |

#### ListTokenRes

| Field | Type            | Description            |
| ----- | --------------- | ---------------------- |
| list  | TokenItemRes\[] | Array of token items   |
| total | integer         | Total number of tokens |

#### BatchGetTokenPriceReq

| Field      | Type      | Description        |
| ---------- | --------- | ------------------ |
| token\_ids | string\[] | Array of token IDs |

#### BatchGetTokenPriceRes

| Field  | Type                  | Description                      |
| ------ | --------------------- | -------------------------------- |
| prices | Map\<string, float64> | Map of token IDs to their prices |


---

# 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://lambo-win.gitbook.io/lambo.win/getting-started/to-bot-solver.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.
