Skip to content

Commit 357097b

Browse files
rm recent trades fetch
1 parent 8258645 commit 357097b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

directionalscalper/core/strategies/bybit/gridbased/lineargrid_base.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,16 @@ def run_single_symbol(self, symbol, rotator_symbols_standardized=None, mfirsi_si
218218
previous_five_minute_distance = None
219219

220220
since_timestamp = int((datetime.now() - timedelta(days=1)).timestamp() * 1000) # 24 hours ago in milliseconds
221-
recent_trades = self.fetch_recent_trades_for_symbol(symbol, since=since_timestamp, limit=20)
221+
# recent_trades = self.fetch_recent_trades_for_symbol(symbol, since=since_timestamp, limit=20)
222222

223-
#logging.info(f"Recent trades for {symbol} : {recent_trades}")
223+
# #logging.info(f"Recent trades for {symbol} : {recent_trades}")
224224

225-
# Check if there are any trades in the last 24 hours
226-
recent_activity = any(trade['timestamp'] >= since_timestamp for trade in recent_trades)
227-
if recent_activity:
228-
logging.info(f"Recent trading activity detected for {symbol}")
229-
else:
230-
logging.info(f"No recent trading activity for {symbol} in the last 24 hours")
225+
# # Check if there are any trades in the last 24 hours
226+
# recent_activity = any(trade['timestamp'] >= since_timestamp for trade in recent_trades)
227+
# if recent_activity:
228+
# logging.info(f"Recent trading activity detected for {symbol}")
229+
# else:
230+
# logging.info(f"No recent trading activity for {symbol} in the last 24 hours")
231231

232232

233233
while self.running_long or self.running_short:

0 commit comments

Comments
 (0)