Skip to content

Commit c198a83

Browse files
committed
Add DCA support for Binance crypto BTC DCA strategy
1 parent 6bfec73 commit c198a83

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

web/strategy-switch-console/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@ <h2 data-i18n="summary">切换摘要</h2>
22942294
}
22952295

22962296
function platformSupportsDca(platform = state.selected) {
2297-
return platform === "firstrade";
2297+
return platform === "firstrade" || platform === "binance";
22982298
}
22992299

23002300
function strategyAllowedForAccount(platform, account, profile) {

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.

web/strategy-switch-console/strategy-profiles.example.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@
225225
"label_en": "Crypto BTC DCA",
226226
"label_zh": "BTC定投",
227227
"domain": "crypto",
228-
"runtime_enabled": true
228+
"runtime_enabled": true,
229+
"dca_enabled": true,
230+
"dca_default_mode": "fixed",
231+
"dca_default_base_investment_usd": "100"
229232
},
230233
{
231234
"profile": "crypto_trend_rotation",

web/strategy-switch-console/strategy_profiles_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)