> ## Documentation Index
> Fetch the complete documentation index at: https://docs.data-hub.verolabs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# API dữ liệu thị trường

> Lấy tick giao dịch và nến OHLCV theo mã giao dịch và thời gian

<div style={{ width: '100%', height: 240, marginBottom: 32, borderRadius: 16, overflow: 'hidden', position: 'relative' }}>
  <video style={{ width: '100%', height: '100%', objectFit: 'cover', filter: 'sepia(0.3) saturate(1.5) hue-rotate(-14deg) brightness(0.72) contrast(1.12)' }} autoPlay loop muted playsInline>
    <source src="https://mintcdn.com/vero-fa5575b5/G_sL_RHXpWEXOwUp/images/bg_video.mp4?fit=max&auto=format&n=G_sL_RHXpWEXOwUp&q=85&s=f731a6a676fb99a2368193fbaf3281ee" type="video/mp4" data-path="images/bg_video.mp4" />
  </video>
</div>

<div style={{ width: '100%', height: 4, marginBottom: 24, borderRadius: 2, background: 'rgba(0,0,0,0.08)' }}>
  <div style={{ width: '62.5%', height: '100%', borderRadius: 2, background: 'linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-light) 50%, var(--accent-dark) 100%)' }} />
</div>

API dữ liệu thị trường cung cấp dữ liệu giao dịch và nến cho biểu đồ, phân tích và nghiên cứu.

<CardGroup cols={2}>
  <Card title="Tick giao dịch" icon="chart-line">
    Lấy lịch sử giao dịch theo mã giao dịch và khoảng thời gian.
  </Card>

  <Card title="Nến OHLCV" icon="chart-column">
    Lấy nến OHLCV theo mã giao dịch, độ phân giải và khoảng thời gian.
  </Card>
</CardGroup>

## Endpoints

| Endpoint          | Mục đích                                                      |
| ----------------- | ------------------------------------------------------------- |
| `GET /v1/ticks`   | Tick giao dịch theo mã giao dịch và khoảng thời gian          |
| `GET /v1/candles` | Nến OHLCV theo mã giao dịch, độ phân giải và khoảng thời gian |

## Độ phân giải nến được hỗ trợ

| Nhóm                    | Độ phân giải                  |
| ----------------------- | ----------------------------- |
| Phút                    | `1m`, `5m`, `15m`, `30m`      |
| Giờ                     | `1h`, `2h`, `4h`, `6h`, `12h` |
| Khung thời gian lớn hơn | `1d`, `1w`                    |

## Gọi thử

<CardGroup cols={2}>
  <Card title="Danh sách tick giao dịch" icon="play" href="/vi/apis/market/list-ticks">
    Mở playground để truy vấn lịch sử tick.
  </Card>

  <Card title="Danh sách nến OHLCV" icon="play" href="/vi/apis/market/list-candles">
    Mở playground để truy vấn nến OHLCV.
  </Card>
</CardGroup>
