[2026-01-16 13:09:29] === POSITION CLOSER STARTED ===
[2026-01-16 13:09:29] Current time is 13:09 - Not time to close positions yet (target: 15:15)
[2026-01-16 13:09:29] === END ===

[2026-01-19 12:01:14] === POSITION CLOSER STARTED ===
[2026-01-19 12:01:14] Step 1: Fetching all positions...
[2026-01-19 12:01:15] ✓ Fetched 29 positions
[2026-01-19 12:01:15] Step 2: Closing all open positions...
[2026-01-19 12:01:15] Closing SHORT position: SAMMAANCAP (BUY 1 qty)
[2026-01-19 12:01:15] ✓ Close order placed! Order ID: 21126011933865
[2026-01-19 12:01:15] Closing SHORT position: BEL (BUY 1 qty)
[2026-01-19 12:01:15] ✓ Close order placed! Order ID: 36126011953005
[2026-01-19 12:01:15] Closing SHORT position: INDIANB (BUY 1 qty)
[2026-01-19 12:01:16] ✓ Close order placed! Order ID: 241260119299405
[2026-01-19 12:01:16] Closing SHORT position: CONCOR (BUY 1 qty)
[2026-01-19 12:01:16] ✓ Close order placed! Order ID: 241260119299505
[2026-01-19 12:01:16] Closing SHORT position: RECLTD (BUY 1 qty)
[2026-01-19 12:01:17] ✓ Close order placed! Order ID: 22126011931705
[2026-01-19 12:01:17] Closing SHORT position: PFC (BUY 1 qty)
[2026-01-19 12:01:17] ✓ Close order placed! Order ID: 33126011932685
[2026-01-19 12:01:17] Closing LONG position: MUTHOOTFIN (SELL 1 qty)
[2026-01-19 12:01:17] ✓ Close order placed! Order ID: 36126011953105
[2026-01-19 12:01:17] Closing SHORT position: DABUR (BUY 1 qty)
[2026-01-19 12:01:18] ✓ Close order placed! Order ID: 241260119299605
[2026-01-19 12:01:18] Closing SHORT position: AMBUJACEM (BUY 1 qty)
[2026-01-19 12:01:18] ✓ Close order placed! Order ID: 22126011931715
[2026-01-19 12:01:18] Closing LONG position: MANAPPURAM (SELL 1 qty)
[2026-01-19 12:01:19] ✓ Close order placed! Order ID: 33126011932695
[2026-01-19 12:01:19] Closing SHORT position: TVSMOTOR (BUY 1 qty)
[2026-01-19 12:01:19] ✓ Close order placed! Order ID: 32126011947915
[2026-01-19 12:01:19] Closing SHORT position: BAJAJFINSV (BUY 1 qty)
[2026-01-19 12:01:20] ✓ Close order placed! Order ID: 36126011953205
[2026-01-19 12:01:20] Closing SHORT position: DALBHARAT (BUY 1 qty)
[2026-01-19 12:01:20] ✓ Close order placed! Order ID: 31126011948385
[2026-01-19 12:01:20] Closing SHORT position: SUNPHARMA (BUY 1 qty)
[2026-01-19 12:01:20] ✓ Close order placed! Order ID: 33126011932705
[2026-01-19 12:01:20] ✓ Attempted to close 14 open positions
[2026-01-19 12:01:20] Step 3: Waiting 10 seconds for orders to execute...
[2026-01-19 12:01:30] Step 4: Fetching and storing closed positions...
[2026-01-19 12:01:31] Fetching closed positions (netQty = 0)...
[2026-01-19 12:01:31] Stored: MAZDOCK | PNL: ₹10.20 ✓ PROFIT
[2026-01-19 12:01:31] Stored: BDL | PNL: ₹12.70 ✓ PROFIT
[2026-01-19 12:01:31] Stored: SAMMAANCAP | PNL: ₹-0.08 ✗ LOSS
[2026-01-19 12:01:31] Stored: BEL | PNL: ₹1.80 ✓ PROFIT
[2026-01-19 12:01:31] Stored: JUBLFOOD | PNL: ₹8.65 ✓ PROFIT
[2026-01-19 12:01:31] Stored: JSWENERGY | PNL: ₹9.40 ✓ PROFIT
[2026-01-19 12:01:31] Stored: INDIANB | PNL: ₹2.95 ✓ PROFIT
[2026-01-19 12:01:31] Stored: ADANIENSOL | PNL: ₹10.10 ✓ PROFIT
[2026-01-19 12:01:31] Stored: LODHA | PNL: ₹7.70 ✓ PROFIT
[2026-01-19 12:01:31] Stored: TORNTPOWER | PNL: ₹8.60 ✓ PROFIT
[2026-01-19 12:01:31] Stored: CONCOR | PNL: ₹3.15 ✓ PROFIT
[2026-01-19 12:01:31] Stored: BLUESTARCO | PNL: ₹17.00 ✓ PROFIT
[2026-01-19 12:01:31] Stored: CDSL | PNL: ₹12.30 ✓ PROFIT
[2026-01-19 12:01:31] Stored: CAMS | PNL: ₹10.80 ✓ PROFIT
[2026-01-19 12:01:31] Stored: RECLTD | PNL: ₹5.15 ✓ PROFIT
[2026-01-19 12:01:31] Stored: PFC | PNL: ₹2.10 ✓ PROFIT
[2026-01-19 12:01:31] Stored: MPHASIS | PNL: ₹27.20 ✓ PROFIT
[2026-01-19 12:01:31] Stored: POLICYBZR | PNL: ₹12.80 ✓ PROFIT
[2026-01-19 12:01:31] Stored: LTF | PNL: ₹6.85 ✓ PROFIT
[2026-01-19 12:01:31] Stored: TORNTPHARM | PNL: ₹10.40 ✓ PROFIT
[2026-01-19 12:01:31] Stored: HAVELLS | PNL: ₹9.10 ✓ PROFIT
[2026-01-19 12:01:31] Stored: MUTHOOTFIN | PNL: ₹-4.60 ✗ LOSS
[2026-01-19 12:01:31] Stored: DABUR | PNL: ₹4.55 ✓ PROFIT
[2026-01-19 12:01:31] Stored: AMBUJACEM | PNL: ₹-0.70 ✗ LOSS
[2026-01-19 12:01:31] Stored: MANAPPURAM | PNL: ₹0.30 ✓ PROFIT
[2026-01-19 12:01:31] Stored: TVSMOTOR | PNL: ₹-9.00 ✗ LOSS
[2026-01-19 12:01:31] Stored: BAJAJFINSV | PNL: ₹3.50 ✓ PROFIT
[2026-01-19 12:01:31] Stored: DALBHARAT | PNL: ₹-6.60 ✗ LOSS
[2026-01-19 12:01:31] Stored: SUNPHARMA | PNL: ₹1.70 ✓ PROFIT
[2026-01-19 12:01:31] ✓ Total closed positions stored: 29
[2026-01-19 12:01:31] ✓ Successfully stored closed positions in database
[2026-01-19 12:01:31] === END ===

[2026-01-20 18:01:22] === POSITION CLOSER STARTED ===
[2026-01-20 18:01:22] Step 1: Fetching all positions...
[2026-01-20 18:01:22] ✓ Fetched 20 positions
[2026-01-20 18:01:22] Step 2: Closing all open positions...
[2026-01-20 18:01:22] ✓ Attempted to close 0 open positions
[2026-01-20 18:01:22] Step 3: Waiting 10 seconds for orders to execute...
[2026-01-20 18:01:32] Step 4: Fetching and storing closed positions...
[2026-01-20 18:01:33] Fetching closed positions (netQty = 0)...
[2026-01-20 18:01:33] Stored: MFSL | PNL: ₹14.10 ✓ PROFIT
[2026-01-20 18:01:33] Stored: PNBHOUSING | PNL: ₹12.40 ✓ PROFIT
[2026-01-20 18:01:33] Stored: OIL | PNL: ₹7.00 ✓ PROFIT
[2026-01-20 18:01:33] Stored: HAVELLS | PNL: ₹38.30 ✓ PROFIT
[2026-01-20 18:01:33] Stored: PAYTM | PNL: ₹-32.00 ✗ LOSS
[2026-01-20 18:01:33] Stored: HDFCAMC | PNL: ₹-44.50 ✗ LOSS
[2026-01-20 18:01:33] Stored: CUMMINSIND | PNL: ₹-16.10 ✗ LOSS
[2026-01-20 18:01:33] Stored: PATANJALI | PNL: ₹-19.65 ✗ LOSS
[2026-01-20 18:01:33] Stored: LUPIN | PNL: ₹0.20 ✓ PROFIT
[2026-01-20 18:01:33] Stored: ICICIBANK | PNL: ₹6.10 ✓ PROFIT
[2026-01-20 18:01:33] Stored: JSWSTEEL | PNL: ₹-25.30 ✗ LOSS
[2026-01-20 18:01:33] Stored: HINDALCO | PNL: ₹-11.05 ✗ LOSS
[2026-01-20 18:01:33] Stored: BEL | PNL: ₹-3.45 ✗ LOSS
[2026-01-20 18:01:33] Stored: HINDZINC | PNL: ₹11.90 ✓ PROFIT
[2026-01-20 18:01:33] Stored: LICI | PNL: ₹5.80 ✓ PROFIT
[2026-01-20 18:01:33] Stored: POLICYBZR | PNL: ₹12.40 ✓ PROFIT
[2026-01-20 18:01:33] Stored: SBIN | PNL: ₹-3.75 ✗ LOSS
[2026-01-20 18:01:33] Stored: TORNTPOWER | PNL: ₹12.00 ✓ PROFIT
[2026-01-20 18:01:33] Stored: COLPAL | PNL: ₹-40.30 ✗ LOSS
[2026-01-20 18:01:33] Stored: HDFCLIFE | PNL: ₹-3.35 ✗ LOSS
[2026-01-20 18:01:33] ✓ Total closed positions stored: 20
[2026-01-20 18:01:33] ✓ Successfully stored closed positions in database
[2026-01-20 18:01:33] === END ===

[2026-01-20 21:18:01] === POSITION CLOSER STARTED ===
[2026-01-20 21:18:01] Step 1: Fetching all positions...
[2026-01-20 21:18:01] ✓ Fetched 20 positions
[2026-01-20 21:18:01] Step 2: Closing all open positions...
[2026-01-20 21:18:01] ✓ Attempted to close 0 open positions
[2026-01-20 21:18:01] Step 3: Waiting 10 seconds for orders to execute...
[2026-01-20 21:18:11] Step 4: Fetching and storing closed positions...
[2026-01-20 21:18:12] Fetching closed positions (netQty = 0)...
[2026-01-20 21:18:12] Stored: MFSL | PNL: ₹14.10 ✓ PROFIT
[2026-01-20 21:18:12] Stored: PNBHOUSING | PNL: ₹12.40 ✓ PROFIT
[2026-01-20 21:18:12] Stored: OIL | PNL: ₹7.00 ✓ PROFIT
[2026-01-20 21:18:12] Stored: HAVELLS | PNL: ₹38.30 ✓ PROFIT
[2026-01-20 21:18:12] Stored: PAYTM | PNL: ₹-32.00 ✗ LOSS
[2026-01-20 21:18:12] Stored: HDFCAMC | PNL: ₹-44.50 ✗ LOSS
[2026-01-20 21:18:12] Stored: CUMMINSIND | PNL: ₹-16.10 ✗ LOSS
[2026-01-20 21:18:12] Stored: PATANJALI | PNL: ₹-19.65 ✗ LOSS
[2026-01-20 21:18:12] Stored: LUPIN | PNL: ₹0.20 ✓ PROFIT
[2026-01-20 21:18:12] Stored: ICICIBANK | PNL: ₹6.10 ✓ PROFIT
[2026-01-20 21:18:12] Stored: JSWSTEEL | PNL: ₹-25.30 ✗ LOSS
[2026-01-20 21:18:12] Stored: HINDALCO | PNL: ₹-11.05 ✗ LOSS
[2026-01-20 21:18:12] Stored: BEL | PNL: ₹-3.45 ✗ LOSS
[2026-01-20 21:18:12] Stored: HINDZINC | PNL: ₹11.90 ✓ PROFIT
[2026-01-20 21:18:12] Stored: LICI | PNL: ₹5.80 ✓ PROFIT
[2026-01-20 21:18:12] Stored: POLICYBZR | PNL: ₹12.40 ✓ PROFIT
[2026-01-20 21:18:12] Stored: SBIN | PNL: ₹-3.75 ✗ LOSS
[2026-01-20 21:18:12] Stored: TORNTPOWER | PNL: ₹12.00 ✓ PROFIT
[2026-01-20 21:18:12] Stored: COLPAL | PNL: ₹-40.30 ✗ LOSS
[2026-01-20 21:18:12] Stored: HDFCLIFE | PNL: ₹-3.35 ✗ LOSS
[2026-01-20 21:18:12] ✓ Total closed positions stored: 20
[2026-01-20 21:18:12] ✓ Successfully stored closed positions in database
[2026-01-20 21:18:12] === END ===

[2026-02-20 16:06:06] === POSITION CLOSER STARTED ===
[2026-02-20 16:06:06] Step 1: Fetching all positions...
[2026-02-20 16:06:07] ✗ Failed to fetch positions. HTTP: 401
[2026-02-20 16:06:07] === END ===

[2026-02-20 20:03:42] === POSITION CLOSER STARTED ===
[2026-02-20 20:03:42] Step 1: Fetching all positions...
[2026-02-20 20:03:43] ✗ Failed to fetch positions. HTTP: 401
[2026-02-20 20:03:43] === END ===

[2026-02-24 16:41:05] === POSITION CLOSER STARTED ===
[2026-02-24 16:41:05] Step 1: Fetching all positions...
[2026-02-24 16:41:06] ✗ Failed to fetch positions. HTTP: 401
[2026-02-24 16:41:06] === END ===

[2026-02-24 17:41:09] === POSITION CLOSER STARTED ===
[2026-02-24 17:41:09] Step 1: Fetching all positions...
[2026-02-24 17:41:09] ✗ Failed to fetch positions. HTTP: 401
[2026-02-24 17:41:09] === END ===

[2026-02-27 04:01:15] === POSITION CLOSER STARTED ===
[2026-02-27 04:01:15] Step 1: Fetching all positions...
[2026-02-27 04:01:15] ✗ Failed to fetch positions. HTTP: 401
[2026-02-27 04:01:15] === END ===

[2026-02-27 09:28:08] === POSITION CLOSER STARTED ===
[2026-02-27 09:28:08] Step 1: Fetching all positions...
[2026-02-27 09:28:08] ✗ Failed to fetch positions. HTTP: 401
[2026-02-27 09:28:08] === END ===

[2026-03-02 19:10:39] === POSITION CLOSER STARTED ===
[2026-03-02 19:10:39] Step 1: Fetching all positions...
[2026-03-02 19:10:39] ✗ Failed to fetch positions. HTTP: 401
[2026-03-02 19:10:39] === END ===

[2026-03-03 09:51:54] === POSITION CLOSER STARTED ===
[2026-03-03 09:51:54] Step 1: Fetching all positions...
[2026-03-03 09:51:54] ✗ Failed to fetch positions. HTTP: 401
[2026-03-03 09:51:54] === END ===

[2026-03-15 07:51:44] === POSITION CLOSER STARTED ===
[2026-03-15 07:51:44] Step 1: Fetching all positions...
[2026-03-15 07:51:45] ✗ Failed to fetch positions. HTTP: 401
[2026-03-15 07:51:45] === END ===

[2026-03-15 09:55:24] === POSITION CLOSER STARTED ===
[2026-03-15 09:55:24] Step 1: Fetching all positions...
[2026-03-15 09:55:25] ✗ Failed to fetch positions. HTTP: 401
[2026-03-15 09:55:25] === END ===

[2026-03-16 07:35:04] === POSITION CLOSER STARTED ===
[2026-03-16 07:35:04] Step 1: Fetching all positions...
[2026-03-16 07:35:04] ✗ Failed to fetch positions. HTTP: 401
[2026-03-16 07:35:04] === END ===

[2026-03-17 08:11:45] === POSITION CLOSER STARTED ===
[2026-03-17 08:11:45] Step 1: Fetching all positions...
[2026-03-17 08:11:45] ✗ Failed to fetch positions. HTTP: 401
[2026-03-17 08:11:45] === END ===

[2026-03-23 18:04:54] === POSITION CLOSER STARTED ===
[2026-03-23 18:04:54] Step 1: Fetching all positions...
[2026-03-23 18:04:54] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 18:04:54] === END ===

[2026-03-23 18:16:41] === POSITION CLOSER STARTED ===
[2026-03-23 18:16:41] Step 1: Fetching all positions...
[2026-03-23 18:16:42] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 18:16:42] === END ===

[2026-03-23 18:55:10] === POSITION CLOSER STARTED ===
[2026-03-23 18:55:10] Step 1: Fetching all positions...
[2026-03-23 18:55:10] === POSITION CLOSER STARTED ===
[2026-03-23 18:55:10] Step 1: Fetching all positions...
[2026-03-23 18:55:10] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 18:55:10] === END ===

[2026-03-23 18:55:10] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 18:55:10] === END ===

[2026-03-23 18:55:19] === POSITION CLOSER STARTED ===
[2026-03-23 18:55:19] Step 1: Fetching all positions...
[2026-03-23 18:55:19] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 18:55:19] === END ===

[2026-03-23 19:23:45] === POSITION CLOSER STARTED ===
[2026-03-23 19:23:45] Step 1: Fetching all positions...
[2026-03-23 19:23:45] === POSITION CLOSER STARTED ===
[2026-03-23 19:23:45] Step 1: Fetching all positions...
[2026-03-23 19:23:45] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 19:23:45] === END ===

[2026-03-23 19:23:45] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 19:23:45] === END ===

[2026-03-23 19:23:55] === POSITION CLOSER STARTED ===
[2026-03-23 19:23:55] Step 1: Fetching all positions...
[2026-03-23 19:23:55] ✗ Failed to fetch positions. HTTP: 401
[2026-03-23 19:23:55] === END ===

[2026-04-14 03:43:03] === POSITION CLOSER STARTED ===
[2026-04-14 03:43:03] Step 1: Fetching all positions...
[2026-04-14 03:43:03] ✗ Failed to fetch positions. HTTP: 401
[2026-04-14 03:43:03] === END ===

[2026-04-15 08:45:16] === POSITION CLOSER STARTED ===
[2026-04-15 08:45:16] Step 1: Fetching all positions...
[2026-04-15 08:45:16] ✗ Failed to fetch positions. HTTP: 401
[2026-04-15 08:45:16] === END ===

[2026-04-15 09:43:02] === POSITION CLOSER STARTED ===
[2026-04-15 09:43:02] Step 1: Fetching all positions...
[2026-04-15 09:43:03] ✗ Failed to fetch positions. HTTP: 401
[2026-04-15 09:43:03] === END ===

[2026-04-15 13:39:16] === POSITION CLOSER STARTED ===
[2026-04-15 13:39:16] Step 1: Fetching all positions...
[2026-04-15 13:39:16] ✗ Failed to fetch positions. HTTP: 401
[2026-04-15 13:39:16] === END ===

