실시간 시세판
코드
문서 보기 →<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)} />● 브라우저에서 생성한 시뮬레이션 시장 데이터
어떤 거래소에도 쓰는 실시간 시세판: 초당 30,000틱으로 1,000종목, 값이 바뀌면 깜박이는 셀, 그룹, 피벗, Excel 내보내기.
행이 제자리에서 갱신됩니다. 장중에도 정렬, 필터, 그룹이 됩니다.
API: bo-grid


