Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 4cbfe3b

Browse files
niloofar-derivhabib-derivmatin-deriv
authored
Niloofar/ remove smartFX under Forex tab from resources and all platform (#7025)
* remove smartFX under forex tab from assest index/ trading times page and all platform * fix test error * remove smartfx from account limit * fix build error Co-authored-by: Habib Deriv <88178645+habib-deriv@users.noreply.github.com> Co-authored-by: Matin shafiei <matin@binary.com>
1 parent 4a9aff1 commit 4cbfe3b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/javascript/app/pages/resources/asset_index/asset_index.ui.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const AssetIndexUI = (() => {
124124
if (!active_symbols) {
125125
BinarySocket.wait('authorize').then(() => {
126126
BinarySocket.send({ active_symbols: 'brief' }).then((response) => {
127+
response.active_symbols = response.active_symbols.filter(item => item.submarket !== 'smart_fx');
127128
AssetIndexUI.setActiveSymbols(response);
128129
});
129130
});

src/javascript/app/pages/resources/trading_times/trading_times.ui.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ const TradingTimesUI = (() => {
232232
if (should_request_active_symbols) {
233233
BinarySocket.wait('authorize').then(() => {
234234
BinarySocket.send(req, { msg_type: 'active_symbols' }).then((response) => {
235+
response.active_symbols = response.active_symbols.filter(item => item.submarket !== 'smart_fx');
235236
TradingTimesUI.setActiveSymbols(response);
236237
});
237238
});

src/javascript/app/pages/trade/markets.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class Markets extends React.Component {
7171
let market_symbol = Defaults.get('market');
7272
const market_list = Symbols.markets();
7373
this.markets = getAvailableUnderlyings(market_list);
74+
delete this.markets.forex.submarkets.smart_fx;
7475
this.underlyings = Symbols.getAllSymbols() || {};
7576
let underlying_symbol = Defaults.get('underlying');
7677

src/javascript/app/pages/user/account/settings/limits/limits.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const BinarySocket = require('../../../../../base/socket');
55
const Limits = (() => {
66
const onLoad = async () => {
77
const response_get_limits = await BinarySocket.send({ get_limits: 1 });
8+
response_get_limits.get_limits.market_specific.forex = response_get_limits.get_limits.market_specific.forex.filter(markets => markets.name !== 'Smart FX');
89

910
if (response_get_limits.error) {
1011
LimitsUI.limitsError(response_get_limits.error);

0 commit comments

Comments
 (0)