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

Commit 7d8be8d

Browse files
committed
feat: also remove step index
1 parent 705082b commit 7d8be8d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/assetindex/assetIndex.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const initTable = () => {
8282

8383
function populateTable(result) {
8484
const active_symbols_data = local_storage.get('active_symbols');
85-
const filtered_active_symbols = active_symbols_data.filter(item => !isCrashBoomSymbol(item.symbol))
85+
const filtered_active_symbols = active_symbols_data.filter(item => !isRestrictedSymbol(item.symbol))
8686
const asset_index_data = [...result[0].asset_index];
8787

8888
if($.isEmptyObject(filtered_active_symbols) && $.isEmptyObject(asset_index_data)) return;

src/common/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
function isCrashBoomSymbol(symbol) {
2-
return /^(BOOM|CRASH).+/i.test(symbol)
1+
function isRestrictedSymbol(symbol) {
2+
return /^(BOOM|CRASH|STEP).+/i.test(symbol)
33
}
44

55
function isTick(ohlc) {

src/instruments/instruments.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function refresh_active_symbols() {
1515
const active_symbols = [];
1616
const active_markets = _(data.active_symbols).groupBy('market').map(function(symbols) {
1717

18-
const filtered_symbols = symbols.filter(item => !isCrashBoomSymbol(item.symbol))
18+
const filtered_symbols = symbols.filter(item => !isRestrictedSymbol(item.symbol))
1919

2020
const sym = _.head(filtered_symbols);
2121

src/navigation/menu.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const extractFilteredMarkets = (trading_times_data, options) => {
4545

4646
export const extractChartableMarkets = (trading_times_data) => {
4747
return extractFilteredMarkets(trading_times_data, {
48-
filter: (sym) => (sym.feed_license !== 'chartonly') && !isCrashBoomSymbol(sym.symbol)
48+
filter: (sym) => (sym.feed_license !== 'chartonly') && !isRestrictedSymbol(sym.symbol)
4949
}) || [];
5050
};
5151

src/trade/tradeMenu.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const refresh_active_symbols = () => {
1515
.then((data) => {
1616
/* clean up the data! */
1717
let markets = _(data.active_symbols).groupBy('market').map((symbols) => {
18-
const filtered_symbols = symbols.filter(item => !isCrashBoomSymbol(item.symbol))
18+
const filtered_symbols = symbols.filter(item => !isRestrictedSymbol(item.symbol))
1919
const sym = _.head(filtered_symbols);
2020
const market = { name: sym.market, display_name: sym.market_display_name };
2121
market.submarkets = _(filtered_symbols).groupBy('submarket').map((symbols) => {

src/tradingtimes/tradingTimes.es6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const processData = (markets) => {
5050
submarket_names[market.display_name] = [];
5151
market.submarkets.forEach(
5252
(submarket) => {
53-
if (!isCrashBoomSymbol(submarket.name)) {
53+
if (!isRestrictedSymbol(submarket.name)) {
5454

5555
submarket_names[market.display_name].push(submarket.display_name)
5656
}
@@ -163,7 +163,7 @@ const initTradingWin = ($html) => {
163163

164164

165165
if (header[val]) {
166-
const cumulative_submarkets = Object.keys(header[val]).filter(item => !isCrashBoomSymbol(item))
166+
const cumulative_submarkets = Object.keys(header[val]).filter(item => !isRestrictedSymbol(item))
167167
submarket_names.update_list(getSortedSubmarkets(cumulative_submarkets))
168168
};
169169

0 commit comments

Comments
 (0)