Spaces:
Running
Running
feat: update strategy filter and agent logos config
Browse files- Set default strategy to Aggressive Long Only in LeadboardView
- Add TradeAgent logo configuration in LiveView and CompareChartE
- Fix TradeAgent logo path from trade.png to tradeagent.png
src/components/CompareChartE.vue
CHANGED
|
@@ -93,7 +93,7 @@ function toPct(points){
|
|
| 93 |
const AGENT_LOGOS = {
|
| 94 |
'HedgeFundAgent': new URL('../assets/images/agents_images/hedgefund.png', import.meta.url).href,
|
| 95 |
'DeepFundAgent': new URL('../assets/images/agents_images/deepfund.png', import.meta.url).href,
|
| 96 |
-
'TradeAgent': new URL('../assets/images/agents_images/
|
| 97 |
'InvestorAgent': new URL('../assets/images/agents_images/investor.png', import.meta.url).href,
|
| 98 |
'BTC': new URL('../assets/images/assets_images/BTC.png', import.meta.url).href,
|
| 99 |
'ETH': new URL('../assets/images/assets_images/ETH.png', import.meta.url).href,
|
|
|
|
| 93 |
const AGENT_LOGOS = {
|
| 94 |
'HedgeFundAgent': new URL('../assets/images/agents_images/hedgefund.png', import.meta.url).href,
|
| 95 |
'DeepFundAgent': new URL('../assets/images/agents_images/deepfund.png', import.meta.url).href,
|
| 96 |
+
'TradeAgent': new URL('../assets/images/agents_images/tradeagent.png', import.meta.url).href,
|
| 97 |
'InvestorAgent': new URL('../assets/images/agents_images/investor.png', import.meta.url).href,
|
| 98 |
'BTC': new URL('../assets/images/assets_images/BTC.png', import.meta.url).href,
|
| 99 |
'ETH': new URL('../assets/images/assets_images/ETH.png', import.meta.url).href,
|
src/views/LeadboardView.vue
CHANGED
|
@@ -195,7 +195,7 @@ export default {
|
|
| 195 |
this.filters.models = state.modelOptions.map(o => o.value)
|
| 196 |
}
|
| 197 |
if (!this.filters.strategies.length && state.strategyOptions.length) {
|
| 198 |
-
this.filters.strategies =
|
| 199 |
}
|
| 200 |
},
|
| 201 |
onUpdatedClick(){
|
|
|
|
| 195 |
this.filters.models = state.modelOptions.map(o => o.value)
|
| 196 |
}
|
| 197 |
if (!this.filters.strategies.length && state.strategyOptions.length) {
|
| 198 |
+
this.filters.strategies = ['long_only'] // 默认只显示 Aggressive Long Only
|
| 199 |
}
|
| 200 |
},
|
| 201 |
onUpdatedClick(){
|
src/views/LiveView.vue
CHANGED
|
@@ -114,7 +114,12 @@ const ASSET_ICONS = {
|
|
| 114 |
BMRN: new URL('../assets/images/assets_images/BMRN.png', import.meta.url).href,
|
| 115 |
TSLA: new URL('../assets/images/assets_images/TSLA.png', import.meta.url).href,
|
| 116 |
}
|
| 117 |
-
const AGENT_LOGOS = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
const ASSET_CUTOFF = { BTC: '2025-08-01' }
|
| 119 |
|
| 120 |
/* ---------- state ---------- */
|
|
|
|
| 114 |
BMRN: new URL('../assets/images/assets_images/BMRN.png', import.meta.url).href,
|
| 115 |
TSLA: new URL('../assets/images/assets_images/TSLA.png', import.meta.url).href,
|
| 116 |
}
|
| 117 |
+
const AGENT_LOGOS = {
|
| 118 |
+
'TradeAgent': new URL('../assets/images/agents_images/tradeagent.png', import.meta.url).href,
|
| 119 |
+
'HedgeFundAgent': new URL('../assets/images/agents_images/hedgefund.png', import.meta.url).href,
|
| 120 |
+
'DeepFundAgent': new URL('../assets/images/agents_images/deepfund.png', import.meta.url).href,
|
| 121 |
+
'InvestorAgent': new URL('../assets/images/agents_images/investor.png', import.meta.url).href,
|
| 122 |
+
}
|
| 123 |
const ASSET_CUTOFF = { BTC: '2025-08-01' }
|
| 124 |
|
| 125 |
/* ---------- state ---------- */
|