# ตลาดเหรียญ

**API:** Data API

**Endpoint:** `GET /v1/beta/coingecko/coins/markets`

**Tags:** CoinGecko

ตารางตลาดที่จัดอันดับครอบคลุมหลายเหรียญในการเรียกครั้งเดียว: หนึ่งแถวต่อเหรียญ พร้อม `current_price`, `market_cap`, `market_cap_rank`, `total_volume`, `high_24h`, `low_24h`, `price_change_percentage_24h`, `circulating_supply`, `total_supply`, `max_supply`, `ath` และ `atl` พร้อมวันที่ และ `image` แบ่งหน้าด้วย `per_page` และ `page` เรียงด้วย `order` (มูลค่าตลาด volume หรือ id จากน้อยไปมากหรือมากไปน้อย) และจำกัดด้วย `ids` หรือ `category` การส่ง `price_change_percentage` จะเพิ่มฟิลด์ `price_change_percentage_24h_in_currency` ที่สอดคล้อง ใช้สำหรับตารางจัดอันดับและการสำรวจกลุ่ม สำหรับราคาของเหรียญที่รู้จักไม่กี่เหรียญ `get_coingecko_simple_price` เบากว่ามาก; สำหรับเหรียญเดียวแบบเต็มใช้ `get_coingecko_coins_id`

### ข้อมูลอ้างอิงราคา

- การวัดปริมาณการใช้งาน: หน่วยทรัพยากรตามแพ็กเกจ
- ค่าประมาณคำขออ้างอิง: USD 0.008
- ต้นทุนต่อหน่วยพื้นฐาน: USD 0.0
- หน่วยทรัพยากร: `provider_credit`
- ต้นทุนพื้นฐานไม่ได้กำหนดราคาสุดท้ายของลูกค้า รวมถึงกรณีที่เป็นศูนย์

เป็นข้อมูลเมตาอ้างอิงเท่านั้น ไม่ใช่ใบเสนอราคาสำหรับบัญชี ไม่ใช่ราคาที่รับประกัน และไม่ใช่เพดานการใช้จ่าย เครดิตของทรัพยากรไม่ใช่เครดิต Felo ยอดเรียกเก็บขั้นสุดท้ายเป็นไปตามบันทึกการเรียกเก็บเงินของ Felo

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `category` | query | no | string | กรองตามหมวดหมู่ของเหรียญ *อ้างอิง [`/coins/categories/list`](/reference/coins-categories-list) |
| `ids` | query | no | string, default: "bitcoin" | ID ของเหรียญ คั่นด้วยจุลภาคหากค้นมากกว่า 1 เหรียญ *อ้างอิง [`/coins/list`](/reference/coins-list) |
| `include_rehypothecated` | query | no | boolean | รวมโทเคนที่นำไปใช้ค้ำประกันซ้ำในผลลัพธ์ เมื่อเป็น true จะคืนฟิลด์ `market_cap_rank_with_rehypothecated` ค่าเริ่มต้น: false |
| `include_tokens` | query | no | string, enum: "top", "all" | สำหรับการค้นหาด้วย `symbols` ให้ระบุ `all` เพื่อรวมโทเคนที่ตรงกันทั้งหมด ค่าเริ่มต้น `top` จะคืนโทเคนที่อันดับสูงสุดตามมูลค่าตลาดหรือปริมาณซื้อขาย |
| `locale` | query | no | string, enum: "ar", "bg", "cs", "da", "de", "el", … | ภาษาพื้นหลัง ค่าเริ่มต้น: en |
| `names` | query | no | string, default: "Bitcoin" | ชื่อของเหรียญ คั่นด้วยจุลภาคหากค้นมากกว่า 1 เหรียญ |
| `order` | query | no | string, enum: "market_cap_asc", "market_cap_desc", "volume_asc", "volume_desc", "id_asc", "id_desc" | เรียงผลลัพธ์ตามฟิลด์ ค่าเริ่มต้น: market_cap_desc |
| `page` | query | no | integer | แบ่งหน้าผลลัพธ์ ค่าเริ่มต้น: 1 |
| `per_page` | query | no | integer | ผลลัพธ์ทั้งหมดต่อหน้า ค่าเริ่มต้น: 100 ค่าที่ใช้ได้: 1...250 |
| `precision` | query | no | string, enum: "full", "0", "1", "2", "3", "4", … | จำนวนตำแหน่งทศนิยมของมูลค่าราคาสกุลเงิน |
| `price_change_percentage` | query | no | string | รวมช่วงเวลาของเปอร์เซ็นต์การเปลี่ยนแปลงราคา คั่นด้วยจุลภาคหากค้นมากกว่า 1 ช่วงเวลา ค่าที่ใช้ได้: `1h`, `24h`, `7d`, `14d`, `30d`, `200d`, `1y` |
| `sparkline` | query | no | boolean | รวมข้อมูลสปาร์กไลน์ 7 วัน ค่าเริ่มต้น: false |
| `symbols` | query | no | string, default: "btc" | สัญลักษณ์ของเหรียญ คั่นด้วยจุลภาคหากค้นมากกว่า 1 เหรียญ |
| `vs_currency` | query | yes | string, default: "usd" | สกุลเงินเป้าหมายของเหรียญและข้อมูลตลาด *อ้างอิง [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies) |

## Responses

### 200 — รายการเหรียญพร้อมข้อมูลตลาด

Headers:
- `X-Request-Id` (string) — ตัวระบุคำขอที่ต้องระบุเมื่อติดต่อฝ่ายสนับสนุนของ Felo

**application/json**

Schema: `Response860C3Ae68Ea5_CoinsMarkets` (`#/components/schemas/Response860C3Ae68Ea5_CoinsMarkets`)

Example:

```json
[
  {
    "id": "bitcoin",
    "symbol": "btc",
    "name": "Bitcoin",
    "image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400",
    "current_price": 77671,
    "market_cap": 1555886872303,
    "market_cap_rank": 1,
    "fully_diluted_valuation": 1555914058873,
    "total_volume": 33235034316,
    "high_24h": 78419,
    "low_24h": 76696,
    "price_change_24h": -747.3360347281705,
    "price_change_percentage_24h": -0.95302,
    "market_cap_change_24h": -15184401491.513184,
    "market_cap_change_percentage_24h": -0.9665,
    "circulating_supply": 20030493,
    "total_supply": 20030843,
    "max_supply": 21000000,
    "ath": 126080,
    "ath_change_percentage": -38.39571,
    "ath_date": "2025-10-06T18:57:42.558Z",
    "atl": 67.81,
    "atl_change_percentage": 114443.23093,
    "atl_date": "2013-07-06T00:00:00.000Z",
    "roi": null,
    "last_updated": "2026-05-18T12:49:21.599Z",
    "market_cap_rank_with_rehypothecated": 1,
    "sparkline_in_7d": {
      "price": [
        81045.84776489827,
        81001.73089268175,
        80898.20817826076
      ]
    },
    "price_change_percentage_1h_in_currency": 0.5823392426906319,
    "price_change_percentage_24h_in_currency": -0.9530164743774191,
    "price_change_percentage_7d_in_currency": -4.042267423689584,
    "price_change_percentage_14d_in_currency": -1.5720857443461431,
    "price_change_percentage_30d_in_currency": 1.9453890367549207,
    "price_change_percentage_200d_in_currency": -29.452371850925864,
    "price_change_percentage_1y_in_currency": -25.214612207475373
  }
]
```

### 400 — ไม่สามารถประมวลผลคำขอได้ ตรวจสอบพารามิเตอร์ของคำขอ

### 401 — จำเป็นต้องใช้คีย์ API ของ Felo ที่ถูกต้อง

### 402 — ไม่สามารถดำเนินการตามคำขอได้ เนื่องจากไม่เป็นไปตามข้อกำหนดด้านการเรียกเก็บเงิน

### 403 — บัญชีไม่ได้รับอนุญาตให้ดำเนินการนี้

### 429 — ถึงขีดจำกัดคำขอหรือการใช้จ่ายแล้ว

### 502 — บริการไม่สามารถดำเนินการตามคำขอให้เสร็จสิ้นได้

### 503 — API หรือบริการเรียกเก็บเงินไม่พร้อมใช้งานชั่วคราว

### 504 — บริการหมดเวลาระหว่างประมวลผลคำขอ

### default — การตอบกลับข้อผิดพลาด; การตอบกลับที่ส่งผ่านจากต้นทางอาจใช้รูปแบบของผู้ให้บริการ

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response860C3Ae68Ea5_CoinsMarkets

`#/components/schemas/Response860C3Ae68Ea5_CoinsMarkets`

```json
{
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "id",
      "symbol",
      "name",
      "image",
      "current_price",
      "market_cap",
      "market_cap_rank",
      "fully_diluted_valuation",
      "total_volume",
      "high_24h",
      "low_24h",
      "price_change_24h",
      "price_change_percentage_24h",
      "market_cap_change_24h",
      "market_cap_change_percentage_24h",
      "circulating_supply",
      "total_supply",
      "max_supply",
      "ath",
      "ath_change_percentage",
      "ath_date",
      "atl",
      "atl_change_percentage",
      "atl_date",
      "roi",
      "last_updated"
    ],
    "properties": {
      "id": {
        "type": "string",
        "description": "ID เหรียญ"
      },
      "symbol": {
        "type": "string",
        "description": "สัญลักษณ์เหรียญ"
      },
      "name": {
        "type": "string",
        "description": "ชื่อเหรียญ"
      },
      "image": {
        "type": "string",
        "description": "URL ภาพของเหรียญ"
      },
      "current_price": {
        "type": [
          "number",
          "null"
        ],
        "description": "ราคาปัจจุบันในสกุลเงินเป้าหมาย"
      },
      "market_cap": {
        "type": [
          "number",
          "null"
        ],
        "description": "มูลค่าตามราคาตลาดในสกุลเงินเป้าหมาย"
      },
      "market_cap_rank": {
        "type": [
          "integer",
          "null"
        ],
        "description": "อันดับมูลค่าตลาด"
      },
      "fully_diluted_valuation": {
        "type": [
          "number",
          "null"
        ],
        "description": "มูลค่าตลาดแบบเจือจางเต็มจำนวนในสกุลเงินเป้าหมาย"
      },
      "total_volume": {
        "type": [
          "number",
          "null"
        ],
        "description": "ปริมาณซื้อขายรวมในสกุลเงินเป้าหมาย"
      },
      "high_24h": {
        "type": [
          "number",
          "null"
        ],
        "description": "ราคาสูงสุดใน 24 ชั่วโมงในสกุลเงินเป้าหมาย"
      },
      "low_24h": {
        "type": [
          "number",
          "null"
        ],
        "description": "ราคาต่ำสุดใน 24 ชั่วโมงในสกุลเงินเป้าหมาย"
      },
      "price_change_24h": {
        "type": [
          "number",
          "null"
        ],
        "description": "การเปลี่ยนแปลงราคาใน 24 ชั่วโมงในสกุลเงินเป้าหมาย"
      },
      "price_change_percentage_24h": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 24 ชั่วโมง"
      },
      "market_cap_change_24h": {
        "type": [
          "number",
          "null"
        ],
        "description": "การเปลี่ยนแปลงมูลค่าตามราคาตลาดใน 24 ชั่วโมงในสกุลเงินเป้าหมาย"
      },
      "market_cap_change_percentage_24h": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงมูลค่าตามราคาตลาดใน 24 ชั่วโมง"
      },
      "circulating_supply": {
        "type": [
          "number",
          "null"
        ],
        "description": "อุปทานหมุนเวียน"
      },
      "total_supply": {
        "type": [
          "number",
          "null"
        ],
        "description": "อุปทานรวม"
      },
      "max_supply": {
        "type": [
          "number",
          "null"
        ],
        "description": "อุปทานสูงสุด"
      },
      "ath": {
        "type": [
          "number",
          "null"
        ],
        "description": "ราคาสูงสุดตลอดกาลในสกุลเงินเป้าหมาย"
      },
      "ath_change_percentage": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงของจุดสูงสุดตลอดกาล"
      },
      "ath_date": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "description": "วันที่จุดสูงสุดตลอดกาล"
      },
      "atl": {
        "type": [
          "number",
          "null"
        ],
        "description": "ราคาต่ำสุดตลอดกาลในสกุลเงินเป้าหมาย"
      },
      "atl_change_percentage": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงของจุดต่ำสุดตลอดกาล"
      },
      "atl_date": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "description": "วันที่จุดต่ำสุดตลอดกาล"
      },
      "roi": {
        "type": [
          "object",
          "null"
        ],
        "description": "ข้อมูลผลตอบแทนจากการลงทุน",
        "properties": {
          "times": {
            "type": "number",
            "description": "ตัวคูณ ROI"
          },
          "currency": {
            "type": "string",
            "description": "สกุลเงินของ ROI"
          },
          "percentage": {
            "type": "number",
            "description": "เปอร์เซ็นต์ ROI"
          }
        }
      },
      "last_updated": {
        "type": "string",
        "format": "date-time",
        "description": "เวลาที่อัปเดตล่าสุด"
      },
      "market_cap_rank_with_rehypothecated": {
        "type": [
          "integer",
          "null"
        ],
        "description": "อันดับมูลค่าตลาดรวมโทเคนที่นำกลับมาใช้ซ้ำ (rehypothecated)"
      },
      "sparkline_in_7d": {
        "type": "object",
        "description": "ข้อมูลราคาแบบสปาร์กไลน์ย้อนหลัง 7 วัน",
        "properties": {
          "price": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "อาร์เรย์ของมูลค่าราคา"
          }
        }
      },
      "price_change_percentage_1h_in_currency": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 1 ชั่วโมงในสกุลเงินเป้าหมาย"
      },
      "price_change_percentage_24h_in_currency": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 24 ชั่วโมงในสกุลเงินเป้าหมาย"
      },
      "price_change_percentage_7d_in_currency": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 7 วันในสกุลเงินเป้าหมาย"
      },
      "price_change_percentage_14d_in_currency": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 14 วันในสกุลเงินเป้าหมาย"
      },
      "price_change_percentage_30d_in_currency": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 30 วันในสกุลเงินเป้าหมาย"
      },
      "price_change_percentage_200d_in_currency": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 200 วันในสกุลเงินเป้าหมาย"
      },
      "price_change_percentage_1y_in_currency": {
        "type": [
          "number",
          "null"
        ],
        "description": "เปอร์เซ็นต์การเปลี่ยนแปลงราคาใน 1 ปีในสกุลเงินเป้าหมาย"
      }
    }
  }
}
```
