feat: 更新交易视图配置,添加权重图选项并优化订单面板的标签切换

This commit is contained in:
2025-12-28 00:19:12 +07:00
parent 0b0e67114c
commit 04bc5ff95d
3 changed files with 18 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ import TradingPairHeader from "./components/trading-pair-header.vue";
const tradingViewContainer = useTemplateRef<HTMLElement>("tradingViewContainer");
// K线图配置
useTradingView(tradingViewContainer, {
const { series } = useTradingView(tradingViewContainer, {
data: [
// TODO: 后续从API获取K线数据
// const { data } = await client.api.trading.kline.get({ query: { symbol: 'BTC_USDT', interval: '1h' } })
@@ -19,6 +19,11 @@ useTradingView(tradingViewContainer, {
{ time: "2023-10-06", open: 44500, high: 45000, low: 44200, close: 44800 },
{ time: "2023-10-07", open: 44800, high: 45500, low: 44500, close: 43250 },
],
weightChartOptions: {
rightPriceScale: {
visible: false,
},
},
});
// 买卖切换