Skip to content

Commit

Permalink
fix: market closed (#15157)
Browse files Browse the repository at this point in the history
  • Loading branch information
balakrishna-deriv committed May 21, 2024
1 parent 7713658 commit 3604f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/trader/src/Stores/Modules/Trading/trade-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ export default class TradeStore extends BaseStore {
this.root_store.contract_trade.updateAccumulatorBarriersData(current_spot_data);
}
};
if (this.is_market_closed) {
if (isMarketClosed(this.active_symbols, req.ticks_history)) {
delete req.subscribe;
WS.getTicksHistory(req).then(passthrough_callback, passthrough_callback);
} else if (req.subscribe === 1) {
Expand Down

0 comments on commit 3604f17

Please sign in to comment.