Skip to content

Commit c8b54fb

Browse files
committed
Change Binance/QMT target_name to default, add 540px mobile responsive breakpoint
1 parent 7d5883b commit c8b54fb

3 files changed

Lines changed: 32 additions & 5 deletions

File tree

platform-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
"default_account": {
197197
"key": "default",
198198
"label": "QMT",
199-
"target_name": "industry_etf_dry_run",
199+
"target_name": "default",
200200
"cash_currency": "CNY",
201201
"default_strategy_profile": "cn_industry_etf_rotation",
202202
"supported_domains": [
@@ -233,7 +233,7 @@
233233
"default_account": {
234234
"key": "default",
235235
"label": "Binance",
236-
"target_name": "crypto_combo",
236+
"target_name": "default",
237237
"cash_currency": "USD",
238238
"default_strategy_profile": "crypto_equity_combo",
239239
"supported_domains": [

web/strategy-switch-console/index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,28 @@
11881188
}
11891189
}
11901190

1191+
1192+
@media (max-width: 540px) {
1193+
.platform-strip {
1194+
grid-template-columns: repeat(2, minmax(0, 1fr));
1195+
gap: 5px;
1196+
padding: 6px 8px;
1197+
}
1198+
.platform-button {
1199+
min-height: 40px;
1200+
gap: 5px;
1201+
padding: 5px 7px;
1202+
}
1203+
.mark {
1204+
width: 26px;
1205+
height: 26px;
1206+
font-size: 10px;
1207+
}
1208+
.platform-copy strong {
1209+
font-size: 11px;
1210+
}
1211+
}
1212+
11911213
@media (max-width: 680px) {
11921214
.topbar {
11931215
position: static;
@@ -1505,11 +1527,11 @@ <h2 data-i18n="summary">切换摘要</h2>
15051527
const defaultRepositories = platformRepositories;
15061528

15071529
const defaultAccountOptions = {
1508-
binance: [{"key": "default", "label": "Binance", "target_name": "crypto_combo", "cash_currency": "USD", "default_strategy_profile": "crypto_equity_combo", "supported_domains": ["crypto"]}],
1530+
binance: [{"key": "default", "label": "Binance", "target_name": "default", "cash_currency": "USD", "default_strategy_profile": "crypto_equity_combo", "supported_domains": ["crypto"]}],
15091531
firstrade: [{"key": "preview", "label": "Firstrade", "target_name": "preview", "supported_domains": ["us_equity"], "cash_currency": "USD", "default_execution_mode": "live", "service_name": "firstrade-quant-service"}],
15101532
ibkr: [{"key": "preview", "label": "IBKR", "target_name": "preview", "supported_domains": ["us_equity", "hk_equity"], "cash_currency": "USD", "default_execution_mode": "live"}],
15111533
longbridge: [{"key": "preview", "label": "LongBridge", "target_name": "preview", "supported_domains": ["us_equity", "hk_equity"], "cash_currency": "USD", "default_execution_mode": "live"}],
1512-
qmt: [{"key": "default", "label": "QMT", "target_name": "industry_etf_dry_run", "cash_currency": "CNY", "default_strategy_profile": "cn_industry_etf_rotation", "supported_domains": ["cn_equity"], "service_name": "qmt-quant-service"}],
1534+
qmt: [{"key": "default", "label": "QMT", "target_name": "default", "cash_currency": "CNY", "default_strategy_profile": "cn_industry_etf_rotation", "supported_domains": ["cn_equity"], "service_name": "qmt-quant-service"}],
15131535
schwab: [{"key": "preview", "label": "Schwab", "target_name": "preview", "supported_domains": ["us_equity"], "cash_currency": "USD", "default_execution_mode": "live", "service_name": "charles-schwab-quant-service"}],
15141536
};
15151537

@@ -1611,6 +1633,11 @@ <h2 data-i18n="summary">切换摘要</h2>
16111633

16121634

16131635

1636+
1637+
1638+
1639+
1640+
16141641

16151642

16161643

web/strategy-switch-console/page_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)