Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/strategy-switch-console/page_asset.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions web/strategy-switch-console/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const DCA_PROFILE_CONFIG = {
ibit_smart_dca: { default_mode: "fixed", default_base_investment_usd: "1000" },
crypto_btc_dca: { default_mode: "fixed", default_base_investment_usd: "100" },
};
const DCA_SUPPORTED_PLATFORMS = new Set(["firstrade", "binance"]);
const DCA_SUPPORTED_PLATFORMS = new Set(["schwab", "firstrade", "longbridge", "binance"]);
const SECURITY_HEADERS = {
"Content-Security-Policy": [
"default-src 'self'",
Expand Down Expand Up @@ -1782,7 +1782,7 @@ function isDcaProfile(profile) {
function assertDcaPlatform(platform, strategyProfile) {
if (isDcaProfile(strategyProfile) && !DCA_SUPPORTED_PLATFORMS.has(platform)) {
throw new Error(
`DCA strategy profiles are only supported on firstrade; got platform=${platform}, strategy_profile=${strategyProfile}`,
`DCA strategy profiles are not supported on ${platform}; got strategy_profile=${strategyProfile}`,
);
}
}
Expand Down
Loading