韓國市場(KRX)
程式碼
閱讀文件 →import { ChartWidget } from '@tradecanvas/chart/widget'
import { MARKET_KRX } from '@tradecanvas/chart'
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: '005930', // Samsung Electronics on KOSPI
timeframe: '1h',
theme: 'dark',
adapter: feed,
trading: true,
chartOptions: { numberLocale: 'ko-KR' }, // volumes in 만 and 억
})
const chart = widget.getChart()
// Won steps by price band, red up and blue down, ±30% limits rounded as KRX rounds them
chart.setMarket(MARKET_KRX)
// previousClose: yesterday's close, from your feed
chart.setPriceLimits(previousClose) // the day's ceiling and floor on the price axis● 模擬行情資料,在你的瀏覽器中產生
開箱即用的完整畫面:下單面板、圖表上的委託與部位、可拖曳的停損與停利、自選清單、警示與K線回放。
依價格區間的韓元最小跳動單位,漲為紅、跌為藍,以及依 KRX 方式從基準價算出的當日 ±30% 漲跌停價。
API: MARKET_KRX



