From a2718a514a9a32e2ca43f8fadd36e239f9fa1f63 Mon Sep 17 00:00:00 2001 From: Matin shafiei Date: Wed, 11 Oct 2023 21:44:56 +0800 Subject: [PATCH] Matin / cTrader trading_platform_available_accounts API call is removed. (#10122) * chore: fix Oneall social unlinking from Apple accounts * Revert "chore: fix Oneall social unlinking from Apple accounts" This reverts commit 84009b09da4eb9ffe2164ef62d3e98acfd707b17. * chore: remove trading_platform_available_accounts API call for cTrader --- packages/core/src/Stores/client-store.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/core/src/Stores/client-store.js b/packages/core/src/Stores/client-store.js index 01343ee83792..3656e7599411 100644 --- a/packages/core/src/Stores/client-store.js +++ b/packages/core/src/Stores/client-store.js @@ -53,7 +53,6 @@ export default class ClientStore extends BaseStore { email; accounts = {}; trading_platform_available_accounts = []; - ctrader_available_accounts = []; derivez_available_accounts = []; pre_switch_broadcast = false; switched = ''; @@ -167,7 +166,6 @@ export default class ClientStore extends BaseStore { email: observable, accounts: observable, trading_platform_available_accounts: observable, - ctrader_available_accounts: observable, derivez_available_accounts: observable, pre_switch_broadcast: observable, switched: observable, @@ -384,7 +382,6 @@ export default class ClientStore extends BaseStore { responseTradingPlatformAvailableAccounts: action.bound, responseDerivezAvailableAccounts: action.bound, responseTradingPlatformAccountsList: action.bound, - responseCTraderAvailableAccounts: action.bound, responseStatement: action.bound, getChangeableFields: action.bound, syncWithLegacyPlatforms: action.bound, @@ -1709,7 +1706,6 @@ export default class ClientStore extends BaseStore { WS.tradingPlatformAvailableAccounts(CFD_PLATFORMS.MT5).then(this.responseTradingPlatformAvailableAccounts); WS.tradingPlatformAccountsList(CFD_PLATFORMS.DXTRADE).then(this.responseTradingPlatformAccountsList); WS.tradingPlatformAccountsList(CFD_PLATFORMS.CTRADER).then(this.responseTradingPlatformAccountsList); - WS.tradingPlatformAvailableAccounts(CFD_PLATFORMS.CTRADER).then(this.responseCTraderAvailableAccounts); WS.tradingServers(CFD_PLATFORMS.DXTRADE).then(this.responseDxtradeTradingServers); WS.tradingPlatformAccountsList(CFD_PLATFORMS.DERIVEZ).then(this.responseTradingPlatformAccountsList); WS.tradingPlatformAccountsList(CFD_PLATFORMS.DERIVEZ).then(this.responseDerivezAvailableAccounts); @@ -2539,12 +2535,6 @@ export default class ClientStore extends BaseStore { } } - responseCTraderAvailableAccounts(response) { - if (!response.error) { - this.ctrader_available_accounts = response.trading_platform_available_accounts; - } - } - responseDerivezAvailableAccounts(response) { if (!response.error) { this.derivez_available_accounts = response.trading_platform_accounts;