Bảng giá thời gian thực
Code
Xem tài liệu →<script lang="ts">
import { Grid, type GridApi } from 'bo-grid'
import { createTickStream } from 'bo-grid/realtime'
let rows = $state.raw(quotes) // one plain object per symbol
let api: GridApi
// Ticks coalesce to one patch a frame; only the changed cells repaint.
const stream = createTickStream({ apply: (batch) => api.patchRows(batch) })
feed.subscribeQuotes(symbols, (qs) => qs.forEach((q) => stream.push(q.symbol, q)))
stream.start()
</script>
<Grid {rows} {columns} getRowId={(r) => r.symbol} flashMotion="hold"
onReady={(a) => (api = a)} />● Dữ liệu thị trường giả lập, sinh ngay trong trình duyệt của bạn
Bảng giá thời gian thực cho mọi sàn: 1.000 mã với 30.000 tick mỗi giây, ô nháy màu khi đổi giá, nhóm, pivot và xuất Excel.
Các dòng nhảy giá tại chỗ; sắp xếp, lọc và nhóm ngay khi thị trường đang chạy.
API: bo-grid


