Skip to content

Commit

Permalink
Matin / cTrader trading_platform_available_accounts API call is remov…
Browse files Browse the repository at this point in the history
…ed. (binary-com#10122)

* chore: fix Oneall social unlinking from Apple accounts

* Revert "chore: fix Oneall social unlinking from Apple accounts"

This reverts commit 84009b0.

* chore: remove trading_platform_available_accounts API call for cTrader
  • Loading branch information
matin-deriv committed Oct 11, 2023
1 parent 9b75947 commit a2718a5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/core/src/Stores/client-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a2718a5

Please sign in to comment.