← cointh.com

Public API · v1

Bitcoin Indicators API

ดึงค่า indicator ชุดเดียวกับที่ dashboard ของ cointh.com ใช้ — ค่าล่าสุดและย้อนหลังรายวัน เป็น JSON หรือ CSV ฟรี ไม่ต้องสมัคร ไม่ต้องใช้ key

ฟรี · ไม่ใช้ keyเรียก GET ได้เลย
Cache 1 ชั่วโมงข้อมูลอัปเดตไม่เกินชั่วโมงละครั้ง
60 ครั้ง / นาทีต่อ IP
CORS เปิดเรียกจาก browser ได้

เริ่มใช้

Base URL: https://cointh.com/api/v1

curl https://cointh.com/api/v1/indicators/mvrv

ผลลัพธ์ (ตัวเลขในหน้านี้เป็นตัวอย่าง):

{
  "ok": true,
  "id": "mvrv",
  "name": "MVRV",
  "asOf": "2026-11-19",
  "updatedAt": "2026-11-22T15:00:47.066Z",
  "data": {
    "price": 60789,
    "mvrv": 1.1383,
    "zScore": 0.239,
    "realizedPrice": 53404,
    "marketCap": 1222737312171,
    "realizedCap": 1074182464692,
    "supply": 20114438.6
  },
  "cache": { "ttlSeconds": 3600, "generatedAt": "2026-11-22T15:02:10.000Z" }
}

ลองเรียกจริง

กด "ส่งคำขอ" เพื่อดูผลลัพธ์

Endpoints

Endpointได้อะไร
GET/api/v1รายการ endpoint และ indicator ทั้งหมด (machine-readable)
GET/api/v1/indicatorsค่าล่าสุดของทุก indicator ในคำขอเดียว
GET/api/v1/indicators/{id}ค่าล่าสุดของ indicator เดียว พร้อมเส้นอ้างอิง
GET/api/v1/indicators/{id}/historyข้อมูลย้อนหลัง (JSON หรือ CSV)
GET/api/v1/liquidation-mapLiquidation heatmap (โมเดลประมาณการ)

ทุกคำตอบ JSON มี ok (true/false) · asOf คือวันที่ของข้อมูลจุดล่าสุด · updatedAt คือเวลาที่เรา build ข้อมูลชุดนั้น · เวลาเป็น UTC ทั้งหมด · ราคาเป็น USD

รายการ indicator

ใช้ค่าในคอลัมน์ id แทน {id} ใน URL — คอลัมน์ "ย้อนหลัง" คือ field ที่ได้จาก /history (มี price ติดมาด้วยทุกตัว)

idIndicatorค่าล่าสุด (data)ย้อนหลัง
mvrvMVRVmvrv zScore realizedPrice marketCap realizedCap supplymvrv zScore realizedPrice
nuplNUPLnuplnupl
cvddCVDDcvdd ratio refscvdd ratio
supply-in-lossSupply in LosssupplyInLossBtc pct supplysupplyInLossBtc pct
lth-realized-priceRealized Price - LTHlthRealizedPrice lthMvrv lthSupplyInLossBtc change30dBtc change90dBtclthRealizedPrice lthSupplyInLossBtc
production-costProduction Costcost costLower costUpper margin hashrate difficulty electricityUsdPerKwhcost costLower costUpper margin hashrate
puellPuell Multiplepuell refspuell
mayerMayer Multiplemayer ma200 refsmayer
pi-cyclePi Cycle Top / Bottomma111 ma350x2 topSignal ema150 sma471x0745 bottomSignalma111 ma350x2 ema150 sma471x0745
2y-ma2Y MA Multiplierma2y ma2yx5 multiplierma2y ma2yx5
4y-ma4Y MA Multiplemultiple ma4y refsmultiple
ahr999AHR999ahr999 refsahr999
rsiRSIrsi14 rsi22 rsiWeekly14 rsiMonthly14rsi14 rsi22
riskRisk Index & DXYrisk dxyrisk dxy
open-interestOpen Interestprimary aggregate funding longShort takeroiBtc oiUsd
peak-signalsPeak Signalsverdict hitCount total avgProgress signals[]—
bottom-signalsBottom Signalsverdict hitCount total avgProgress signals[]—

ข้อมูลย้อนหลัง

GET/api/v1/indicators/{id}/history
Parameterค่าความหมาย
fromYYYY-MM-DDวันแรกที่ต้องการ (รวมวันนั้น)
toYYYY-MM-DDวันสุดท้ายที่ต้องการ (รวมวันนั้น)
limit1–10000เอาเฉพาะ N จุดล่าสุดของช่วงที่เลือก
formatjson | csvค่าเริ่มต้น json
range24H | 7D | 30D | MAXเฉพาะ open-interest — ค่าเริ่มต้น MAX (รายวัน)
srcbybit | aggเฉพาะ open-interest — agg = Bybit + OKX + Gate

ไม่ใส่ parameter เลย = ได้ทั้ง series (ส่วนใหญ่รายวันย้อนไปถึงปี 2010–2011) รูปแบบ JSON เป็นแบบ column — dates[i] คู่กับ data.<field>[i] ค่าที่ยังคำนวณไม่ได้เป็น null

curl "https://cointh.com/api/v1/indicators/mayer/history?from=2026-11-17&to=2026-11-19"
{
  "ok": true,
  "id": "mayer",
  "count": 3,
  "from": "2026-11-17",
  "to": "2026-11-19",
  "fields": ["price", "mayer"],
  "dates": ["2026-11-17", "2026-11-18", "2026-11-19"],
  "data": {
    "price": [64908, 62897, 60865],
    "mayer": [0.8917, 0.865, 0.8381]
  }
}

แบบ CSV (แถวแรกเป็นหัวคอลัมน์):

date,price,mayer
2026-11-17,64908,0.8917
2026-11-18,62897,0.865
2026-11-19,60865,0.8381

Liquidation map

GET/api/v1/liquidation-map?range=7D|30D|90D|1Y

ค่าเริ่มต้น range=90D · ได้ตาราง heatmap ขนาด grid.rows × grid.cols (แกนราคา × แกนเวลา) เข้ารหัสเป็น base64 ใน heat

เป็นโมเดลประมาณการว่า position ที่ใช้ leverage น่าจะโดน liquidate แถวไหน คำนวณจากราคาและ volume — ไม่ใช่ข้อมูล liquidation จริงจาก exchange

Error & limit

เมื่อผิดพลาดจะได้ HTTP status ตามตาราง และ body รูปแบบเดียวกันเสมอ:

{ "ok": false, "error": { "code": "unknown_indicator", "message": "..." } }
Statuscodeสาเหตุ
400invalid_parameterparameter ผิดรูปแบบ
404unknown_indicator · no_history · not_foundไม่มี id / indicator นั้นไม่มีย้อนหลัง / ไม่มี endpoint
429rate_limitedเกิน 60 ครั้ง/นาที — รอตาม header Retry-After
503upstream_unavailableแหล่งข้อมูลต้นทางล่มชั่วคราว ลองใหม่ภายหลัง

ตัวอย่างโค้ด

JavaScript

const res = await fetch("https://cointh.com/api/v1/indicators");
const { indicators } = await res.json();
console.log(indicators.mvrv.data.mvrv, indicators.mayer.data.mayer);

Python

import requests

r = requests.get(
    "https://cointh.com/api/v1/indicators/mvrv/history",
    params={"from": "2024-01-01"},
    timeout=20,
)
h = r.json()
for date, mvrv in zip(h["dates"], h["data"]["mvrv"]):
    print(date, mvrv)

pandas

import pandas as pd

df = pd.read_csv(
    "https://cointh.com/api/v1/indicators/puell/history?format=csv",
    parse_dates=["date"],
)

Google Sheets

=IMPORTDATA("https://cointh.com/api/v1/indicators/nupl/history?limit=365&format=csv")

เงื่อนไขการใช้


ดู dashboard ทั้งหมดได้ที่ หน้าแรก · เบื้องหลังระบบ /tech