diff --git a/frontend/real-trading.html b/frontend/real-trading.html index aef3868..a91d606 100644 --- a/frontend/real-trading.html +++ b/frontend/real-trading.html @@ -448,9 +448,9 @@
-
@@ -473,11 +467,11 @@

加载中...

-
+
-

暂无活跃订单

+

暂无持仓

@@ -487,13 +481,6 @@

暂无历史订单

-
- - - -

暂无持仓

-
- @@ -596,7 +583,7 @@ createApp({ data() { return { - currentTab: 'active', + currentTab: 'positions', loading: false, serviceEnabled: false, apiConfigured: false, @@ -608,7 +595,6 @@ total_position_value: 0 }, stats: null, - activeOrders: [], historyOrders: [], exchangePositions: [], autoRefreshInterval: null @@ -616,7 +602,6 @@ }, computed: { displayOrders() { - if (this.currentTab === 'active') return this.activeOrders; if (this.currentTab === 'history') return this.historyOrders; if (this.currentTab === 'positions') return this.exchangePositions; return []; @@ -630,7 +615,6 @@ this.fetchServiceStatus(), this.fetchAccountStatus(), this.fetchStats(), - this.fetchActiveOrders(), this.fetchHistoryOrders(), this.fetchExchangePositions() ]); @@ -678,17 +662,6 @@ } }, - async fetchActiveOrders() { - try { - const response = await axios.get('/api/real-trading/orders/active'); - if (response.data.success) { - this.activeOrders = response.data.orders; - } - } catch (error) { - console.error('获取活跃订单失败:', error); - } - }, - async fetchHistoryOrders() { try { const response = await axios.get('/api/real-trading/orders?status=closed&limit=50');