リアルタイム株価ボード

<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