# กราฟย้อนหลังของเหรียญตามสัญญา

**API:** Data API

**Endpoint:** `GET /v1/beta/coingecko/coins/{id}/contract/{contract_address}/market_chart`

**Tags:** CoinGecko

อนุกรมย้อนหลังของโทเคนที่ระบุด้วยที่อยู่สัญญา ในช่วงย้อนหลังที่กำหนดด้วย `days` `id` คือแพลตฟอร์มสินทรัพย์ `contract_address` คือโทเคน คืนค่า `prices`, `market_caps` และ `total_volumes` เป็นคู่ของ timestamp กับค่า โดย timestamp อยู่ในหน่วยมิลลิวินาที — โครงสร้างเดียวกับ `get_coingecko_coins_id_market_chart` ใช้เมื่อคุณมีที่อยู่แทน CoinGecko id สำหรับช่วงเริ่มต้นและสิ้นสุดที่ระบุชัดเจนใช้ `get_coingecko_token_market_chart_range`

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

- การวัดปริมาณการใช้งาน: หน่วยทรัพยากรตามแพ็กเกจ
- ค่าประมาณคำขออ้างอิง: 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 |
| --- | --- | --- | --- | --- |
| `contract_address` | path | yes | string, default: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | ที่อยู่สัญญาของโทเคน |
| `id` | path | yes | string, default: "ethereum" | ID แพลตฟอร์มสินทรัพย์ *อ้างอิง [`/asset_platforms`](/reference/asset-platforms-list) |
| `days` | query | yes | string, default: "1" | ข้อมูลย้อนหลังถึงจำนวนวันที่กำหนด ใช้จำนวนเต็มใดก็ได้หรือ `max` สำหรับจำนวนวัน |
| `interval` | query | no | string, enum: "1m", "5m", "hourly", "daily" | ช่วงข้อมูล เว้นว่างเพื่อให้กำหนดความละเอียดอัตโนมัติ |
| `precision` | query | no | string, enum: "full", "0", "1", "2", "3", "4", … | จำนวนตำแหน่งทศนิยมของมูลค่าราคาสกุลเงิน |
| `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_CoinsMarketChart` (`#/components/schemas/Response860C3Ae68Ea5_CoinsMarketChart`)

Example:

```json
{
  "prices": [
    [
      1779619498604,
      0.9997624087636037
    ],
    [
      1779619877081,
      0.9997817655336941
    ]
  ],
  "market_caps": [
    [
      1779619498604,
      76419636272.78033
    ],
    [
      1779619877081,
      76424065983.84229
    ]
  ],
  "total_volumes": [
    [
      1779619498604,
      9374311493.936354
    ],
    [
      1779619877081,
      9390008044.485624
    ]
  ]
}
```

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response860C3Ae68Ea5_CoinsMarketChart

`#/components/schemas/Response860C3Ae68Ea5_CoinsMarketChart`

```json
{
  "type": "object",
  "required": [
    "prices",
    "market_caps",
    "total_volumes"
  ],
  "properties": {
    "prices": {
      "type": "array",
      "description": "จุดข้อมูลราคาในรูปแบบคู่ [timestamp, price]",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "market_caps": {
      "type": "array",
      "description": "จุดข้อมูลมูลค่าตามราคาตลาดในรูปแบบคู่ [timestamp, market_cap]",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "total_volumes": {
      "type": "array",
      "description": "จุดข้อมูลปริมาณรวมในรูปแบบคู่ [timestamp, volume]",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    }
  }
}
```
