Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
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
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const AssetIndexUI = (() => {
if (!active_symbols) {
BinarySocket.wait('authorize').then(() => {
BinarySocket.send({ active_symbols: 'brief' }).then((response) => {
response.active_symbols = response.active_symbols.filter(item => item.submarket !== 'smart_fx');
AssetIndexUI.setActiveSymbols(response);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ const TradingTimesUI = (() => {
if (should_request_active_symbols) {
BinarySocket.wait('authorize').then(() => {
BinarySocket.send(req, { msg_type: 'active_symbols' }).then((response) => {
response.active_symbols = response.active_symbols.filter(item => item.submarket !== 'smart_fx');
TradingTimesUI.setActiveSymbols(response);
});
});
Expand Down
1 change: 1 addition & 0 deletions src/javascript/app/pages/trade/markets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class Markets extends React.Component {
let market_symbol = Defaults.get('market');
const market_list = Symbols.markets();
this.markets = getAvailableUnderlyings(market_list);
delete this.markets.forex.submarkets.smart_fx;
this.underlyings = Symbols.getAllSymbols() || {};
let underlying_symbol = Defaults.get('underlying');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const BinarySocket = require('../../../../../base/socket');
const Limits = (() => {
const onLoad = async () => {
const response_get_limits = await BinarySocket.send({ get_limits: 1 });
response_get_limits.get_limits.market_specific.forex = response_get_limits.get_limits.market_specific.forex.filter(markets => markets.name !== 'Smart FX');

if (response_get_limits.error) {
LimitsUI.limitsError(response_get_limits.error);
Expand Down