From a9f0aa071724bfff95eaeb69ae9e62e3c1b022e8 Mon Sep 17 00:00:00 2001
From: aaron <>
Date: Mon, 23 Feb 2026 00:17:39 +0800
Subject: [PATCH] 1
---
frontend/real-trading.html | 39 ++++++--------------------------------
1 file changed, 6 insertions(+), 33 deletions(-)
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');