{"name": "sell wang.ipynb", "path": "sell wang.ipynb", "last_modified": "2024-11-29T15:28:26.566701Z", "created": "2024-02-16T17:32:18.900756Z", "content": {"cells": [{"cell_type": "code", "execution_count": null, "id": "07c4a154", "metadata": {"trusted": true}, "outputs": [{"name": "stdout", "output_type": "stream", "text": "Market is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\nLoading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\nLoading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.2124\nStop Price from get_stop(): $62.78\nTrailing Percentage (from difference): 2.23%\nSymbol: KO, Quantity: 7.26, Stop Price: 62.78, Limit Price: 62.28\nFirst target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.21, Target Price 1: $66.94\n\nStock: AAPL\nCurrent Price: $230.1703\nStop Price from get_stop(): $225.56\nTrailing Percentage (from difference): 2.00%\nSymbol: AAPL, Quantity: 0.72, Stop Price: 225.56, Limit Price: 225.06\nSkipping order for AAPL because quantity to sell is less than 1.\nFirst target price not yet reached for AAPL, setting stop loss order.\nCurrent Price: $230.17, Target Price 1: $240.12\n\nStock: SAIC\nCurrent Price: $122.39\nStop Price from get_stop(): $120.96\nTrailing Percentage (from difference): 1.17%\nSymbol: SAIC, Quantity: 0.72, Stop Price: 120.96, Limit Price: 120.46\nSkipping order for SAIC because quantity to sell is less than 1.\nFirst target price not yet reached for SAIC, setting stop loss order.\nCurrent Price: $122.39, Target Price 1: $159.94\n\nStock: CARR\nCurrent Price: $78.62\nStop Price from get_stop(): $74.96\nTrailing Percentage (from difference): 4.66%\nSymbol: CARR, Quantity: 0.43, Stop Price: 74.96, Limit Price: 74.46\nSkipping order for CARR because quantity to sell is less than 1.\nFirst target price not yet reached for CARR, setting stop loss order.\nCurrent Price: $78.62, Target Price 1: $80.73\n\nStock: OTIS\nCurrent Price: $102.495\nStop Price from get_stop(): $98.12\nTrailing Percentage (from difference): 4.27%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 98.12, Limit Price: 97.62\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $102.50, Target Price 1: $107.73\n\nStock: GIS\nCurrent Price: $65.505\nStop Price from get_stop(): $63.47\nTrailing Percentage (from difference): 3.11%\nSymbol: GIS, Quantity: 7.24, Stop Price: 63.47, Limit Price: 62.97\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $65.50, Target Price 1: $67.15\n\nStock: PSA\nCurrent Price: $348.13\nStop Price from get_stop(): $333.21\nTrailing Percentage (from difference): 4.29%\nSymbol: PSA, Quantity: 0.3228, Stop Price: 333.21, Limit Price: 332.71\nSkipping order for PSA because quantity to sell is less than 1.\nFirst target price not yet reached for PSA, setting stop loss order.\nCurrent Price: $348.13, Target Price 1: $356.80\n\nStock: ABT\nCurrent Price: $118.15\nStop Price from get_stop(): $114.95\nTrailing Percentage (from difference): 2.71%\nSymbol: ABT, Quantity: 3.11, Stop Price: 114.95, Limit Price: 114.45\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $118.15, Target Price 1: $123.97\n\nStock: EMN\nCurrent Price: $106.8\nStop Price from get_stop(): $104.92\nTrailing Percentage (from difference): 1.76%\nSymbol: EMN, Quantity: 4.47, Stop Price: 104.91, Limit Price: 104.41\nFirst target price not yet reached for EMN, setting stop loss order.\nCurrent Price: $106.80, Target Price 1: $108.74\n\nStock: AMAT\nCurrent Price: $175.345\nStop Price from get_stop(): $170.73\nTrailing Percentage (from difference): 2.63%\nSymbol: AMAT, Quantity: 0.25, Stop Price: 170.73, Limit Price: 170.23\nSkipping order for AMAT because quantity to sell is less than 1.\nFirst target price not yet reached for AMAT, setting stop loss order.\nCurrent Price: $175.34, Target Price 1: $203.12\n\nStock: MU\nCurrent Price: $104.62\nStop Price from get_stop(): $99.58\nTrailing Percentage (from difference): 4.82%\nSymbol: MU, Quantity: 0.85, Stop Price: 99.58, Limit Price: 99.08\nSkipping order for MU because quantity to sell is less than 1.\nFirst target price not yet reached for MU, setting stop loss order.\nCurrent Price: $104.62, Target Price 1: $118.87\n\nStock: FCN\nCurrent Price: $203.555\nStop Price from get_stop(): $196.06\nTrailing Percentage (from difference): 3.68%\nSymbol: FCN, Quantity: 0.5314, Stop Price: 196.06, Limit Price: 195.56\nSkipping order for FCN because quantity to sell is less than 1.\nFirst target price not yet reached for FCN, setting stop loss order.\nCurrent Price: $203.56, Target Price 1: $216.64\n\nStock: XOM\nCurrent Price: $120.22\nStop Price from get_stop(): $119.85\nTrailing Percentage (from difference): 0.31%\nSymbol: XOM, Quantity: 3.78, Stop Price: 119.85, Limit Price: 119.35\nFirst target price not yet reached for XOM, setting stop loss order.\nCurrent Price: $120.22, Target Price 1: $128.43\n\nStock: NUE\nCurrent Price: $155.51\nStop Price from get_stop(): $150.93\nTrailing Percentage (from difference): 2.95%\nSymbol: NUE, Quantity: 2.34, Stop Price: 150.93, Limit Price: 150.43\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $155.51, Target Price 1: $164.30\n\nStock: AVB\nCurrent Price: $233.55\nStop Price from get_stop(): $225.7\nTrailing Percentage (from difference): 3.36%\nSymbol: AVB, Quantity: 0.4665, Stop Price: 225.7, Limit Price: 225.2\nSkipping order for AVB because quantity to sell is less than 1.\nFirst target price not yet reached for AVB, setting stop loss order.\nCurrent Price: $233.55, Target Price 1: $246.89\n\nStock: DUK\nCurrent Price: $114.65\nStop Price from get_stop(): $113.01\nTrailing Percentage (from difference): 1.43%\nSymbol: DUK, Quantity: 4.03, Stop Price: 113.01, Limit Price: 112.51\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $114.65, Target Price 1: $120.62\n\nStock: IR\nCurrent Price: $104.82\nStop Price from get_stop(): $103.36\nTrailing Percentage (from difference): 1.39%\nSymbol: IR, Quantity: 0.21, Stop Price: 103.36, Limit Price: 102.86\nSkipping order for IR because quantity to sell is less than 1.\nFirst target price not yet reached for IR, setting stop loss order.\nCurrent Price: $104.82, Target Price 1: $108.58\n\nStock: AGCO\nCurrent Price: $103.27\nStop Price from get_stop(): $97.73\nTrailing Percentage (from difference): 5.36%\nSymbol: AGCO, Quantity: 0.52, Stop Price: 97.73, Limit Price: 97.23\nSkipping order for AGCO because quantity to sell is less than 1.\nFirst target price not yet reached for AGCO, setting stop loss order.\nCurrent Price: $103.27, Target Price 1: $106.42\n\nStock: ARE\nCurrent Price: $111.18\nStop Price from get_stop(): $107.46\nTrailing Percentage (from difference): 3.35%\nSymbol: ARE, Quantity: 3.29, Stop Price: 107.46, Limit Price: 106.96\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for ARE, setting stop loss order.\nCurrent Price: $111.18, Target Price 1: $117.12\n\nStock: AVGO\nCurrent Price: $164.6\nStop Price from get_stop(): $160.08\nTrailing Percentage (from difference): 2.75%\nSymbol: AVGO, Quantity: 0.37, Stop Price: 160.08, Limit Price: 159.58\nSkipping order for AVGO because quantity to sell is less than 1.\nFirst target price not yet reached for AVGO, setting stop loss order.\nCurrent Price: $164.60, Target Price 1: $192.90\n\nStock: BBY\nCurrent Price: $93.68\nStop Price from get_stop(): $88.58\nTrailing Percentage (from difference): 5.44%\nSymbol: BBY, Quantity: 3.9, Stop Price: 88.58, Limit Price: 88.08\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $93.68, Target Price 1: $98.70\n\nStock: SJM\nCurrent Price: $114.05\nStop Price from get_stop(): $110.89\nTrailing Percentage (from difference): 2.77%\nSymbol: SJM, Quantity: 0.08, Stop Price: 110.89, Limit Price: 110.39\nSkipping order for SJM because quantity to sell is less than 1.\nFirst target price not yet reached for SJM, setting stop loss order.\nCurrent Price: $114.05, Target Price 1: $119.03\n\nStock: OGN\nCurrent Price: $16.015\nStop Price from get_stop(): $15.14\nTrailing Percentage (from difference): 5.46%\nSymbol: OGN, Quantity: 0.98, Stop Price: 15.13, Limit Price: 14.63\nSkipping order for OGN because quantity to sell is less than 1.\nFirst target price not yet reached for OGN, setting stop loss order.\nCurrent Price: $16.02, Target Price 1: $18.96\n\nStock: DLTR\nCurrent Price: $70.19\nStop Price from get_stop(): $64.08\nTrailing Percentage (from difference): 8.70%\nSymbol: DLTR, Quantity: 0.85, Stop Price: 64.08, Limit Price: 63.58\nSkipping order for DLTR because quantity to sell is less than 1.\nFirst target price not yet reached for DLTR, setting stop loss order.\nCurrent Price: $70.19, Target Price 1: $70.45\n\nStock: CCS\nCurrent Price: $93.91\nStop Price from get_stop(): $86.12\nTrailing Percentage (from difference): 8.30%\nSymbol: CCS, Quantity: 0.21, Stop Price: 86.12, Limit Price: 85.62\nSkipping order for CCS because quantity to sell is less than 1.\nFirst target price not yet reached for CCS, setting stop loss order.\nCurrent Price: $93.91, Target Price 1: $94.78\n\nStock: HD\nCurrent Price: $425.36\nStop Price from get_stop(): $416.96\nTrailing Percentage (from difference): 1.97%\nSymbol: HD, Quantity: 1.13, Stop Price: 416.96, Limit Price: 416.46\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $425.36, Target Price 1: $430.94\n\nStock: NSC\nCurrent Price: $274.635\nStop Price from get_stop(): $262.02\nTrailing Percentage (from difference): 4.59%\nSymbol: NSC, Quantity: 1.33, Stop Price: 262.02, Limit Price: 261.52\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $274.63, Target Price 1: $289.08\n\nStock: LANC\nCurrent Price: $189.37\nStop Price from get_stop(): $185.18\nTrailing Percentage (from difference): 2.21%\nSymbol: LANC, Quantity: 1.93, Stop Price: 185.18, Limit Price: 184.68\nFirst target price not yet reached for LANC, setting stop loss order.\nCurrent Price: $189.37, Target Price 1: $199.46\n\nStock: SYY\nCurrent Price: $77.15\nStop Price from get_stop(): $74.29\nTrailing Percentage (from difference): 3.71%\nSymbol: SYY, Quantity: 4.75, Stop Price: 74.29, Limit Price: 73.79\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $77.15, Target Price 1: $81.09\n\nStock: IBM\nCurrent Price: $224.49\nStop Price from get_stop(): $221.58\nTrailing Percentage (from difference): 1.30%\nSymbol: IBM, Quantity: 2.08, Stop Price: 221.57, Limit Price: 221.07\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $224.49, Target Price 1: $233.83\n\nStock: ABBV\nCurrent Price: $177.6699\nStop Price from get_stop(): $175.48\nTrailing Percentage (from difference): 1.23%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 175.49, Limit Price: 174.99\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $177.67, Target Price 1: $186.89\n\nStock: KLAC\nCurrent Price: $637.3125\nStop Price from get_stop(): $617.98\nTrailing Percentage (from difference): 3.03%\nSymbol: KLAC, Quantity: 0.6363, Stop Price: 617.98, Limit Price: 617.48\nSkipping order for KLAC because quantity to sell is less than 1.\nFirst target price not yet reached for KLAC, setting stop loss order.\nCurrent Price: $637.31, Target Price 1: $718.16\n\nStock: ULTA\nCurrent Price: $358.2\nStop Price from get_stop(): $329.02\nTrailing Percentage (from difference): 8.15%\nSymbol: ULTA, Quantity: 0.49, Stop Price: 329.02, Limit Price: 328.52\nSkipping order for ULTA because quantity to sell is less than 1.\nFirst target price not yet reached for ULTA, setting stop loss order.\nCurrent Price: $358.20, Target Price 1: $393.87\n\nStock: JBHT\nCurrent Price: $188.125\nStop Price from get_stop(): $178.38\nTrailing Percentage (from difference): 5.18%\nSymbol: JBHT, Quantity: 1.94, Stop Price: 178.38, Limit Price: 177.88\nFirst target price not yet reached for JBHT, setting stop loss order.\nCurrent Price: $188.12, Target Price 1: $198.55\n\nStock: SLAB\nCurrent Price: $112.68\nStop Price from get_stop(): $105.24\nTrailing Percentage (from difference): 6.60%\nSymbol: SLAB, Quantity: 0.7, Stop Price: 105.25, Limit Price: 104.75\nSkipping order for SLAB because quantity to sell is less than 1.\nFirst target price not yet reached for SLAB, setting stop loss order.\nCurrent Price: $112.68, Target Price 1: $121.75\n\nStock: CCI\nCurrent Price: $106.13\nStop Price from get_stop(): $104.07\nTrailing Percentage (from difference): 1.94%\nSymbol: CCI, Quantity: 4.41, Stop Price: 104.07, Limit Price: 103.57\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $106.13, Target Price 1: $110.16\n\nStock: SWK\nCurrent Price: $92.19\nStop Price from get_stop(): $88.68\nTrailing Percentage (from difference): 3.81%\nSymbol: SWK, Quantity: 3.97, Stop Price: 88.67, Limit Price: 88.17\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $92.19, Target Price 1: $96.98\n\nStock: GL\nCurrent Price: $111.18\nStop Price from get_stop(): $109.61\nTrailing Percentage (from difference): 1.41%\nSymbol: GL, Quantity: 0.79, Stop Price: 109.61, Limit Price: 109.11\nSkipping order for GL because quantity to sell is less than 1.\nFirst target price not yet reached for GL, setting stop loss order.\nCurrent Price: $111.18, Target Price 1: $116.88\n\nStock: SNX\nCurrent Price: $121.935\nStop Price from get_stop(): $115.49\nTrailing Percentage (from difference): 5.29%\nSymbol: SNX, Quantity: 2.99, Stop Price: 115.49, Limit Price: 114.99\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $121.94, Target Price 1: $128.62\n\nStock: GWRE\nCurrent Price: $202.18\nStop Price from get_stop(): $195.88\nTrailing Percentage (from difference): 3.12%\nSymbol: GWRE, Quantity: 2.31, Stop Price: 195.88, Limit Price: 195.38\nFirst target price not yet reached for GWRE, setting stop loss order.\nCurrent Price: $202.18, Target Price 1: $210.37\n\nStock: O\nCurrent Price: $57.345\nStop Price from get_stop(): $56.67\nTrailing Percentage (from difference): 1.18%\nSymbol: O, Quantity: 8.05, Stop Price: 56.67, Limit Price: 56.17\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $57.34, Target Price 1: $60.35\n\nStock: AMT\nCurrent Price: $206.4287\nStop Price from get_stop(): $200.52\nTrailing Percentage (from difference): 2.86%\nSymbol: AMT, Quantity: 0.28, Stop Price: 200.52, Limit Price: 200.02\nSkipping order for AMT because quantity to sell is less than 1.\nFirst target price not yet reached for AMT, setting stop loss order.\nCurrent Price: $206.43, Target Price 1: $213.41\n\nStock: VRSN\nCurrent Price: $182.27\nStop Price from get_stop(): $174.48\nTrailing Percentage (from difference): 4.27%\nSymbol: VRSN, Quantity: 0.33, Stop Price: 174.48, Limit Price: 173.98\nSkipping order for VRSN because quantity to sell is less than 1.\nFirst target price not yet reached for VRSN, setting stop loss order.\nCurrent Price: $182.27, Target Price 1: $196.39\n\nStock: CMS\nCurrent Price: $69.565\nStop Price from get_stop(): $68.7\nTrailing Percentage (from difference): 1.24%\nSymbol: CMS, Quantity: 6.7, Stop Price: 68.7, Limit Price: 68.2\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $69.56, Target Price 1: $72.56\n\nStock: DFS\nCurrent Price: $182.84\nStop Price from get_stop(): $177.74\nTrailing Percentage (from difference): 2.79%\nSymbol: DFS, Quantity: 2.0, Stop Price: 177.74, Limit Price: 177.24\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $182.84, Target Price 1: $192.07\n\nStock: ETN\nCurrent Price: $373.925\nStop Price from get_stop(): $366.08\nTrailing Percentage (from difference): 2.10%\nSymbol: ETN, Quantity: 0.2982, Stop Price: 366.08, Limit Price: 365.58\nSkipping order for ETN because quantity to sell is less than 1.\nFirst target price not yet reached for ETN, setting stop loss order.\nCurrent Price: $373.93, Target Price 1: $386.20\n\nStock: CTVA\nCurrent Price: $62.58\nStop Price from get_stop(): $60.83\nTrailing Percentage (from difference): 2.80%\nSymbol: CTVA, Quantity: 7.58, Stop Price: 60.83, Limit Price: 60.33\nFirst target price not yet reached for CTVA, setting stop loss order.\nCurrent Price: $62.58, Target Price 1: $64.11\n\nStock: AJG\nCurrent Price: $303.65\nStop Price from get_stop(): $295.64\nTrailing Percentage (from difference): 2.64%\nSymbol: AJG, Quantity: 1.49, Stop Price: 295.64, Limit Price: 295.14\nFirst target price not yet reached for AJG, setting stop loss order.\nCurrent Price: $303.65, Target Price 1: $306.02\n\nStock: CNS\nCurrent Price: $105.22\nStop Price from get_stop(): $101.1\nTrailing Percentage (from difference): 3.92%\nSymbol: CNS, Quantity: 0.06, Stop Price: 101.1, Limit Price: 100.6\nSkipping order for CNS because quantity to sell is less than 1.\nFirst target price not yet reached for CNS, setting stop loss order.\nCurrent Price: $105.22, Target Price 1: $108.78\n\nStock: ACGL\nCurrent Price: $99.545\nStop Price from get_stop(): $96.52\nTrailing Percentage (from difference): 3.04%\nSymbol: ACGL, Quantity: 0.07, Stop Price: 96.52, Limit Price: 96.02\nSkipping order for ACGL because quantity to sell is less than 1.\nFirst target price not yet reached for ACGL, setting stop loss order.\nCurrent Price: $99.55, Target Price 1: $107.17\n\nStock: OTTR\nCurrent Price: $82.79\nStop Price from get_stop(): $79.22\nTrailing Percentage (from difference): 4.31%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 79.22, Limit Price: 78.72\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $82.79, Target Price 1: $87.14\n\nStock: CTLT\nCurrent Price: $61.0\nStop Price from get_stop(): $60.51\nTrailing Percentage (from difference): 0.80%\nSymbol: CTLT, Quantity: 0.26, Stop Price: 60.51, Limit Price: 60.01\nSkipping order for CTLT because quantity to sell is less than 1.\nFirst target price not yet reached for CTLT, setting stop loss order.\nCurrent Price: $61.00, Target Price 1: $62.99\n\nStock: EXR\nCurrent Price: $172.61\nStop Price from get_stop(): $165.58\nTrailing Percentage (from difference): 4.07%\nSymbol: EXR, Quantity: 0.6535, Stop Price: 165.58, Limit Price: 165.08\nSkipping order for EXR because quantity to sell is less than 1.\nFirst target price not yet reached for EXR, setting stop loss order.\nCurrent Price: $172.61, Target Price 1: $176.18\n\nStock: BHP\nCurrent Price: $52.4\nStop Price from get_stop(): $51.04\nTrailing Percentage (from difference): 2.60%\nSymbol: BHP, Quantity: 0.54, Stop Price: 51.04, Limit Price: 50.54\nSkipping order for BHP because quantity to sell is less than 1.\nFirst target price not yet reached for BHP, setting stop loss order.\nCurrent Price: $52.40, Target Price 1: $60.63\n\nStock: MXL\nCurrent Price: $15.85\nStop Price from get_stop(): $15.37\nTrailing Percentage (from difference): 3.03%\nFirst target price reached for MXL, Current Price: $15.85, with a gain of 5.49%.\nDue to low initial funding, the entire position in this stock has been sold for profit.\n\nStock: EQIX\nCurrent Price: $944.295\nStop Price from get_stop(): $910.21\nTrailing Percentage (from difference): 3.61%\nSymbol: EQIX, Quantity: 0.5, Stop Price: 910.21, Limit Price: 909.71\nSkipping order for EQIX because quantity to sell is less than 1.\nFirst target price not yet reached for EQIX, setting stop loss order.\nCurrent Price: $944.29, Target Price 1: $971.84\n\nStock: ADC\nCurrent Price: $76.745\nStop Price from get_stop(): $74.89\nTrailing Percentage (from difference): 2.42%\nSymbol: ADC, Quantity: 0.45, Stop Price: 74.89, Limit Price: 74.39\nSkipping order for ADC because quantity to sell is less than 1.\nFirst target price not yet reached for ADC, setting stop loss order.\nCurrent Price: $76.75, Target Price 1: $79.21\n\nStock: AIN\nCurrent Price: $86.67\nStop Price from get_stop(): $83.98\nTrailing Percentage (from difference): 3.10%\nSymbol: AIN, Quantity: 0.46, Stop Price: 83.98, Limit Price: 83.48\nSkipping order for AIN because quantity to sell is less than 1.\nFirst target price not yet reached for AIN, setting stop loss order.\nCurrent Price: $86.67, Target Price 1: $92.80\n\nStock: ALL\nCurrent Price: $203.2525\nStop Price from get_stop(): $199.08\nTrailing Percentage (from difference): 2.05%\nSymbol: ALL, Quantity: 0.557, Stop Price: 199.08, Limit Price: 198.58\nSkipping order for ALL because quantity to sell is less than 1.\nFirst target price not yet reached for ALL, setting stop loss order.\nCurrent Price: $203.25, Target Price 1: $206.78\n\nStock: BYD\nCurrent Price: $73.71\nStop Price from get_stop(): $70.07\nTrailing Percentage (from difference): 4.94%\nSymbol: BYD, Quantity: 4.95, Stop Price: 70.07, Limit Price: 69.57\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $73.71, Target Price 1: $77.83\n\nStock: EFX\nCurrent Price: $266.82\nStop Price from get_stop(): $249.74\nTrailing Percentage (from difference): 6.40%\nSymbol: EFX, Quantity: 0.403, Stop Price: 249.74, Limit Price: 249.24\nSkipping order for EFX because quantity to sell is less than 1.\nFirst target price not yet reached for EFX, setting stop loss order.\nCurrent Price: $266.82, Target Price 1: $285.77\n\nStock: TMDX\nCurrent Price: $76.675\nStop Price from get_stop(): $74.78\nTrailing Percentage (from difference): 2.47%\nSymbol: TMDX, Quantity: 0.25, Stop Price: 74.78, Limit Price: 74.28\nSkipping order for TMDX because quantity to sell is less than 1.\nFirst target price not yet reached for TMDX, setting stop loss order.\nCurrent Price: $76.67, Target Price 1: $96.17\n\nStock: ANIP\nCurrent Price: $58.25\nStop Price from get_stop(): $54.96\nTrailing Percentage (from difference): 5.65%\nSymbol: ANIP, Quantity: 0.31, Stop Price: 54.96, Limit Price: 54.46\nSkipping order for ANIP because quantity to sell is less than 1.\nFirst target price not yet reached for ANIP, setting stop loss order.\nCurrent Price: $58.25, Target Price 1: $62.12\n\nStock: HXL\nCurrent Price: $62.93\nStop Price from get_stop(): $60.62\nTrailing Percentage (from difference): 3.67%\nSymbol: HXL, Quantity: 5.82, Stop Price: 60.62, Limit Price: 60.12\nFirst target price not yet reached for HXL, setting stop loss order.\nCurrent Price: $62.93, Target Price 1: $66.09\n\nStock: EXPO\nCurrent Price: $100.62\nStop Price from get_stop(): $97.36\nTrailing Percentage (from difference): 3.24%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 97.37, Limit Price: 96.87\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $100.62, Target Price 1: $106.01\n\nStock: FCX\nCurrent Price: $44.255\nStop Price from get_stop(): $43.04\nTrailing Percentage (from difference): 2.75%\nSymbol: FCX, Quantity: 8.98, Stop Price: 43.04, Limit Price: 42.54\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $44.26, Target Price 1: $50.90\n\nStock: AZN\nCurrent Price: $66.0606\nStop Price from get_stop(): $64.56\nTrailing Percentage (from difference): 2.27%\nSymbol: AZN, Quantity: 5.54, Stop Price: 64.56, Limit Price: 64.06\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $66.06, Target Price 1: $69.50\n\nStock: EL\nCurrent Price: $73.09\nStop Price from get_stop(): $68.78\nTrailing Percentage (from difference): 5.90%\nFirst target price reached for EL, setting stop loss order for half at $72.23.\nCurrent Price: $73.09, Target Price 1: $70.13\n\nStock: DOX\nCurrent Price: $87.04\nStop Price from get_stop(): $83.96\nTrailing Percentage (from difference): 3.54%\nSymbol: DOX, Quantity: 0.71, Stop Price: 83.96, Limit Price: 83.46\nSkipping order for DOX because quantity to sell is less than 1.\nFirst target price not yet reached for DOX, setting stop loss order.\nCurrent Price: $87.04, Target Price 1: $97.07\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: PEP\nCurrent Price: $162.495\nStop Price from get_stop(): $158.06\nTrailing Percentage (from difference): 2.73%\nSymbol: PEP, Quantity: 2.25, Stop Price: 158.06, Limit Price: 157.56\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $162.50, Target Price 1: $170.78\n\nStock: FFIV\nCurrent Price: $249.0\nStop Price from get_stop(): $242.64\nTrailing Percentage (from difference): 2.55%\nSymbol: FFIV, Quantity: 0.4516, Stop Price: 242.64, Limit Price: 242.14\nSkipping order for FFIV because quantity to sell is less than 1.\nFirst target price not yet reached for FFIV, setting stop loss order.\nCurrent Price: $249.00, Target Price 1: $254.95\n\nStock: HPE\nCurrent Price: $22.13\nStop Price from get_stop(): $21.95\nTrailing Percentage (from difference): 0.81%\nSymbol: HPE, Quantity: 0.17, Stop Price: 21.95, Limit Price: 21.45\nSkipping order for HPE because quantity to sell is less than 1.\nFirst target price not yet reached for HPE, setting stop loss order.\nCurrent Price: $22.13, Target Price 1: $22.67\n\nStock: STT\nCurrent Price: $98.79\nStop Price from get_stop(): $95.24\nTrailing Percentage (from difference): 3.59%\nSymbol: STT, Quantity: 3.7, Stop Price: 95.24, Limit Price: 94.74\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $98.79, Target Price 1: $103.89\n\nStock: EQR\nCurrent Price: $76.52\nStop Price from get_stop(): $73.35\nTrailing Percentage (from difference): 4.14%\nSymbol: EQR, Quantity: 0.49, Stop Price: 73.35, Limit Price: 72.85\nSkipping order for EQR because quantity to sell is less than 1.\nFirst target price not yet reached for EQR, setting stop loss order.\nCurrent Price: $76.52, Target Price 1: $77.36\n\nStock: KKR\nCurrent Price: $158.64\nStop Price from get_stop(): $154.53\nTrailing Percentage (from difference): 2.59%\nSymbol: KKR, Quantity: 2.92, Stop Price: 154.53, Limit Price: 154.03\nFirst target price not yet reached for KKR, setting stop loss order.\nCurrent Price: $158.64, Target Price 1: $166.22\n\nStock: UDR\nCurrent Price: $45.455\nStop Price from get_stop(): $44.42\nTrailing Percentage (from difference): 2.28%\nSymbol: UDR, Quantity: 0.47, Stop Price: 44.42, Limit Price: 43.92\nSkipping order for UDR because quantity to sell is less than 1.\nFirst target price not yet reached for UDR, setting stop loss order.\nCurrent Price: $45.45, Target Price 1: $46.72\n\nStock: AOS\nCurrent Price: $75.46\nStop Price from get_stop(): $72.21\nTrailing Percentage (from difference): 4.31%\nSymbol: AOS, Quantity: 4.85, Stop Price: 72.21, Limit Price: 71.71\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $75.46, Target Price 1: $79.37\n\nStock: ASH\nCurrent Price: $80.57\nStop Price from get_stop(): $76.38\nTrailing Percentage (from difference): 5.20%\nSymbol: ASH, Quantity: 4.53, Stop Price: 76.38, Limit Price: 75.88\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $80.57, Target Price 1: $85.00\n\nStock: MHK\nCurrent Price: $146.18\nStop Price from get_stop(): $136.44\nTrailing Percentage (from difference): 6.66%\nSymbol: MHK, Quantity: 0.7502, Stop Price: 136.44, Limit Price: 135.94\nSkipping order for MHK because quantity to sell is less than 1.\nFirst target price not yet reached for MHK, setting stop loss order.\nCurrent Price: $146.18, Target Price 1: $153.51\n\nStock: AIG\nCurrent Price: $76.525\nStop Price from get_stop(): $74.26\nTrailing Percentage (from difference): 2.96%\nSymbol: AIG, Quantity: 0.32, Stop Price: 74.26, Limit Price: 73.76\nSkipping order for AIG because quantity to sell is less than 1.\nFirst target price not yet reached for AIG, setting stop loss order.\nCurrent Price: $76.53, Target Price 1: $77.78\n\nStock: LYB\nCurrent Price: $84.875\nStop Price from get_stop(): $83.32\nTrailing Percentage (from difference): 1.83%\nSymbol: LYB, Quantity: 4.31, Stop Price: 83.32, Limit Price: 82.82\nFirst target price not yet reached for LYB, setting stop loss order.\nCurrent Price: $84.88, Target Price 1: $89.27\n\nStock: ROKU\nCurrent Price: $68.74\nStop Price from get_stop(): $68.46\nTrailing Percentage (from difference): 0.41%\nSymbol: ROKU, Quantity: 0.78, Stop Price: 68.45, Limit Price: 67.95\nSkipping order for ROKU because quantity to sell is less than 1.\nFirst target price not yet reached for ROKU, setting stop loss order.\nCurrent Price: $68.74, Target Price 1: $81.10\n\nStock: BERY\nCurrent Price: $72.325\nStop Price from get_stop(): $70.94\nTrailing Percentage (from difference): 1.91%\nFirst target price reached for BERY, setting stop loss order for half at $72.05.\nCurrent Price: $72.33, Target Price 1: $72.20\n\nStock: PPG\nCurrent Price: $125.55\nStop Price from get_stop(): $120.84\nTrailing Percentage (from difference): 3.75%\nSymbol: PPG, Quantity: 0.2983, Stop Price: 120.84, Limit Price: 120.34\nSkipping order for PPG because quantity to sell is less than 1.\nFirst target price not yet reached for PPG, setting stop loss order.\nCurrent Price: $125.55, Target Price 1: $132.97\n\nStock: URI\nCurrent Price: $861.465\nStop Price from get_stop(): $829.52\nTrailing Percentage (from difference): 3.71%\nSymbol: URI, Quantity: 0.1247, Stop Price: 829.52, Limit Price: 829.02\nSkipping order for URI because quantity to sell is less than 1.\nFirst target price not yet reached for URI, setting stop loss order.\nCurrent Price: $861.47, Target Price 1: $923.88\n\nStock: VTI\nCurrent Price: $297.4913\nStop Price from get_stop(): $293.63\nTrailing Percentage (from difference): 1.30%\nSymbol: VTI, Quantity: 0.47, Stop Price: 293.63, Limit Price: 293.13\nSkipping order for VTI because quantity to sell is less than 1.\nFirst target price not yet reached for VTI, setting stop loss order.\nCurrent Price: $297.49, Target Price 1: $310.27\n\nStock: TM\nCurrent Price: $175.61\nStop Price from get_stop(): $170.73\nTrailing Percentage (from difference): 2.78%\nSymbol: TM, Quantity: 2.14, Stop Price: 170.73, Limit Price: 170.23\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $175.61, Target Price 1: $193.32\n\nStock: SSNC\nCurrent Price: $77.31\nStop Price from get_stop(): $74.0\nTrailing Percentage (from difference): 4.28%\nSymbol: SSNC, Quantity: 0.63, Stop Price: 74.0, Limit Price: 73.5\nSkipping order for SSNC because quantity to sell is less than 1.\nFirst target price not yet reached for SSNC, setting stop loss order.\nCurrent Price: $77.31, Target Price 1: $79.82\n\nStock: AMCR\nCurrent Price: $10.5733\nStop Price from get_stop(): $10.28\nTrailing Percentage (from difference): 2.77%\nSymbol: AMCR, Quantity: 0.56, Stop Price: 10.28, Limit Price: 9.78\nSkipping order for AMCR because quantity to sell is less than 1.\nFirst target price not yet reached for AMCR, setting stop loss order.\nCurrent Price: $10.57, Target Price 1: $10.90\n\nStock: XLB\nCurrent Price: $95.04\nStop Price from get_stop(): $92.76\nTrailing Percentage (from difference): 2.40%\nSymbol: XLB, Quantity: 3.85, Stop Price: 92.76, Limit Price: 92.26\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $95.04, Target Price 1: $99.95\n\nStock: CNQ\nCurrent Price: $34.04\nStop Price from get_stop(): $33.66\nTrailing Percentage (from difference): 1.12%\nSymbol: CNQ, Quantity: 0.49, Stop Price: 33.66, Limit Price: 33.16\nSkipping order for CNQ because quantity to sell is less than 1.\nFirst target price not yet reached for CNQ, setting stop loss order.\nCurrent Price: $34.04, Target Price 1: $36.61\n\nStock: MMC\nCurrent Price: $229.8\nStop Price from get_stop(): $220.35\nTrailing Percentage (from difference): 4.11%\nSymbol: MMC, Quantity: 0.4855, Stop Price: 220.35, Limit Price: 219.85\nSkipping order for MMC because quantity to sell is less than 1.\nFirst target price not yet reached for MMC, setting stop loss order.\nCurrent Price: $229.80, Target Price 1: $237.21\n\nStock: PKG\nCurrent Price: $247.52\nStop Price from get_stop(): $241.58\nTrailing Percentage (from difference): 2.40%\nSymbol: PKG, Quantity: 1.48, Stop Price: 241.58, Limit Price: 241.08\nFirst target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $247.52, Target Price 1: $260.44\n\nStock: VTV\nCurrent Price: $181.086\nStop Price from get_stop(): $177.63\nTrailing Percentage (from difference): 1.91%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 177.63, Limit Price: 177.13\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $181.09, Target Price 1: $188.13\n\nStock: SBUX\nCurrent Price: $102.605\nStop Price from get_stop(): $101.58\nTrailing Percentage (from difference): 1.00%\nSymbol: SBUX, Quantity: 3.57, Stop Price: 101.58, Limit Price: 101.08\nFirst target price not yet reached for SBUX, setting stop loss order.\nCurrent Price: $102.61, Target Price 1: $107.82\n\nStock: VO\nCurrent Price: $283.8743\nStop Price from get_stop(): $278.02\nTrailing Percentage (from difference): 2.06%\nSymbol: VO, Quantity: 0.58, Stop Price: 278.02, Limit Price: 277.52\nSkipping order for VO because quantity to sell is less than 1.\nFirst target price not yet reached for VO, setting stop loss order.\nCurrent Price: $283.87, Target Price 1: $288.55\n\nStock: WELL\nCurrent Price: $136.31\nStop Price from get_stop(): $135.12\nTrailing Percentage (from difference): 0.87%\nSymbol: WELL, Quantity: 0.7875, Stop Price: 135.12, Limit Price: 134.62\nSkipping order for WELL because quantity to sell is less than 1.\nFirst target price not yet reached for WELL, setting stop loss order.\nCurrent Price: $136.31, Target Price 1: $146.26\n\nStock: XLI\nCurrent Price: $143.155\nStop Price from get_stop(): $139.45\nTrailing Percentage (from difference): 2.59%\nSymbol: XLI, Quantity: 2.56, Stop Price: 139.45, Limit Price: 138.95\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $143.16, Target Price 1: $150.51\n\nStock: EBAY\nCurrent Price: $65.2936\nStop Price from get_stop(): $62.66\nTrailing Percentage (from difference): 4.03%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 62.66, Limit Price: 62.16\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $65.29, Target Price 1: $68.59\n\nStock: ES\nCurrent Price: $63.7\nStop Price from get_stop(): $61.61\nTrailing Percentage (from difference): 3.28%\nSymbol: ES, Quantity: 7.41, Stop Price: 61.61, Limit Price: 61.11\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $63.70, Target Price 1: $65.57\n\nStock: CBT\nCurrent Price: $113.93\nStop Price from get_stop(): $107.28\nTrailing Percentage (from difference): 5.84%\nSymbol: CBT, Quantity: 3.2, Stop Price: 107.28, Limit Price: 106.78\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $113.93, Target Price 1: $120.13\n\nStock: PRGS\nCurrent Price: $70.03\nStop Price from get_stop(): $67.8\nTrailing Percentage (from difference): 3.18%\nSymbol: PRGS, Quantity: 0.22, Stop Price: 67.8, Limit Price: 67.3\nSkipping order for PRGS because quantity to sell is less than 1.\nFirst target price not yet reached for PRGS, setting stop loss order.\nCurrent Price: $70.03, Target Price 1: $73.77\n\nStock: OMAB\nCurrent Price: $66.41\nStop Price from get_stop(): $63.73\nTrailing Percentage (from difference): 4.04%\nSymbol: OMAB, Quantity: 0.91, Stop Price: 63.73, Limit Price: 63.23\nSkipping order for OMAB because quantity to sell is less than 1.\nFirst target price not yet reached for OMAB, setting stop loss order.\nCurrent Price: $66.41, Target Price 1: $70.04\n\nStock: XLK\nCurrent Price: $233.275\nStop Price from get_stop(): $230.44\nTrailing Percentage (from difference): 1.22%\nSymbol: XLK, Quantity: 0.84, Stop Price: 230.44, Limit Price: 229.94\nSkipping order for XLK because quantity to sell is less than 1.\nFirst target price not yet reached for XLK, setting stop loss order.\nCurrent Price: $233.28, Target Price 1: $243.99\n\nStock: XLV\nCurrent Price: $145.31\nStop Price from get_stop(): $142.75\nTrailing Percentage (from difference): 1.76%\nSymbol: XLV, Quantity: 0.728, Stop Price: 142.75, Limit Price: 142.25\nSkipping order for XLV because quantity to sell is less than 1.\nFirst target price not yet reached for XLV, setting stop loss order.\nCurrent Price: $145.31, Target Price 1: $158.24\n\nStock: LIVN\nCurrent Price: $52.42\nStop Price from get_stop(): $50.98\nTrailing Percentage (from difference): 2.75%\nSymbol: LIVN, Quantity: 0.29, Stop Price: 50.98, Limit Price: 50.48\nSkipping order for LIVN because quantity to sell is less than 1.\nFirst target price not yet reached for LIVN, setting stop loss order.\nCurrent Price: $52.42, Target Price 1: $55.80\n\nStock: WM\nCurrent Price: $226.04\nStop Price from get_stop(): $219.35\nTrailing Percentage (from difference): 2.96%\nSymbol: WM, Quantity: 3.7, Stop Price: 219.35, Limit Price: 218.85\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $226.04, Target Price 1: $235.06\n\nStock: ANET\nCurrent Price: $397.4403\nStop Price from get_stop(): $392.56\nTrailing Percentage (from difference): 1.23%\nSymbol: ANET, Quantity: 0.02, Stop Price: 392.56, Limit Price: 392.06\nSkipping order for ANET because quantity to sell is less than 1.\nFirst target price not yet reached for ANET, setting stop loss order.\nCurrent Price: $397.44, Target Price 1: $450.30\n\nStock: POWI\nCurrent Price: $67.295\nStop Price from get_stop(): $63.23\nTrailing Percentage (from difference): 6.04%\nSymbol: POWI, Quantity: 0.28, Stop Price: 63.23, Limit Price: 62.73\nSkipping order for POWI because quantity to sell is less than 1.\nFirst target price not yet reached for POWI, setting stop loss order.\nCurrent Price: $67.30, Target Price 1: $67.51\n\nStock: MSCI\nCurrent Price: $595.575\nStop Price from get_stop(): $585.83\nTrailing Percentage (from difference): 1.64%\nSymbol: MSCI, Quantity: 0.1852, Stop Price: 585.83, Limit Price: 585.33\nSkipping order for MSCI because quantity to sell is less than 1.\nFirst target price not yet reached for MSCI, setting stop loss order.\nCurrent Price: $595.58, Target Price 1: $621.73\n\nStock: PCAR\nCurrent Price: $115.82\nStop Price from get_stop(): $111.7\nTrailing Percentage (from difference): 3.56%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 111.7, Limit Price: 111.2\nFirst target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $115.82, Target Price 1: $121.82\n\nStock: EHC\nCurrent Price: $101.63\nStop Price from get_stop(): $100.43\nTrailing Percentage (from difference): 1.18%\nSymbol: EHC, Quantity: 3.62, Stop Price: 100.43, Limit Price: 99.93\nFirst target price not yet reached for EHC, setting stop loss order.\nCurrent Price: $101.63, Target Price 1: $106.39\n\nStock: JCI\nCurrent Price: $83.91\nStop Price from get_stop(): $82.04\nTrailing Percentage (from difference): 2.23%\nSymbol: JCI, Quantity: 0.3, Stop Price: 82.04, Limit Price: 81.54\nSkipping order for JCI because quantity to sell is less than 1.\nFirst target price not yet reached for JCI, setting stop loss order.\nCurrent Price: $83.91, Target Price 1: $86.18\n\nStock: POOL\nCurrent Price: $389.54\nStop Price from get_stop(): $357.98\nTrailing Percentage (from difference): 8.10%\nSymbol: POOL, Quantity: 0.17, Stop Price: 357.98, Limit Price: 357.48\nSkipping order for POOL because quantity to sell is less than 1.\nFirst target price not yet reached for POOL, setting stop loss order.\nCurrent Price: $389.54, Target Price 1: $391.65\n\nStock: STX\nCurrent Price: $101.96\nStop Price from get_stop(): $97.58\nTrailing Percentage (from difference): 4.30%\nSymbol: STX, Quantity: 3.58, Stop Price: 97.58, Limit Price: 97.08\nFirst target price not yet reached for STX, setting stop loss order.\nCurrent Price: $101.96, Target Price 1: $107.39\n\nStock: USB\nCurrent Price: $53.31\nStop Price from get_stop(): $52.08\nTrailing Percentage (from difference): 2.31%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.08, Limit Price: 51.58\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.31, Target Price 1: $54.34\n\nStock: AYI\nCurrent Price: $333.67\nStop Price from get_stop(): $324.2\nTrailing Percentage (from difference): 2.84%\nSymbol: AYI, Quantity: 0.33, Stop Price: 324.2, Limit Price: 323.7\nSkipping order for AYI because quantity to sell is less than 1.\nFirst target price not yet reached for AYI, setting stop loss order.\nCurrent Price: $333.67, Target Price 1: $342.53\n\nStock: SJW\nCurrent Price: $56.09\nStop Price from get_stop(): $54.53\nTrailing Percentage (from difference): 2.78%\nSymbol: SJW, Quantity: 8.38, Stop Price: 54.53, Limit Price: 54.03\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $56.09, Target Price 1: $58.02\n\nStock: VC\nCurrent Price: $95.81\nStop Price from get_stop(): $91.37\nTrailing Percentage (from difference): 4.63%\nSymbol: VC, Quantity: 0.1, Stop Price: 91.37, Limit Price: 90.87\nSkipping order for VC because quantity to sell is less than 1.\nFirst target price not yet reached for VC, setting stop loss order.\nCurrent Price: $95.81, Target Price 1: $97.66\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: PAC\nCurrent Price: $185.94\nStop Price from get_stop(): $185.92\nTrailing Percentage (from difference): 0.01%\nSymbol: PAC, Quantity: 0.39, Stop Price: 185.92, Limit Price: 185.42\nSkipping order for PAC because quantity to sell is less than 1.\nFirst target price not yet reached for PAC, setting stop loss order.\nCurrent Price: $185.94, Target Price 1: $190.70\n\nStock: BRC\nCurrent Price: $74.88\nStop Price from get_stop(): $72.3\nTrailing Percentage (from difference): 3.45%\nSymbol: BRC, Quantity: 4.88, Stop Price: 72.3, Limit Price: 71.8\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $74.88, Target Price 1: $78.80\n\nStock: IAC\nCurrent Price: $49.05\nStop Price from get_stop(): $48.12\nTrailing Percentage (from difference): 1.90%\nSymbol: IAC, Quantity: 0.99, Stop Price: 48.12, Limit Price: 47.62\nSkipping order for IAC because quantity to sell is less than 1.\nFirst target price not yet reached for IAC, setting stop loss order.\nCurrent Price: $49.05, Target Price 1: $57.13\n\nStock: MANH\nCurrent Price: $287.06\nStop Price from get_stop(): $277.33\nTrailing Percentage (from difference): 3.39%\nSymbol: MANH, Quantity: 2.66, Stop Price: 277.33, Limit Price: 276.83\nFirst target price not yet reached for MANH, setting stop loss order.\nCurrent Price: $287.06, Target Price 1: $298.48\n\nStock: KMI\nCurrent Price: $27.7199\nStop Price from get_stop(): $28.1\nTrailing Percentage (from difference): -1.37%\nSymbol: KMI, Quantity: 1.08, Stop Price: 28.1, Limit Price: 27.6\nFirst target price not yet reached for KMI, setting stop loss order.\nCurrent Price: $27.72, Target Price 1: $28.20\n\nStock: MSA\nCurrent Price: $176.22\nStop Price from get_stop(): $170.41\nTrailing Percentage (from difference): 3.30%\nSymbol: MSA, Quantity: 2.08, Stop Price: 170.41, Limit Price: 169.91\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $176.22, Target Price 1: $185.37\n\nStock: RPM\nCurrent Price: $140.42\nStop Price from get_stop(): $135.11\nTrailing Percentage (from difference): 3.78%\nSymbol: RPM, Quantity: 0.8118, Stop Price: 135.11, Limit Price: 134.61\nSkipping order for RPM because quantity to sell is less than 1.\nFirst target price not yet reached for RPM, setting stop loss order.\nCurrent Price: $140.42, Target Price 1: $141.89\n\nStock: ICLR\nCurrent Price: $218.13\nStop Price from get_stop(): $212.38\nTrailing Percentage (from difference): 2.64%\nSymbol: ICLR, Quantity: 0.67, Stop Price: 212.38, Limit Price: 211.88\nSkipping order for ICLR because quantity to sell is less than 1.\nFirst target price not yet reached for ICLR, setting stop loss order.\nCurrent Price: $218.13, Target Price 1: $312.97\n\nStock: PANW\nCurrent Price: $385.295\nStop Price from get_stop(): $378.86\nTrailing Percentage (from difference): 1.67%\nSymbol: PANW, Quantity: 0.13, Stop Price: 378.87, Limit Price: 378.37\nSkipping order for PANW because quantity to sell is less than 1.\nFirst target price not yet reached for PANW, setting stop loss order.\nCurrent Price: $385.30, Target Price 1: $405.52\n\nStock: NTAP\nCurrent Price: $124.71\nStop Price from get_stop(): $119.58\nTrailing Percentage (from difference): 4.11%\nSymbol: NTAP, Quantity: 0.877, Stop Price: 119.58, Limit Price: 119.08\nSkipping order for NTAP because quantity to sell is less than 1.\nFirst target price not yet reached for NTAP, setting stop loss order.\nCurrent Price: $124.71, Target Price 1: $131.33\n\nStock: LFUS\nCurrent Price: $253.28\nStop Price from get_stop(): $241.96\nTrailing Percentage (from difference): 4.47%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 241.97, Limit Price: 241.47\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $253.28, Target Price 1: $266.53\n\nStock: TEL\nCurrent Price: $154.09\nStop Price from get_stop(): $150.87\nTrailing Percentage (from difference): 2.09%\nSymbol: TEL, Quantity: 0.64, Stop Price: 150.87, Limit Price: 150.37\nSkipping order for TEL because quantity to sell is less than 1.\nFirst target price not yet reached for TEL, setting stop loss order.\nCurrent Price: $154.09, Target Price 1: $156.80\n\nStock: LRCX\nCurrent Price: $73.38\nStop Price from get_stop(): $72.18\nTrailing Percentage (from difference): 1.64%\nSymbol: LRCX, Quantity: 0.35, Stop Price: 72.19, Limit Price: 71.69\nSkipping order for LRCX because quantity to sell is less than 1.\nFirst target price not yet reached for LRCX, setting stop loss order.\nCurrent Price: $73.38, Target Price 1: $83.07\n\nStock: VNQ\nCurrent Price: $97.35\nStop Price from get_stop(): $95.28\nTrailing Percentage (from difference): 2.13%\nSymbol: VNQ, Quantity: 0.84, Stop Price: 95.28, Limit Price: 94.78\nSkipping order for VNQ because quantity to sell is less than 1.\nFirst target price not yet reached for VNQ, setting stop loss order.\nCurrent Price: $97.35, Target Price 1: $101.51\n\nStock: EPC\nCurrent Price: $37.1\nStop Price from get_stop(): $35.68\nTrailing Percentage (from difference): 3.83%\nSymbol: EPC, Quantity: 0.96, Stop Price: 35.69, Limit Price: 35.19\nSkipping order for EPC because quantity to sell is less than 1.\nFirst target price not yet reached for EPC, setting stop loss order.\nCurrent Price: $37.10, Target Price 1: $38.14\n\nStock: FWRD\nCurrent Price: $36.335\nStop Price from get_stop(): $35.67\nTrailing Percentage (from difference): 1.83%\nSymbol: FWRD, Quantity: 0.8, Stop Price: 35.67, Limit Price: 35.17\nSkipping order for FWRD because quantity to sell is less than 1.\nFirst target price not yet reached for FWRD, setting stop loss order.\nCurrent Price: $36.34, Target Price 1: $39.40\n\nStock: BLK\nCurrent Price: $1040.41\nStop Price from get_stop(): $1015.47\nTrailing Percentage (from difference): 2.40%\nSymbol: BLK, Quantity: 0.4182, Stop Price: 1015.47, Limit Price: 1014.97\nSkipping order for BLK because quantity to sell is less than 1.\nFirst target price not yet reached for BLK, setting stop loss order.\nCurrent Price: $1040.41, Target Price 1: $1092.64\n\nStock: ICFI\nCurrent Price: $135.33\nStop Price from get_stop(): $130.71\nTrailing Percentage (from difference): 3.41%\nSymbol: ICFI, Quantity: 0.55, Stop Price: 130.71, Limit Price: 130.21\nSkipping order for ICFI because quantity to sell is less than 1.\nFirst target price not yet reached for ICFI, setting stop loss order.\nCurrent Price: $135.33, Target Price 1: $179.24\n\nStock: SPG\nCurrent Price: $181.225\nStop Price from get_stop(): $176.96\nTrailing Percentage (from difference): 2.35%\nSymbol: SPG, Quantity: 3.0942, Stop Price: 176.96, Limit Price: 176.46\nFirst target price not yet reached for SPG, setting stop loss order.\nCurrent Price: $181.22, Target Price 1: $184.70\n\nStock: ST\nCurrent Price: $33.55\nStop Price from get_stop(): $31.54\nTrailing Percentage (from difference): 5.99%\nSymbol: ST, Quantity: 0.91, Stop Price: 31.54, Limit Price: 31.04\nSkipping order for ST because quantity to sell is less than 1.\nFirst target price not yet reached for ST, setting stop loss order.\nCurrent Price: $33.55, Target Price 1: $35.39\n\nStock: TDY\nCurrent Price: $477.125\nStop Price from get_stop(): $477.72\nTrailing Percentage (from difference): -0.12%\nSymbol: TDY, Quantity: 0.9035, Stop Price: 477.72, Limit Price: 477.22\nSkipping order for TDY because quantity to sell is less than 1.\nFirst target price not yet reached for TDY, setting stop loss order.\nCurrent Price: $477.12, Target Price 1: $505.45\n\nStock: VUG\nCurrent Price: $403.708\nStop Price from get_stop(): $399.8\nTrailing Percentage (from difference): 0.97%\nSymbol: VUG, Quantity: 1.07, Stop Price: 399.8, Limit Price: 399.3\nFirst target price not yet reached for VUG, setting stop loss order.\nCurrent Price: $403.71, Target Price 1: $426.86\n\nStock: LUV\nCurrent Price: $32.365\nStop Price from get_stop(): $31.24\nTrailing Percentage (from difference): 3.48%\nSymbol: LUV, Quantity: 0.47, Stop Price: 31.24, Limit Price: 30.74\nSkipping order for LUV because quantity to sell is less than 1.\nFirst target price not yet reached for LUV, setting stop loss order.\nCurrent Price: $32.37, Target Price 1: $33.23\n\nStock: SF\nCurrent Price: $118.275\nStop Price from get_stop(): $112.75\nTrailing Percentage (from difference): 4.67%\nSymbol: SF, Quantity: 0.9556, Stop Price: 112.75, Limit Price: 112.25\nSkipping order for SF because quantity to sell is less than 1.\nFirst target price not yet reached for SF, setting stop loss order.\nCurrent Price: $118.28, Target Price 1: $120.37\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: VTR\nCurrent Price: $63.135\nStop Price from get_stop(): $61.95\nTrailing Percentage (from difference): 1.88%\nSymbol: VTR, Quantity: 1.67, Stop Price: 61.95, Limit Price: 61.45\nFirst target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $63.13, Target Price 1: $68.79\n\nStock: WAB\nCurrent Price: $198.145\nStop Price from get_stop(): $196.83\nTrailing Percentage (from difference): 0.66%\nSymbol: WAB, Quantity: 0.5457, Stop Price: 196.83, Limit Price: 196.33\nSkipping order for WAB because quantity to sell is less than 1.\nFirst target price not yet reached for WAB, setting stop loss order.\nCurrent Price: $198.15, Target Price 1: $211.06\n\nStock: CLDX\nCurrent Price: $27.91\nStop Price from get_stop(): $26.66\nTrailing Percentage (from difference): 4.48%\nSymbol: CLDX, Quantity: 17.39, Stop Price: 26.66, Limit Price: 26.16\nFirst target price not yet reached for CLDX, setting stop loss order.\nCurrent Price: $27.91, Target Price 1: $27.92\n\nStock: XYL\nCurrent Price: $126.845\nStop Price from get_stop(): $123.84\nTrailing Percentage (from difference): 2.37%\nSymbol: XYL, Quantity: 3.66, Stop Price: 123.84, Limit Price: 123.34\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $126.84, Target Price 1: $132.87\n\nStock: CRAI\nCurrent Price: $195.845\nStop Price from get_stop(): $192.54\nTrailing Percentage (from difference): 1.69%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 192.53, Limit Price: 192.03\nFirst target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $195.84, Target Price 1: $205.81\n\nStock: ICE\nCurrent Price: $159.33\nStop Price from get_stop(): $156.86\nTrailing Percentage (from difference): 1.55%\nSymbol: ICE, Quantity: 2.3, Stop Price: 156.86, Limit Price: 156.36\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $159.33, Target Price 1: $167.33\n\nStock: LEA\nCurrent Price: $101.685\nStop Price from get_stop(): $94.82\nTrailing Percentage (from difference): 6.75%\nSymbol: LEA, Quantity: 3.59, Stop Price: 94.82, Limit Price: 94.32\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $101.69, Target Price 1: $107.20\n\nStock: SYF\nCurrent Price: $67.13\nStop Price from get_stop(): $63.94\nTrailing Percentage (from difference): 4.75%\nSymbol: SYF, Quantity: 5.45, Stop Price: 63.94, Limit Price: 63.44\nFirst target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $67.13, Target Price 1: $70.67\nEnding main loop iteration...\nMarket is closed or it's past 3:30 PM ET. Waiting until 10:00 AM ET to start again.\nMarket is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\nLoading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\nLoading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nLoading page 111 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.445\nStop Price from get_stop(): $63.0\nTrailing Percentage (from difference): 2.24%\nSymbol: KO, Quantity: 7.26, Stop Price: 63.0, Limit Price: 62.5\nFirst target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.44, Target Price 1: $67.40\n\nStock: OTIS\nCurrent Price: $101.68\nStop Price from get_stop(): $100.62\nTrailing Percentage (from difference): 1.04%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 100.62, Limit Price: 100.12\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $101.68, Target Price 1: $108.47\n\nStock: GIS\nCurrent Price: $65.655\nStop Price from get_stop(): $64.57\nTrailing Percentage (from difference): 1.65%\nSymbol: GIS, Quantity: 7.24, Stop Price: 64.57, Limit Price: 64.07\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $65.66, Target Price 1: $67.62\n\nStock: ABT\nCurrent Price: $117.69\nStop Price from get_stop(): $116.52\nTrailing Percentage (from difference): 0.99%\nSymbol: ABT, Quantity: 3.11, Stop Price: 116.52, Limit Price: 116.02\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $117.69, Target Price 1: $124.83\n\nStock: EMN\nCurrent Price: $104.92\nStop Price from get_stop(): $103.68\nTrailing Percentage (from difference): 1.18%\nSymbol: EMN, Quantity: 0.47, Stop Price: 103.68, Limit Price: 103.18\nSkipping order for EMN because quantity to sell is less than 1.\nFirst target price not yet reached for EMN, setting stop loss order.\nCurrent Price: $104.92, Target Price 1: $109.49\n\nStock: NUE\nCurrent Price: $154.62\nStop Price from get_stop(): $148.24\nTrailing Percentage (from difference): 4.13%\nSymbol: NUE, Quantity: 2.34, Stop Price: 148.24, Limit Price: 147.74\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $154.62, Target Price 1: $165.43\n\nStock: DUK\nCurrent Price: $115.62\nStop Price from get_stop(): $112.43\nTrailing Percentage (from difference): 2.76%\nSymbol: DUK, Quantity: 4.03, Stop Price: 112.43, Limit Price: 111.93\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $115.62, Target Price 1: $121.45\n\nStock: ARE\nCurrent Price: $111.37\nStop Price from get_stop(): $111.08\nTrailing Percentage (from difference): 0.26%\nSymbol: ARE, Quantity: 3.29, Stop Price: 111.09, Limit Price: 110.59\nFirst target price not yet reached for ARE, setting stop loss order.\nCurrent Price: $111.37, Target Price 1: $117.93\n\nStock: BBY\nCurrent Price: $85.51\nStop Price from get_stop(): $92.26\nTrailing Percentage (from difference): -7.89%\nSymbol: BBY, Quantity: 3.9, Stop Price: 92.27, Limit Price: 91.77\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $85.51, Target Price 1: $99.38\n\nStock: HD\nCurrent Price: $426.72\nStop Price from get_stop(): $419.1\nTrailing Percentage (from difference): 1.79%\nSymbol: HD, Quantity: 1.13, Stop Price: 419.1, Limit Price: 418.6\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $426.72, Target Price 1: $433.91\n\nStock: NSC\nCurrent Price: $273.92\nStop Price from get_stop(): $274.14\nTrailing Percentage (from difference): -0.08%\nSymbol: NSC, Quantity: 1.33, Stop Price: 274.13, Limit Price: 273.63\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $273.92, Target Price 1: $291.07\n\nStock: LANC\nCurrent Price: $183.775\nStop Price from get_stop(): $185.21\nTrailing Percentage (from difference): -0.78%\nSymbol: LANC, Quantity: 0.93, Stop Price: 185.21, Limit Price: 184.71\nSkipping order for LANC because quantity to sell is less than 1.\nFirst target price not yet reached for LANC, setting stop loss order.\nCurrent Price: $183.78, Target Price 1: $200.84\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: SYY\nCurrent Price: $76.65\nStop Price from get_stop(): $74.65\nTrailing Percentage (from difference): 2.61%\nSymbol: SYY, Quantity: 4.75, Stop Price: 74.65, Limit Price: 74.15\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $76.65, Target Price 1: $81.65\n\nStock: IBM\nCurrent Price: $226.2\nStop Price from get_stop(): $219.42\nTrailing Percentage (from difference): 3.00%\nSymbol: IBM, Quantity: 2.08, Stop Price: 219.42, Limit Price: 218.92\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $226.20, Target Price 1: $235.45\n\nStock: ABBV\nCurrent Price: $178.05\nStop Price from get_stop(): $172.84\nTrailing Percentage (from difference): 2.93%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 172.84, Limit Price: 172.34\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $178.05, Target Price 1: $188.18\n\nStock: JBHT\nCurrent Price: $185.89\nStop Price from get_stop(): $186.68\nTrailing Percentage (from difference): -0.42%\nSymbol: JBHT, Quantity: 1.94, Stop Price: 186.68, Limit Price: 186.18\nFirst target price not yet reached for JBHT, setting stop loss order.\nCurrent Price: $185.89, Target Price 1: $199.92\n\nStock: CCI\nCurrent Price: $105.9\nStop Price from get_stop(): $103.82\nTrailing Percentage (from difference): 1.96%\nSymbol: CCI, Quantity: 4.41, Stop Price: 103.82, Limit Price: 103.32\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $105.90, Target Price 1: $110.92\n\nStock: SWK\nCurrent Price: $89.13\nStop Price from get_stop(): $91.52\nTrailing Percentage (from difference): -2.68%\nSymbol: SWK, Quantity: 3.97, Stop Price: 91.53, Limit Price: 91.03\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $89.13, Target Price 1: $97.65\n\nStock: SNX\nCurrent Price: $120.07\nStop Price from get_stop(): $116.93\nTrailing Percentage (from difference): 2.62%\nSymbol: SNX, Quantity: 2.99, Stop Price: 116.93, Limit Price: 116.43\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $120.07, Target Price 1: $129.51\n\nStock: GWRE\nCurrent Price: $204.4\nStop Price from get_stop(): $196.13\nTrailing Percentage (from difference): 4.05%\nSymbol: GWRE, Quantity: 2.31, Stop Price: 196.13, Limit Price: 195.63\nFirst target price not yet reached for GWRE, setting stop loss order.\nCurrent Price: $204.40, Target Price 1: $211.83\n\nStock: O\nCurrent Price: $57.49\nStop Price from get_stop(): $56.62\nTrailing Percentage (from difference): 1.51%\nSymbol: O, Quantity: 8.05, Stop Price: 56.62, Limit Price: 56.12\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $57.49, Target Price 1: $60.77\n\nStock: CMS\nCurrent Price: $69.6052\nStop Price from get_stop(): $68.04\nTrailing Percentage (from difference): 2.25%\nSymbol: CMS, Quantity: 6.7, Stop Price: 68.04, Limit Price: 67.54\nFirst target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $69.61, Target Price 1: $73.06\n\nStock: DFS\nCurrent Price: $180.93\nStop Price from get_stop(): $176.58\nTrailing Percentage (from difference): 2.40%\nSymbol: DFS, Quantity: 2.0, Stop Price: 176.58, Limit Price: 176.08\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $180.93, Target Price 1: $193.40\n\nStock: CTVA\nCurrent Price: $63.295\nStop Price from get_stop(): $63.28\nTrailing Percentage (from difference): 0.02%\nSymbol: CTVA, Quantity: 7.58, Stop Price: 63.28, Limit Price: 62.78\nFirst target price not yet reached for CTVA, setting stop loss order.\nCurrent Price: $63.30, Target Price 1: $64.56\n\nStock: AJG\nCurrent Price: $308.29\nStop Price from get_stop(): $295.97\nTrailing Percentage (from difference): 4.00%\nFirst target price reached for AJG, Current Price: $308.29, with a gain of 5.89%.\nDue to low initial funding, the entire position in this stock has been sold for profit.\n\nStock: OTTR\nCurrent Price: $80.98\nStop Price from get_stop(): $79.2\nTrailing Percentage (from difference): 2.20%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 79.2, Limit Price: 78.7\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $80.98, Target Price 1: $87.74\n\nStock: BYD\nCurrent Price: $72.79\nStop Price from get_stop(): $71.06\nTrailing Percentage (from difference): 2.38%\nSymbol: BYD, Quantity: 4.95, Stop Price: 71.06, Limit Price: 70.56\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $72.79, Target Price 1: $78.37\n\nStock: HXL\nCurrent Price: $62.76\nStop Price from get_stop(): $62.22\nTrailing Percentage (from difference): 0.86%\nSymbol: HXL, Quantity: 5.82, Stop Price: 62.22, Limit Price: 61.72\nFirst target price not yet reached for HXL, setting stop loss order.\nCurrent Price: $62.76, Target Price 1: $66.54\n\nStock: EXPO\nCurrent Price: $99.68\nStop Price from get_stop(): $99.66\nTrailing Percentage (from difference): 0.02%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 99.66, Limit Price: 99.16\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $99.68, Target Price 1: $106.74\n\nStock: FCX\nCurrent Price: $43.51\nStop Price from get_stop(): $43.14\nTrailing Percentage (from difference): 0.85%\nSymbol: FCX, Quantity: 8.98, Stop Price: 43.14, Limit Price: 42.64\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $43.51, Target Price 1: $51.25\n\nStock: AZN\nCurrent Price: $66.08\nStop Price from get_stop(): $65.22\nTrailing Percentage (from difference): 1.30%\nSymbol: AZN, Quantity: 5.54, Stop Price: 65.22, Limit Price: 64.72\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $66.08, Target Price 1: $69.98\n\nStock: PEP\nCurrent Price: $162.315\nStop Price from get_stop(): $160.5\nTrailing Percentage (from difference): 1.12%\nSymbol: PEP, Quantity: 2.25, Stop Price: 160.5, Limit Price: 160.0\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $162.31, Target Price 1: $171.96\n\nStock: STT\nCurrent Price: $98.5167\nStop Price from get_stop(): $96.24\nTrailing Percentage (from difference): 2.31%\nSymbol: STT, Quantity: 3.7, Stop Price: 96.24, Limit Price: 95.74\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $98.52, Target Price 1: $104.61\n\nStock: KKR\nCurrent Price: $159.11\nStop Price from get_stop(): $154.7\nTrailing Percentage (from difference): 2.77%\nSymbol: KKR, Quantity: 2.92, Stop Price: 154.7, Limit Price: 154.2\nFirst target price not yet reached for KKR, setting stop loss order.\nCurrent Price: $159.11, Target Price 1: $167.36\n\nStock: AOS\nCurrent Price: $74.1\nStop Price from get_stop(): $74.88\nTrailing Percentage (from difference): -1.05%\nSymbol: AOS, Quantity: 4.85, Stop Price: 74.88, Limit Price: 74.38\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $74.10, Target Price 1: $79.91\n\nStock: ASH\nCurrent Price: $79.06\nStop Price from get_stop(): $77.47\nTrailing Percentage (from difference): 2.01%\nSymbol: ASH, Quantity: 4.53, Stop Price: 77.47, Limit Price: 76.97\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $79.06, Target Price 1: $85.59\n\nStock: LYB\nCurrent Price: $82.67\nStop Price from get_stop(): $82.24\nTrailing Percentage (from difference): 0.52%\nSymbol: LYB, Quantity: 0.31, Stop Price: 82.24, Limit Price: 81.74\nSkipping order for LYB because quantity to sell is less than 1.\nFirst target price not yet reached for LYB, setting stop loss order.\nCurrent Price: $82.67, Target Price 1: $89.88\n\nStock: TM\nCurrent Price: $173.29\nStop Price from get_stop(): $173.76\nTrailing Percentage (from difference): -0.27%\nSymbol: TM, Quantity: 2.14, Stop Price: 173.76, Limit Price: 173.26\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $173.29, Target Price 1: $194.66\n\nStock: XLB\nCurrent Price: $94.12\nStop Price from get_stop(): $93.61\nTrailing Percentage (from difference): 0.54%\nSymbol: XLB, Quantity: 3.85, Stop Price: 93.61, Limit Price: 93.11\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $94.12, Target Price 1: $100.64\n\nStock: PKG\nCurrent Price: $244.72\nStop Price from get_stop(): $241.61\nTrailing Percentage (from difference): 1.27%\nSymbol: PKG, Quantity: 1.48, Stop Price: 241.61, Limit Price: 241.11\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $244.72, Target Price 1: $262.24\n\nStock: VTV\nCurrent Price: $180.425\nStop Price from get_stop(): $179.54\nTrailing Percentage (from difference): 0.49%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 179.54, Limit Price: 179.04\nFirst target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $180.43, Target Price 1: $189.43\n\nStock: SBUX\nCurrent Price: $100.73\nStop Price from get_stop(): $100.0\nTrailing Percentage (from difference): 0.72%\nSymbol: SBUX, Quantity: 0.57, Stop Price: 100.0, Limit Price: 99.5\nSkipping order for SBUX because quantity to sell is less than 1.\nFirst target price not yet reached for SBUX, setting stop loss order.\nCurrent Price: $100.73, Target Price 1: $108.56\n\nStock: XLI\nCurrent Price: $143.175\nStop Price from get_stop(): $141.94\nTrailing Percentage (from difference): 0.86%\nSymbol: XLI, Quantity: 2.56, Stop Price: 141.94, Limit Price: 141.44\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $143.18, Target Price 1: $151.55\n\nStock: EBAY\nCurrent Price: $65.18\nStop Price from get_stop(): $64.4\nTrailing Percentage (from difference): 1.20%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 64.4, Limit Price: 63.900000000000006\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $65.18, Target Price 1: $69.06\n\nStock: ES\nCurrent Price: $63.235\nStop Price from get_stop(): $62.76\nTrailing Percentage (from difference): 0.75%\nSymbol: ES, Quantity: 7.41, Stop Price: 62.76, Limit Price: 62.26\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $63.23, Target Price 1: $66.02\n\nStock: CBT\nCurrent Price: $111.29\nStop Price from get_stop(): $112.59\nTrailing Percentage (from difference): -1.17%\nSymbol: CBT, Quantity: 3.2, Stop Price: 112.59, Limit Price: 112.09\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $111.29, Target Price 1: $120.96\n\nStock: WM\nCurrent Price: $226.96\nStop Price from get_stop(): $222.01\nTrailing Percentage (from difference): 2.18%\nSymbol: WM, Quantity: 3.7, Stop Price: 222.01, Limit Price: 221.51\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $226.96, Target Price 1: $236.68\n\nStock: PCAR\nCurrent Price: $115.04\nStop Price from get_stop(): $114.3\nTrailing Percentage (from difference): 0.64%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 114.3, Limit Price: 113.8\nFirst target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $115.04, Target Price 1: $122.66\n\nStock: EHC\nCurrent Price: $102.37\nStop Price from get_stop(): $99.35\nTrailing Percentage (from difference): 2.95%\nSymbol: EHC, Quantity: 3.62, Stop Price: 99.35, Limit Price: 98.85\nFirst target price not yet reached for EHC, setting stop loss order.\nCurrent Price: $102.37, Target Price 1: $107.13\n\nStock: STX\nCurrent Price: $102.33\nStop Price from get_stop(): $97.98\nTrailing Percentage (from difference): 4.25%\nSymbol: STX, Quantity: 3.58, Stop Price: 97.98, Limit Price: 97.48\nFirst target price not yet reached for STX, setting stop loss order.\nCurrent Price: $102.33, Target Price 1: $108.13\n\nStock: USB\nCurrent Price: $53.425\nStop Price from get_stop(): $52.42\nTrailing Percentage (from difference): 1.88%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.42, Limit Price: 51.92\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.42, Target Price 1: $54.71\n\nStock: SJW\nCurrent Price: $55.39\nStop Price from get_stop(): $54.14\nTrailing Percentage (from difference): 2.26%\nSymbol: SJW, Quantity: 8.38, Stop Price: 54.14, Limit Price: 53.64\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $55.39, Target Price 1: $58.42\n\nStock: BRC\nCurrent Price: $74.32\nStop Price from get_stop(): $74.54\nTrailing Percentage (from difference): -0.30%\nSymbol: BRC, Quantity: 4.88, Stop Price: 74.54, Limit Price: 74.04\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $74.32, Target Price 1: $79.34\n\nStock: MANH\nCurrent Price: $289.31\nStop Price from get_stop(): $288.5\nTrailing Percentage (from difference): 0.28%\nSymbol: MANH, Quantity: 2.66, Stop Price: 288.5, Limit Price: 288.0\nFirst target price not yet reached for MANH, setting stop loss order.\nCurrent Price: $289.31, Target Price 1: $300.54\n\nStock: KMI\nCurrent Price: $28.025\nStop Price from get_stop(): $27.64\nTrailing Percentage (from difference): 1.37%\nSymbol: KMI, Quantity: 1.08, Stop Price: 27.64, Limit Price: 27.14\nFirst target price not yet reached for KMI, setting stop loss order.\nCurrent Price: $28.02, Target Price 1: $28.39\n\nStock: MSA\nCurrent Price: $174.9651\nStop Price from get_stop(): $171.33\nTrailing Percentage (from difference): 2.08%\nSymbol: MSA, Quantity: 2.08, Stop Price: 171.33, Limit Price: 170.83\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $174.97, Target Price 1: $186.65\n\nStock: LFUS\nCurrent Price: $248.015\nStop Price from get_stop(): $249.21\nTrailing Percentage (from difference): -0.48%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 249.21, Limit Price: 248.71\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $248.01, Target Price 1: $268.37\n\nStock: SPG\nCurrent Price: $180.75\nStop Price from get_stop(): $176.78\nTrailing Percentage (from difference): 2.20%\nSymbol: SPG, Quantity: 3.0942, Stop Price: 176.78, Limit Price: 176.28\nFirst target price not yet reached for SPG, setting stop loss order.\nCurrent Price: $180.75, Target Price 1: $185.97\n\nStock: VUG\nCurrent Price: $407.37\nStop Price from get_stop(): $397.23\nTrailing Percentage (from difference): 2.49%\nSymbol: VUG, Quantity: 1.07, Stop Price: 397.23, Limit Price: 396.73\nFirst target price not yet reached for VUG, setting stop loss order.\nCurrent Price: $407.37, Target Price 1: $429.81\n\nStock: VTR\nCurrent Price: $63.47\nStop Price from get_stop(): $61.97\nTrailing Percentage (from difference): 2.36%\nSymbol: VTR, Quantity: 1.67, Stop Price: 61.97, Limit Price: 61.47\nFirst target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $63.47, Target Price 1: $69.27\n\nStock: CLDX\nCurrent Price: $26.885\nStop Price from get_stop(): $27.83\nTrailing Percentage (from difference): -3.51%\nSymbol: CLDX, Quantity: 0.39, Stop Price: 27.83, Limit Price: 27.33\nSkipping order for CLDX because quantity to sell is less than 1.\nFirst target price not yet reached for CLDX, setting stop loss order.\nCurrent Price: $26.89, Target Price 1: $28.11\n\nStock: XYL\nCurrent Price: $125.345\nStop Price from get_stop(): $127.94\nTrailing Percentage (from difference): -2.07%\nSymbol: XYL, Quantity: 3.66, Stop Price: 127.94, Limit Price: 127.44\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $125.34, Target Price 1: $133.79\n\nStock: CRAI\nCurrent Price: $196.28\nStop Price from get_stop(): $188.23\nTrailing Percentage (from difference): 4.10%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 188.23, Limit Price: 187.73\nFirst target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $196.28, Target Price 1: $207.23\n\nStock: ICE\nCurrent Price: $159.1\nStop Price from get_stop(): $157.2\nTrailing Percentage (from difference): 1.19%\nSymbol: ICE, Quantity: 2.3, Stop Price: 157.2, Limit Price: 156.7\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $159.10, Target Price 1: $168.48\n\nStock: LEA\nCurrent Price: $96.5\nStop Price from get_stop(): $100.04\nTrailing Percentage (from difference): -3.67%\nSymbol: LEA, Quantity: 3.59, Stop Price: 100.04, Limit Price: 99.54\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $96.50, Target Price 1: $107.94\n\nStock: SYF\nCurrent Price: $66.43\nStop Price from get_stop(): $65.0\nTrailing Percentage (from difference): 2.15%\nSymbol: SYF, Quantity: 5.45, Stop Price: 65.0, Limit Price: 64.5\nFirst target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $66.43, Target Price 1: $71.16\nEnding main loop iteration...\nMarket is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\n"}, {"name": "stdout", "output_type": "stream", "text": "Loading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\nLoading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nLoading page 111 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.585\nStop Price from get_stop(): $63.0\nTrailing Percentage (from difference): 2.45%\nSymbol: KO, Quantity: 7.26, Stop Price: 63.0, Limit Price: 62.5\nFirst target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.58, Target Price 1: $66.97\n\nStock: OTIS\nCurrent Price: $102.005\nStop Price from get_stop(): $100.62\nTrailing Percentage (from difference): 1.36%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 100.62, Limit Price: 100.12\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $102.00, Target Price 1: $107.78\n\nStock: GIS\nCurrent Price: $66.045\nStop Price from get_stop(): $64.57\nTrailing Percentage (from difference): 2.23%\nSymbol: GIS, Quantity: 7.24, Stop Price: 64.57, Limit Price: 64.07\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $66.05, Target Price 1: $67.18\n\nStock: ABT\nCurrent Price: $118.111\nStop Price from get_stop(): $116.52\nTrailing Percentage (from difference): 1.35%\nSymbol: ABT, Quantity: 3.11, Stop Price: 116.52, Limit Price: 116.02\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $118.11, Target Price 1: $124.03\n\nStock: EMN\nCurrent Price: $104.81\nStop Price from get_stop(): $103.68\nTrailing Percentage (from difference): 1.08%\nSymbol: EMN, Quantity: 0.47, Stop Price: 103.68, Limit Price: 103.18\nSkipping order for EMN because quantity to sell is less than 1.\nFirst target price not yet reached for EMN, setting stop loss order.\nCurrent Price: $104.81, Target Price 1: $108.79\n\nStock: NUE\nCurrent Price: $153.16\nStop Price from get_stop(): $148.24\nTrailing Percentage (from difference): 3.21%\nSymbol: NUE, Quantity: 2.34, Stop Price: 148.24, Limit Price: 147.74\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $153.16, Target Price 1: $164.37\n\nStock: DUK\nCurrent Price: $116.81\nStop Price from get_stop(): $112.43\nTrailing Percentage (from difference): 3.75%\nSymbol: DUK, Quantity: 4.03, Stop Price: 112.43, Limit Price: 111.93\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $116.81, Target Price 1: $120.67\n\nStock: ARE\nCurrent Price: $111.375\nStop Price from get_stop(): $111.08\nTrailing Percentage (from difference): 0.26%\nSymbol: ARE, Quantity: 0.29, Stop Price: 111.09, Limit Price: 110.59\nSkipping order for ARE because quantity to sell is less than 1.\nFirst target price not yet reached for ARE, setting stop loss order.\nCurrent Price: $111.38, Target Price 1: $117.17\n\nStock: BBY\nCurrent Price: $88.15\nStop Price from get_stop(): $92.26\nTrailing Percentage (from difference): -4.66%\nSymbol: BBY, Quantity: 3.9, Stop Price: 92.27, Limit Price: 91.77\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $88.15, Target Price 1: $98.74\n\nStock: HD\nCurrent Price: $428.335\nStop Price from get_stop(): $419.1\nTrailing Percentage (from difference): 2.16%\nSymbol: HD, Quantity: 1.13, Stop Price: 419.1, Limit Price: 418.6\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $428.33, Target Price 1: $431.13\n\nStock: NSC\nCurrent Price: $275.51\nStop Price from get_stop(): $274.14\nTrailing Percentage (from difference): 0.50%\nSymbol: NSC, Quantity: 1.33, Stop Price: 274.13, Limit Price: 273.63\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $275.51, Target Price 1: $289.21\n\nStock: LANC\nCurrent Price: $185.495\nStop Price from get_stop(): $185.21\nTrailing Percentage (from difference): 0.15%\nSymbol: LANC, Quantity: 0.93, Stop Price: 185.21, Limit Price: 184.71\nSkipping order for LANC because quantity to sell is less than 1.\nFirst target price not yet reached for LANC, setting stop loss order.\nCurrent Price: $185.50, Target Price 1: $199.55\n\nStock: SYY\nCurrent Price: $76.33\nStop Price from get_stop(): $74.65\nTrailing Percentage (from difference): 2.20%\nSymbol: SYY, Quantity: 4.75, Stop Price: 74.65, Limit Price: 74.15\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $76.33, Target Price 1: $81.13\n\nStock: IBM\nCurrent Price: $228.4406\nStop Price from get_stop(): $219.42\nTrailing Percentage (from difference): 3.95%\nSymbol: IBM, Quantity: 2.08, Stop Price: 219.42, Limit Price: 218.92\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $228.44, Target Price 1: $233.94\n\nStock: ABBV\nCurrent Price: $180.51\nStop Price from get_stop(): $172.84\nTrailing Percentage (from difference): 4.25%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 172.84, Limit Price: 172.34\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $180.51, Target Price 1: $186.98\n\nStock: JBHT\nCurrent Price: $189.97\nStop Price from get_stop(): $186.68\nTrailing Percentage (from difference): 1.73%\nSymbol: JBHT, Quantity: 1.94, Stop Price: 186.68, Limit Price: 186.18\nFirst target price not yet reached for JBHT, setting stop loss order.\nCurrent Price: $189.97, Target Price 1: $198.64\n\nStock: CCI\nCurrent Price: $106.51\nStop Price from get_stop(): $103.82\nTrailing Percentage (from difference): 2.53%\nSymbol: CCI, Quantity: 4.41, Stop Price: 103.82, Limit Price: 103.32\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $106.51, Target Price 1: $110.21\n\nStock: SWK\nCurrent Price: $89.34\nStop Price from get_stop(): $91.52\nTrailing Percentage (from difference): -2.44%\nSymbol: SWK, Quantity: 3.97, Stop Price: 91.53, Limit Price: 91.03\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $89.34, Target Price 1: $97.02\n\nStock: SNX\nCurrent Price: $120.19\nStop Price from get_stop(): $116.93\nTrailing Percentage (from difference): 2.71%\nSymbol: SNX, Quantity: 2.99, Stop Price: 116.93, Limit Price: 116.43\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $120.19, Target Price 1: $128.68\n\nStock: GWRE\nCurrent Price: $204.105\nStop Price from get_stop(): $196.13\nTrailing Percentage (from difference): 3.91%\nSymbol: GWRE, Quantity: 2.31, Stop Price: 196.13, Limit Price: 195.63\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for GWRE, setting stop loss order.\nCurrent Price: $204.10, Target Price 1: $210.47\n\nStock: O\nCurrent Price: $57.785\nStop Price from get_stop(): $56.62\nTrailing Percentage (from difference): 2.02%\nSymbol: O, Quantity: 8.05, Stop Price: 56.62, Limit Price: 56.12\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $57.78, Target Price 1: $60.38\n\nStock: CMS\nCurrent Price: $70.34\nStop Price from get_stop(): $68.04\nTrailing Percentage (from difference): 3.27%\nSymbol: CMS, Quantity: 6.7, Stop Price: 68.04, Limit Price: 67.54\nFirst target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $70.34, Target Price 1: $72.59\n\nStock: DFS\nCurrent Price: $182.1\nStop Price from get_stop(): $176.58\nTrailing Percentage (from difference): 3.03%\nSymbol: DFS, Quantity: 2.0, Stop Price: 176.58, Limit Price: 176.08\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $182.10, Target Price 1: $192.16\n\nStock: CTVA\nCurrent Price: $63.11\nStop Price from get_stop(): $63.28\nTrailing Percentage (from difference): -0.27%\nSymbol: CTVA, Quantity: 0.58, Stop Price: 63.28, Limit Price: 62.78\nSkipping order for CTVA because quantity to sell is less than 1.\nFirst target price not yet reached for CTVA, setting stop loss order.\nCurrent Price: $63.11, Target Price 1: $64.14\n\nStock: OTTR\nCurrent Price: $79.87\nStop Price from get_stop(): $79.2\nTrailing Percentage (from difference): 0.84%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 79.2, Limit Price: 78.7\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $79.87, Target Price 1: $87.18\n\nStock: BYD\nCurrent Price: $73.16\nStop Price from get_stop(): $71.06\nTrailing Percentage (from difference): 2.87%\nSymbol: BYD, Quantity: 4.95, Stop Price: 71.06, Limit Price: 70.56\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $73.16, Target Price 1: $77.86\n\nStock: HXL\nCurrent Price: $62.205\nStop Price from get_stop(): $62.22\nTrailing Percentage (from difference): -0.02%\nSymbol: HXL, Quantity: 0.82, Stop Price: 62.22, Limit Price: 61.72\nSkipping order for HXL because quantity to sell is less than 1.\nFirst target price not yet reached for HXL, setting stop loss order.\nCurrent Price: $62.20, Target Price 1: $66.12\n\nStock: EXPO\nCurrent Price: $99.24\nStop Price from get_stop(): $99.66\nTrailing Percentage (from difference): -0.42%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 99.66, Limit Price: 99.16\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $99.24, Target Price 1: $106.06\n\nStock: FCX\nCurrent Price: $43.34\nStop Price from get_stop(): $43.14\nTrailing Percentage (from difference): 0.46%\nSymbol: FCX, Quantity: 8.98, Stop Price: 43.14, Limit Price: 42.64\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $43.34, Target Price 1: $50.92\n\nStock: AZN\nCurrent Price: $66.295\nStop Price from get_stop(): $65.22\nTrailing Percentage (from difference): 1.62%\nSymbol: AZN, Quantity: 5.54, Stop Price: 65.22, Limit Price: 64.72\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $66.30, Target Price 1: $69.53\n\nStock: PEP\nCurrent Price: $162.2959\nStop Price from get_stop(): $160.5\nTrailing Percentage (from difference): 1.11%\nSymbol: PEP, Quantity: 2.25, Stop Price: 160.5, Limit Price: 160.0\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $162.30, Target Price 1: $170.86\n\nStock: STT\nCurrent Price: $98.67\nStop Price from get_stop(): $96.24\nTrailing Percentage (from difference): 2.46%\nSymbol: STT, Quantity: 3.7, Stop Price: 96.24, Limit Price: 95.74\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $98.67, Target Price 1: $103.94\n\nStock: KKR\nCurrent Price: $160.73\nStop Price from get_stop(): $154.7\nTrailing Percentage (from difference): 3.75%\nSymbol: KKR, Quantity: 2.92, Stop Price: 154.7, Limit Price: 154.2\nFirst target price not yet reached for KKR, setting stop loss order.\nCurrent Price: $160.73, Target Price 1: $166.29\n\nStock: AOS\nCurrent Price: $73.87\nStop Price from get_stop(): $74.88\nTrailing Percentage (from difference): -1.37%\nSymbol: AOS, Quantity: 4.85, Stop Price: 74.88, Limit Price: 74.38\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $73.87, Target Price 1: $79.40\n\nStock: ASH\nCurrent Price: $77.95\nStop Price from get_stop(): $77.47\nTrailing Percentage (from difference): 0.62%\nSymbol: ASH, Quantity: 4.53, Stop Price: 77.47, Limit Price: 76.97\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $77.95, Target Price 1: $85.04\n\nStock: LYB\nCurrent Price: $81.7088\nStop Price from get_stop(): $82.24\nTrailing Percentage (from difference): -0.65%\nSymbol: LYB, Quantity: 0.31, Stop Price: 82.24, Limit Price: 81.74\nSkipping order for LYB because quantity to sell is less than 1.\nFirst target price not yet reached for LYB, setting stop loss order.\nCurrent Price: $81.71, Target Price 1: $89.31\n\nStock: TM\nCurrent Price: $172.647\nStop Price from get_stop(): $173.76\nTrailing Percentage (from difference): -0.64%\nSymbol: TM, Quantity: 2.14, Stop Price: 173.76, Limit Price: 173.26\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $172.65, Target Price 1: $193.41\n\nStock: XLB\nCurrent Price: $94.2\nStop Price from get_stop(): $93.61\nTrailing Percentage (from difference): 0.63%\nSymbol: XLB, Quantity: 3.85, Stop Price: 93.61, Limit Price: 93.11\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $94.20, Target Price 1: $99.99\n\nStock: PKG\nCurrent Price: $246.76\nStop Price from get_stop(): $241.61\nTrailing Percentage (from difference): 2.09%\nSymbol: PKG, Quantity: 1.48, Stop Price: 241.61, Limit Price: 241.11\nFirst target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $246.76, Target Price 1: $260.56\n\nStock: VTV\nCurrent Price: $181.2425\nStop Price from get_stop(): $179.54\nTrailing Percentage (from difference): 0.94%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 179.54, Limit Price: 179.04\nFirst target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $181.24, Target Price 1: $188.21\n\nStock: SBUX\nCurrent Price: $100.835\nStop Price from get_stop(): $100.0\nTrailing Percentage (from difference): 0.83%\nSymbol: SBUX, Quantity: 0.57, Stop Price: 100.0, Limit Price: 99.5\nSkipping order for SBUX because quantity to sell is less than 1.\nFirst target price not yet reached for SBUX, setting stop loss order.\nCurrent Price: $100.83, Target Price 1: $107.87\n\nStock: XLI\nCurrent Price: $143.715\nStop Price from get_stop(): $141.94\nTrailing Percentage (from difference): 1.24%\nSymbol: XLI, Quantity: 2.56, Stop Price: 141.94, Limit Price: 141.44\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $143.72, Target Price 1: $150.58\n\nStock: EBAY\nCurrent Price: $65.0922\nStop Price from get_stop(): $64.4\nTrailing Percentage (from difference): 1.06%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 64.4, Limit Price: 63.900000000000006\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $65.09, Target Price 1: $68.62\n\nStock: ES\nCurrent Price: $63.69\nStop Price from get_stop(): $62.76\nTrailing Percentage (from difference): 1.46%\nSymbol: ES, Quantity: 7.41, Stop Price: 62.76, Limit Price: 62.26\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $63.69, Target Price 1: $65.60\n\nStock: CBT\nCurrent Price: $110.775\nStop Price from get_stop(): $112.59\nTrailing Percentage (from difference): -1.64%\nSymbol: CBT, Quantity: 3.2, Stop Price: 112.59, Limit Price: 112.09\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $110.78, Target Price 1: $120.18\n\nStock: WM\nCurrent Price: $228.34\nStop Price from get_stop(): $222.01\nTrailing Percentage (from difference): 2.77%\nSymbol: WM, Quantity: 3.7, Stop Price: 222.01, Limit Price: 221.51\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $228.34, Target Price 1: $235.16\n\nStock: PCAR\nCurrent Price: $115.58\nStop Price from get_stop(): $114.3\nTrailing Percentage (from difference): 1.11%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 114.3, Limit Price: 113.8\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $115.58, Target Price 1: $121.87\n\nStock: EHC\nCurrent Price: $103.555\nStop Price from get_stop(): $99.35\nTrailing Percentage (from difference): 4.06%\nSymbol: EHC, Quantity: 3.62, Stop Price: 99.35, Limit Price: 98.85\nFirst target price not yet reached for EHC, setting stop loss order.\nCurrent Price: $103.56, Target Price 1: $106.44\n\nStock: STX\nCurrent Price: $101.87\nStop Price from get_stop(): $97.98\nTrailing Percentage (from difference): 3.82%\nSymbol: STX, Quantity: 3.58, Stop Price: 97.98, Limit Price: 97.48\nFirst target price not yet reached for STX, setting stop loss order.\nCurrent Price: $101.87, Target Price 1: $107.44\n\nStock: USB\nCurrent Price: $53.6\nStop Price from get_stop(): $52.42\nTrailing Percentage (from difference): 2.20%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.42, Limit Price: 51.92\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.60, Target Price 1: $54.36\n\nStock: SJW\nCurrent Price: $55.29\nStop Price from get_stop(): $54.14\nTrailing Percentage (from difference): 2.08%\nSymbol: SJW, Quantity: 8.38, Stop Price: 54.14, Limit Price: 53.64\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $55.29, Target Price 1: $58.05\n\nStock: BRC\nCurrent Price: $75.18\nStop Price from get_stop(): $74.54\nTrailing Percentage (from difference): 0.85%\nSymbol: BRC, Quantity: 4.88, Stop Price: 74.54, Limit Price: 74.04\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $75.18, Target Price 1: $78.83\n\nStock: MANH\nCurrent Price: $287.87\nStop Price from get_stop(): $288.5\nTrailing Percentage (from difference): -0.22%\nSymbol: MANH, Quantity: 0.66, Stop Price: 288.5, Limit Price: 288.0\nSkipping order for MANH because quantity to sell is less than 1.\nFirst target price not yet reached for MANH, setting stop loss order.\nCurrent Price: $287.87, Target Price 1: $298.61\n\nStock: KMI\nCurrent Price: $28.01\nStop Price from get_stop(): $27.64\nTrailing Percentage (from difference): 1.32%\nSymbol: KMI, Quantity: 1.08, Stop Price: 27.64, Limit Price: 27.14\nFirst target price not yet reached for KMI, setting stop loss order.\nCurrent Price: $28.01, Target Price 1: $28.21\n\nStock: MSA\nCurrent Price: $174.4325\nStop Price from get_stop(): $171.33\nTrailing Percentage (from difference): 1.78%\nSymbol: MSA, Quantity: 2.08, Stop Price: 171.33, Limit Price: 170.83\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $174.43, Target Price 1: $185.46\n\nStock: LFUS\nCurrent Price: $247.16\nStop Price from get_stop(): $249.21\nTrailing Percentage (from difference): -0.83%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 249.21, Limit Price: 248.71\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $247.16, Target Price 1: $266.65\n\nStock: SPG\nCurrent Price: $183.68\nStop Price from get_stop(): $176.78\nTrailing Percentage (from difference): 3.76%\nSymbol: SPG, Quantity: 3.0942, Stop Price: 176.78, Limit Price: 176.28\nFirst target price not yet reached for SPG, setting stop loss order.\nCurrent Price: $183.68, Target Price 1: $184.78\n\nStock: VUG\nCurrent Price: $407.8399\nStop Price from get_stop(): $397.23\nTrailing Percentage (from difference): 2.60%\nSymbol: VUG, Quantity: 1.07, Stop Price: 397.23, Limit Price: 396.73\nFirst target price not yet reached for VUG, setting stop loss order.\nCurrent Price: $407.84, Target Price 1: $427.05\n\nStock: VTR\nCurrent Price: $64.13\nStop Price from get_stop(): $61.97\nTrailing Percentage (from difference): 3.37%\nSymbol: VTR, Quantity: 1.67, Stop Price: 61.97, Limit Price: 61.47\nFirst target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $64.13, Target Price 1: $68.82\n\nStock: CLDX\nCurrent Price: $26.8675\nStop Price from get_stop(): $27.83\nTrailing Percentage (from difference): -3.58%\nSymbol: CLDX, Quantity: 0.39, Stop Price: 27.83, Limit Price: 27.33\nSkipping order for CLDX because quantity to sell is less than 1.\nFirst target price not yet reached for CLDX, setting stop loss order.\nCurrent Price: $26.87, Target Price 1: $27.93\n\nStock: XYL\nCurrent Price: $125.0\nStop Price from get_stop(): $127.94\nTrailing Percentage (from difference): -2.35%\nSymbol: XYL, Quantity: 3.66, Stop Price: 127.94, Limit Price: 127.44\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $125.00, Target Price 1: $132.93\n\nStock: CRAI\nCurrent Price: $199.435\nStop Price from get_stop(): $188.23\nTrailing Percentage (from difference): 5.62%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 188.23, Limit Price: 187.73\nFirst target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $199.44, Target Price 1: $205.90\n\nStock: ICE\nCurrent Price: $161.17\nStop Price from get_stop(): $157.2\nTrailing Percentage (from difference): 2.46%\nSymbol: ICE, Quantity: 2.3, Stop Price: 157.2, Limit Price: 156.7\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $161.17, Target Price 1: $167.40\n\nStock: LEA\nCurrent Price: $96.59\nStop Price from get_stop(): $100.04\nTrailing Percentage (from difference): -3.57%\nSymbol: LEA, Quantity: 3.59, Stop Price: 100.04, Limit Price: 99.54\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $96.59, Target Price 1: $107.25\n\nStock: SYF\nCurrent Price: $66.98\nStop Price from get_stop(): $65.0\nTrailing Percentage (from difference): 2.96%\nSymbol: SYF, Quantity: 5.45, Stop Price: 65.0, Limit Price: 64.5\nFirst target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $66.98, Target Price 1: $70.70\nEnding main loop iteration...\nMarket is closed or it's past 3:30 PM ET. Waiting until 10:00 AM ET to start again.\nMarket is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\nLoading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\nLoading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nLoading page 111 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.8212\nStop Price from get_stop(): $63.55\nTrailing Percentage (from difference): 1.96%\nSymbol: KO, Quantity: 7.26, Stop Price: 63.55, Limit Price: 63.05\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.82, Target Price 1: $67.50\n\nStock: OTIS\nCurrent Price: $102.565\nStop Price from get_stop(): $100.46\nTrailing Percentage (from difference): 2.05%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 100.46, Limit Price: 99.96\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $102.56, Target Price 1: $108.64\n\nStock: GIS\nCurrent Price: $66.5801\nStop Price from get_stop(): $64.59\nTrailing Percentage (from difference): 2.99%\nSymbol: GIS, Quantity: 7.24, Stop Price: 64.59, Limit Price: 64.09\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $66.58, Target Price 1: $67.72\n\nStock: ABT\nCurrent Price: $119.41\nStop Price from get_stop(): $115.0\nTrailing Percentage (from difference): 3.69%\nSymbol: ABT, Quantity: 3.11, Stop Price: 115.0, Limit Price: 114.5\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $119.41, Target Price 1: $125.02\n\nStock: NUE\nCurrent Price: $154.9775\nStop Price from get_stop(): $152.95\nTrailing Percentage (from difference): 1.31%\nSymbol: NUE, Quantity: 2.34, Stop Price: 152.95, Limit Price: 152.45\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $154.98, Target Price 1: $165.68\n\nStock: DUK\nCurrent Price: $117.53\nStop Price from get_stop(): $113.38\nTrailing Percentage (from difference): 3.53%\nSymbol: DUK, Quantity: 4.03, Stop Price: 113.38, Limit Price: 112.88\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $117.53, Target Price 1: $121.64\n\nStock: BBY\nCurrent Price: $88.09\nStop Price from get_stop(): $86.85\nTrailing Percentage (from difference): 1.41%\nSymbol: BBY, Quantity: 3.9, Stop Price: 86.85, Limit Price: 86.35\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $88.09, Target Price 1: $99.53\n\nStock: HD\nCurrent Price: $427.37\nStop Price from get_stop(): $426.28\nTrailing Percentage (from difference): 0.26%\nSymbol: HD, Quantity: 1.13, Stop Price: 426.27, Limit Price: 425.77\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $427.37, Target Price 1: $434.58\n\nStock: NSC\nCurrent Price: $276.105\nStop Price from get_stop(): $267.48\nTrailing Percentage (from difference): 3.12%\nSymbol: NSC, Quantity: 1.33, Stop Price: 267.48, Limit Price: 266.98\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $276.11, Target Price 1: $291.52\n\nStock: SYY\nCurrent Price: $77.1698\nStop Price from get_stop(): $75.17\nTrailing Percentage (from difference): 2.59%\nSymbol: SYY, Quantity: 4.75, Stop Price: 75.17, Limit Price: 74.67\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $77.17, Target Price 1: $81.78\n\nStock: IBM\nCurrent Price: $227.18\nStop Price from get_stop(): $222.56\nTrailing Percentage (from difference): 2.03%\nSymbol: IBM, Quantity: 2.08, Stop Price: 222.56, Limit Price: 222.06\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $227.18, Target Price 1: $235.81\n\nStock: ABBV\nCurrent Price: $182.1601\nStop Price from get_stop(): $179.56\nTrailing Percentage (from difference): 1.43%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 179.56, Limit Price: 179.06\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $182.16, Target Price 1: $188.47\n\nStock: JBHT\nCurrent Price: $191.535\nStop Price from get_stop(): $189.08\nTrailing Percentage (from difference): 1.28%\nSymbol: JBHT, Quantity: 1.94, Stop Price: 189.07, Limit Price: 188.57\nFirst target price not yet reached for JBHT, setting stop loss order.\nCurrent Price: $191.53, Target Price 1: $200.23\n\nStock: CCI\nCurrent Price: $107.015\nStop Price from get_stop(): $103.5\nTrailing Percentage (from difference): 3.28%\nSymbol: CCI, Quantity: 4.41, Stop Price: 103.5, Limit Price: 103.0\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $107.02, Target Price 1: $111.09\n\nStock: SWK\nCurrent Price: $90.3783\nStop Price from get_stop(): $86.98\nTrailing Percentage (from difference): 3.76%\nSymbol: SWK, Quantity: 3.97, Stop Price: 86.98, Limit Price: 86.48\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $90.38, Target Price 1: $97.80\n\nStock: SNX\nCurrent Price: $121.12\nStop Price from get_stop(): $118.31\nTrailing Percentage (from difference): 2.32%\nSymbol: SNX, Quantity: 2.99, Stop Price: 118.31, Limit Price: 117.81\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $121.12, Target Price 1: $129.71\n\nStock: GWRE\nCurrent Price: $203.25\nStop Price from get_stop(): $201.05\nTrailing Percentage (from difference): 1.08%\nSymbol: GWRE, Quantity: 2.31, Stop Price: 201.05, Limit Price: 200.55\nFirst target price not yet reached for GWRE, setting stop loss order.\nCurrent Price: $203.25, Target Price 1: $212.15\n\nStock: O\nCurrent Price: $58.416\nStop Price from get_stop(): $56.42\nTrailing Percentage (from difference): 3.42%\nSymbol: O, Quantity: 8.05, Stop Price: 56.42, Limit Price: 55.92\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $58.42, Target Price 1: $60.86\n\nStock: CMS\nCurrent Price: $70.945\nStop Price from get_stop(): $68.58\nTrailing Percentage (from difference): 3.33%\nSymbol: CMS, Quantity: 6.7, Stop Price: 68.58, Limit Price: 68.08\nFirst target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $70.94, Target Price 1: $73.17\n\nStock: DFS\nCurrent Price: $182.66\nStop Price from get_stop(): $177.16\nTrailing Percentage (from difference): 3.01%\nSymbol: DFS, Quantity: 2.0, Stop Price: 177.16, Limit Price: 176.66\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $182.66, Target Price 1: $193.70\n\nStock: OTTR\nCurrent Price: $80.81\nStop Price from get_stop(): $79.66\nTrailing Percentage (from difference): 1.42%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 79.66, Limit Price: 79.16\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $80.81, Target Price 1: $87.88\n\nStock: BYD\nCurrent Price: $73.51\nStop Price from get_stop(): $71.68\nTrailing Percentage (from difference): 2.49%\nSymbol: BYD, Quantity: 4.95, Stop Price: 71.68, Limit Price: 71.18\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $73.51, Target Price 1: $78.49\n\nStock: EXPO\nCurrent Price: $98.86\nStop Price from get_stop(): $95.97\nTrailing Percentage (from difference): 2.92%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 95.97, Limit Price: 95.47\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $98.86, Target Price 1: $106.90\n\nStock: FCX\nCurrent Price: $43.79\nStop Price from get_stop(): $42.12\nTrailing Percentage (from difference): 3.81%\nSymbol: FCX, Quantity: 8.98, Stop Price: 42.12, Limit Price: 41.62\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $43.79, Target Price 1: $51.33\n\nStock: AZN\nCurrent Price: $66.66\nStop Price from get_stop(): $64.94\nTrailing Percentage (from difference): 2.58%\nSymbol: AZN, Quantity: 5.54, Stop Price: 64.94, Limit Price: 64.44\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $66.66, Target Price 1: $70.09\n\nStock: PEP\nCurrent Price: $163.2012\nStop Price from get_stop(): $159.91\nTrailing Percentage (from difference): 2.02%\nSymbol: PEP, Quantity: 2.25, Stop Price: 159.91, Limit Price: 159.41\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $163.20, Target Price 1: $172.23\n\nStock: STT\nCurrent Price: $99.11\nStop Price from get_stop(): $96.78\nTrailing Percentage (from difference): 2.35%\nSymbol: STT, Quantity: 3.7, Stop Price: 96.78, Limit Price: 96.28\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $99.11, Target Price 1: $104.77\n\nStock: KKR\nCurrent Price: $162.35\nStop Price from get_stop(): $160.23\nTrailing Percentage (from difference): 1.31%\nSymbol: KKR, Quantity: 2.92, Stop Price: 160.23, Limit Price: 159.73\nFirst target price not yet reached for KKR, setting stop loss order.\nCurrent Price: $162.35, Target Price 1: $167.62\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: AOS\nCurrent Price: $74.36\nStop Price from get_stop(): $72.82\nTrailing Percentage (from difference): 2.07%\nSymbol: AOS, Quantity: 4.85, Stop Price: 72.82, Limit Price: 72.32\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $74.36, Target Price 1: $80.04\n\nStock: ASH\nCurrent Price: $78.025\nStop Price from get_stop(): $75.82\nTrailing Percentage (from difference): 2.83%\nSymbol: ASH, Quantity: 4.53, Stop Price: 75.82, Limit Price: 75.32\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $78.03, Target Price 1: $85.72\n\nStock: TM\nCurrent Price: $169.95\nStop Price from get_stop(): $171.07\nTrailing Percentage (from difference): -0.66%\nSymbol: TM, Quantity: 2.14, Stop Price: 171.07, Limit Price: 170.57\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $169.95, Target Price 1: $194.96\n\nStock: XLB\nCurrent Price: $94.68\nStop Price from get_stop(): $93.15\nTrailing Percentage (from difference): 1.62%\nSymbol: XLB, Quantity: 3.85, Stop Price: 93.15, Limit Price: 92.65\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $94.68, Target Price 1: $100.79\n\nStock: PKG\nCurrent Price: $247.5\nStop Price from get_stop(): $240.29\nTrailing Percentage (from difference): 2.91%\nSymbol: PKG, Quantity: 1.48, Stop Price: 240.29, Limit Price: 239.79\nFirst target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $247.50, Target Price 1: $262.64\n\nStock: VTV\nCurrent Price: $182.13\nStop Price from get_stop(): $179.13\nTrailing Percentage (from difference): 1.65%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 179.13, Limit Price: 178.63\nFirst target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $182.13, Target Price 1: $189.72\n\nStock: XLI\nCurrent Price: $144.04\nStop Price from get_stop(): $141.79\nTrailing Percentage (from difference): 1.56%\nSymbol: XLI, Quantity: 2.56, Stop Price: 141.79, Limit Price: 141.29\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $144.04, Target Price 1: $151.78\n\nStock: EBAY\nCurrent Price: $64.685\nStop Price from get_stop(): $64.04\nTrailing Percentage (from difference): 1.00%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 64.04, Limit Price: 63.540000000000006\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $64.69, Target Price 1: $69.17\n\nStock: ES\nCurrent Price: $64.265\nStop Price from get_stop(): $61.89\nTrailing Percentage (from difference): 3.70%\nSymbol: ES, Quantity: 7.41, Stop Price: 61.89, Limit Price: 61.39\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $64.27, Target Price 1: $66.13\n\nStock: CBT\nCurrent Price: $111.22\nStop Price from get_stop(): $107.7\nTrailing Percentage (from difference): 3.16%\nSymbol: CBT, Quantity: 3.2, Stop Price: 107.7, Limit Price: 107.2\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $111.22, Target Price 1: $121.14\n\nStock: WM\nCurrent Price: $230.1\nStop Price from get_stop(): $223.32\nTrailing Percentage (from difference): 2.95%\nSymbol: WM, Quantity: 3.7, Stop Price: 223.32, Limit Price: 222.82\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $230.10, Target Price 1: $237.04\n\nStock: PCAR\nCurrent Price: $116.03\nStop Price from get_stop(): $113.02\nTrailing Percentage (from difference): 2.59%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 113.02, Limit Price: 112.52\nFirst target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $116.03, Target Price 1: $122.85\n\nStock: EHC\nCurrent Price: $103.14\nStop Price from get_stop(): $103.04\nTrailing Percentage (from difference): 0.10%\nSymbol: EHC, Quantity: 3.62, Stop Price: 103.03, Limit Price: 102.53\nFirst target price not yet reached for EHC, setting stop loss order.\nCurrent Price: $103.14, Target Price 1: $107.29\n\nStock: STX\nCurrent Price: $100.69\nStop Price from get_stop(): $99.15\nTrailing Percentage (from difference): 1.53%\nSymbol: STX, Quantity: 3.58, Stop Price: 99.15, Limit Price: 98.65\nFirst target price not yet reached for STX, setting stop loss order.\nCurrent Price: $100.69, Target Price 1: $108.30\n\nStock: USB\nCurrent Price: $53.715\nStop Price from get_stop(): $52.8\nTrailing Percentage (from difference): 1.70%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.8, Limit Price: 52.3\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.72, Target Price 1: $54.80\n\nStock: SJW\nCurrent Price: $55.855\nStop Price from get_stop(): $53.61\nTrailing Percentage (from difference): 4.02%\nSymbol: SJW, Quantity: 8.38, Stop Price: 53.61, Limit Price: 53.11\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $55.85, Target Price 1: $58.51\n\nStock: BRC\nCurrent Price: $75.73\nStop Price from get_stop(): $73.02\nTrailing Percentage (from difference): 3.58%\nSymbol: BRC, Quantity: 4.88, Stop Price: 73.02, Limit Price: 72.52\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $75.73, Target Price 1: $79.46\n\nStock: KMI\nCurrent Price: $28.05\nStop Price from get_stop(): $27.49\nTrailing Percentage (from difference): 2.00%\nSymbol: KMI, Quantity: 1.08, Stop Price: 27.49, Limit Price: 26.99\nFirst target price not yet reached for KMI, setting stop loss order.\nCurrent Price: $28.05, Target Price 1: $28.44\n\nStock: MSA\nCurrent Price: $175.09\nStop Price from get_stop(): $169.66\nTrailing Percentage (from difference): 3.10%\nSymbol: MSA, Quantity: 2.08, Stop Price: 169.66, Limit Price: 169.16\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $175.09, Target Price 1: $186.94\n\nStock: LFUS\nCurrent Price: $246.4475\nStop Price from get_stop(): $241.38\nTrailing Percentage (from difference): 2.06%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 241.38, Limit Price: 240.88\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $246.45, Target Price 1: $268.79\n\nStock: SPG\nCurrent Price: $185.185\nStop Price from get_stop(): $182.22\nTrailing Percentage (from difference): 1.60%\nSymbol: SPG, Quantity: 3.0942, Stop Price: 182.22, Limit Price: 181.72\nFirst target price not yet reached for SPG, setting stop loss order.\nCurrent Price: $185.19, Target Price 1: $186.26\n\nStock: VUG\nCurrent Price: $406.2407\nStop Price from get_stop(): $404.32\nTrailing Percentage (from difference): 0.47%\nSymbol: VUG, Quantity: 1.07, Stop Price: 404.32, Limit Price: 403.82\nFirst target price not yet reached for VUG, setting stop loss order.\nCurrent Price: $406.24, Target Price 1: $430.47\n\nStock: VTR\nCurrent Price: $65.0\nStop Price from get_stop(): $62.11\nTrailing Percentage (from difference): 4.45%\nSymbol: VTR, Quantity: 1.67, Stop Price: 62.11, Limit Price: 61.61\nFirst target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $65.00, Target Price 1: $69.37\n\nStock: XYL\nCurrent Price: $125.3725\nStop Price from get_stop(): $123.82\nTrailing Percentage (from difference): 1.24%\nSymbol: XYL, Quantity: 3.66, Stop Price: 123.81, Limit Price: 123.31\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $125.37, Target Price 1: $133.99\n\nStock: CRAI\nCurrent Price: $199.32\nStop Price from get_stop(): $197.45\nTrailing Percentage (from difference): 0.94%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 197.45, Limit Price: 196.95\nFirst target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $199.32, Target Price 1: $207.55\n\nStock: ICE\nCurrent Price: $161.47\nStop Price from get_stop(): $156.41\nTrailing Percentage (from difference): 3.13%\nSymbol: ICE, Quantity: 2.3, Stop Price: 156.41, Limit Price: 155.91\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $161.47, Target Price 1: $168.74\n\nStock: LEA\nCurrent Price: $97.855\nStop Price from get_stop(): $96.04\nTrailing Percentage (from difference): 1.85%\nSymbol: LEA, Quantity: 3.59, Stop Price: 96.03, Limit Price: 95.53\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $97.86, Target Price 1: $108.10\n\nStock: SYF\nCurrent Price: $67.18\nStop Price from get_stop(): $65.04\nTrailing Percentage (from difference): 3.19%\nSymbol: SYF, Quantity: 5.45, Stop Price: 65.04, Limit Price: 64.54\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $67.18, Target Price 1: $71.27\nEnding main loop iteration...\nMarket is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\nLoading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\nLoading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nLoading page 111 ...\nLoading page 112 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.31\nStop Price from get_stop(): $63.55\nTrailing Percentage (from difference): 1.18%\nSymbol: KO, Quantity: 7.26, Stop Price: 63.55, Limit Price: 63.05\nFirst target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.31, Target Price 1: $67.06\n\nStock: OTIS\nCurrent Price: $102.08\nStop Price from get_stop(): $100.46\nTrailing Percentage (from difference): 1.59%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 100.46, Limit Price: 99.96\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $102.08, Target Price 1: $107.92\n\nStock: GIS\nCurrent Price: $66.24\nStop Price from get_stop(): $64.59\nTrailing Percentage (from difference): 2.49%\nSymbol: GIS, Quantity: 7.24, Stop Price: 64.59, Limit Price: 64.09\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $66.24, Target Price 1: $67.27\n\nStock: ABT\nCurrent Price: $119.0083\nStop Price from get_stop(): $115.0\nTrailing Percentage (from difference): 3.37%\nSymbol: ABT, Quantity: 3.11, Stop Price: 115.0, Limit Price: 114.5\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $119.01, Target Price 1: $124.20\n\nStock: NUE\nCurrent Price: $154.755\nStop Price from get_stop(): $152.95\nTrailing Percentage (from difference): 1.17%\nSymbol: NUE, Quantity: 2.34, Stop Price: 152.95, Limit Price: 152.45\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $154.75, Target Price 1: $164.59\n\nStock: DUK\nCurrent Price: $117.435\nStop Price from get_stop(): $113.38\nTrailing Percentage (from difference): 3.45%\nSymbol: DUK, Quantity: 4.03, Stop Price: 113.38, Limit Price: 112.88\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $117.44, Target Price 1: $120.84\n\nStock: BBY\nCurrent Price: $88.44\nStop Price from get_stop(): $86.85\nTrailing Percentage (from difference): 1.80%\nSymbol: BBY, Quantity: 3.9, Stop Price: 86.85, Limit Price: 86.35\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $88.44, Target Price 1: $98.88\n\nStock: HD\nCurrent Price: $426.97\nStop Price from get_stop(): $426.28\nTrailing Percentage (from difference): 0.16%\nSymbol: HD, Quantity: 1.13, Stop Price: 426.27, Limit Price: 425.77\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $426.97, Target Price 1: $431.71\n\nStock: NSC\nCurrent Price: $276.32\nStop Price from get_stop(): $267.48\nTrailing Percentage (from difference): 3.20%\nSymbol: NSC, Quantity: 1.33, Stop Price: 267.48, Limit Price: 266.98\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $276.32, Target Price 1: $289.60\n\nStock: SYY\nCurrent Price: $76.77\nStop Price from get_stop(): $75.17\nTrailing Percentage (from difference): 2.08%\nSymbol: SYY, Quantity: 4.75, Stop Price: 75.17, Limit Price: 74.67\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $76.77, Target Price 1: $81.24\n\nStock: IBM\nCurrent Price: $226.1997\nStop Price from get_stop(): $222.56\nTrailing Percentage (from difference): 1.61%\nSymbol: IBM, Quantity: 2.08, Stop Price: 222.56, Limit Price: 222.06\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $226.20, Target Price 1: $234.25\n\nStock: ABBV\nCurrent Price: $183.32\nStop Price from get_stop(): $179.56\nTrailing Percentage (from difference): 2.05%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 179.56, Limit Price: 179.06\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $183.32, Target Price 1: $187.23\n\nStock: JBHT\nCurrent Price: $190.21\nStop Price from get_stop(): $189.08\nTrailing Percentage (from difference): 0.59%\nSymbol: JBHT, Quantity: 0.94, Stop Price: 189.07, Limit Price: 188.57\nSkipping order for JBHT because quantity to sell is less than 1.\nFirst target price not yet reached for JBHT, setting stop loss order.\nCurrent Price: $190.21, Target Price 1: $198.91\n\nStock: CCI\nCurrent Price: $106.955\nStop Price from get_stop(): $103.5\nTrailing Percentage (from difference): 3.23%\nSymbol: CCI, Quantity: 4.41, Stop Price: 103.5, Limit Price: 103.0\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $106.95, Target Price 1: $110.36\n\nStock: SWK\nCurrent Price: $89.74\nStop Price from get_stop(): $86.98\nTrailing Percentage (from difference): 3.08%\nSymbol: SWK, Quantity: 3.97, Stop Price: 86.98, Limit Price: 86.48\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $89.74, Target Price 1: $97.15\n\nStock: SNX\nCurrent Price: $120.37\nStop Price from get_stop(): $118.31\nTrailing Percentage (from difference): 1.71%\nSymbol: SNX, Quantity: 2.99, Stop Price: 118.31, Limit Price: 117.81\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $120.37, Target Price 1: $128.86\n\nStock: GWRE\nCurrent Price: $201.69\nStop Price from get_stop(): $201.05\nTrailing Percentage (from difference): 0.32%\nSymbol: GWRE, Quantity: 0.31, Stop Price: 201.05, Limit Price: 200.55\nSkipping order for GWRE because quantity to sell is less than 1.\nFirst target price not yet reached for GWRE, setting stop loss order.\nCurrent Price: $201.69, Target Price 1: $210.75\n\nStock: O\nCurrent Price: $58.505\nStop Price from get_stop(): $56.42\nTrailing Percentage (from difference): 3.56%\nSymbol: O, Quantity: 8.05, Stop Price: 56.42, Limit Price: 55.92\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $58.51, Target Price 1: $60.46\n\nStock: CMS\nCurrent Price: $70.42\nStop Price from get_stop(): $68.58\nTrailing Percentage (from difference): 2.61%\nSymbol: CMS, Quantity: 6.7, Stop Price: 68.58, Limit Price: 68.08\nFirst target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $70.42, Target Price 1: $72.69\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: DFS\nCurrent Price: $182.52\nStop Price from get_stop(): $177.16\nTrailing Percentage (from difference): 2.94%\nSymbol: DFS, Quantity: 2.0, Stop Price: 177.16, Limit Price: 176.66\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $182.52, Target Price 1: $192.42\n\nStock: OTTR\nCurrent Price: $80.94\nStop Price from get_stop(): $79.66\nTrailing Percentage (from difference): 1.58%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 79.66, Limit Price: 79.16\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $80.94, Target Price 1: $87.30\n\nStock: BYD\nCurrent Price: $73.42\nStop Price from get_stop(): $71.68\nTrailing Percentage (from difference): 2.37%\nSymbol: BYD, Quantity: 4.95, Stop Price: 71.68, Limit Price: 71.18\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $73.42, Target Price 1: $77.97\n\nStock: EXPO\nCurrent Price: $98.79\nStop Price from get_stop(): $95.97\nTrailing Percentage (from difference): 2.85%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 95.97, Limit Price: 95.47\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $98.79, Target Price 1: $106.20\n\nStock: FCX\nCurrent Price: $43.72\nStop Price from get_stop(): $42.12\nTrailing Percentage (from difference): 3.66%\nSymbol: FCX, Quantity: 8.98, Stop Price: 42.12, Limit Price: 41.62\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $43.72, Target Price 1: $50.99\n\nStock: AZN\nCurrent Price: $67.125\nStop Price from get_stop(): $64.94\nTrailing Percentage (from difference): 3.26%\nSymbol: AZN, Quantity: 5.54, Stop Price: 64.94, Limit Price: 64.44\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $67.12, Target Price 1: $69.63\n\nStock: PEP\nCurrent Price: $162.375\nStop Price from get_stop(): $159.91\nTrailing Percentage (from difference): 1.52%\nSymbol: PEP, Quantity: 2.25, Stop Price: 159.91, Limit Price: 159.41\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $162.38, Target Price 1: $171.09\n\nStock: STT\nCurrent Price: $98.67\nStop Price from get_stop(): $96.78\nTrailing Percentage (from difference): 1.92%\nSymbol: STT, Quantity: 3.7, Stop Price: 96.78, Limit Price: 96.28\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $98.67, Target Price 1: $104.08\n\nStock: KKR\nCurrent Price: $160.945\nStop Price from get_stop(): $160.23\nTrailing Percentage (from difference): 0.44%\nSymbol: KKR, Quantity: 0.92, Stop Price: 160.23, Limit Price: 159.73\nSkipping order for KKR because quantity to sell is less than 1.\nFirst target price not yet reached for KKR, setting stop loss order.\nCurrent Price: $160.94, Target Price 1: $166.52\n\nStock: AOS\nCurrent Price: $74.08\nStop Price from get_stop(): $72.82\nTrailing Percentage (from difference): 1.70%\nSymbol: AOS, Quantity: 4.85, Stop Price: 72.82, Limit Price: 72.32\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $74.08, Target Price 1: $79.51\n\nStock: ASH\nCurrent Price: $78.27\nStop Price from get_stop(): $75.82\nTrailing Percentage (from difference): 3.13%\nSymbol: ASH, Quantity: 4.53, Stop Price: 75.82, Limit Price: 75.32\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $78.27, Target Price 1: $85.15\n\nStock: TM\nCurrent Price: $169.34\nStop Price from get_stop(): $171.07\nTrailing Percentage (from difference): -1.02%\nSymbol: TM, Quantity: 2.14, Stop Price: 171.07, Limit Price: 170.57\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $169.34, Target Price 1: $193.67\n\nStock: XLB\nCurrent Price: $94.2899\nStop Price from get_stop(): $93.15\nTrailing Percentage (from difference): 1.21%\nSymbol: XLB, Quantity: 3.85, Stop Price: 93.15, Limit Price: 92.65\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $94.29, Target Price 1: $100.13\n\nStock: PKG\nCurrent Price: $246.62\nStop Price from get_stop(): $240.29\nTrailing Percentage (from difference): 2.57%\nSymbol: PKG, Quantity: 1.48, Stop Price: 240.29, Limit Price: 239.79\nFirst target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $246.62, Target Price 1: $260.91\n\nStock: VTV\nCurrent Price: $181.3001\nStop Price from get_stop(): $179.13\nTrailing Percentage (from difference): 1.20%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 179.13, Limit Price: 178.63\nFirst target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $181.30, Target Price 1: $188.47\n\nStock: XLI\nCurrent Price: $143.21\nStop Price from get_stop(): $141.79\nTrailing Percentage (from difference): 0.99%\nSymbol: XLI, Quantity: 2.56, Stop Price: 141.79, Limit Price: 141.29\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $143.21, Target Price 1: $150.78\n\nStock: EBAY\nCurrent Price: $64.37\nStop Price from get_stop(): $64.04\nTrailing Percentage (from difference): 0.51%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 64.04, Limit Price: 63.540000000000006\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $64.37, Target Price 1: $68.71\n\nStock: ES\nCurrent Price: $64.62\nStop Price from get_stop(): $61.89\nTrailing Percentage (from difference): 4.22%\nSymbol: ES, Quantity: 7.41, Stop Price: 61.89, Limit Price: 61.39\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $64.62, Target Price 1: $65.69\n\nStock: CBT\nCurrent Price: $109.89\nStop Price from get_stop(): $107.7\nTrailing Percentage (from difference): 1.99%\nSymbol: CBT, Quantity: 3.2, Stop Price: 107.7, Limit Price: 107.2\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $109.89, Target Price 1: $120.34\n\nStock: WM\nCurrent Price: $228.475\nStop Price from get_stop(): $223.32\nTrailing Percentage (from difference): 2.26%\nSymbol: WM, Quantity: 3.7, Stop Price: 223.32, Limit Price: 222.82\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $228.47, Target Price 1: $235.48\n\nStock: PCAR\nCurrent Price: $115.81\nStop Price from get_stop(): $113.02\nTrailing Percentage (from difference): 2.41%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 113.02, Limit Price: 112.52\nFirst target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $115.81, Target Price 1: $122.04\n\nStock: EHC\nCurrent Price: $102.72\nStop Price from get_stop(): $103.04\nTrailing Percentage (from difference): -0.31%\nSymbol: EHC, Quantity: 0.62, Stop Price: 103.03, Limit Price: 102.53\nSkipping order for EHC because quantity to sell is less than 1.\nFirst target price not yet reached for EHC, setting stop loss order.\nCurrent Price: $102.72, Target Price 1: $106.58\n\nStock: STX\nCurrent Price: $100.325\nStop Price from get_stop(): $99.15\nTrailing Percentage (from difference): 1.17%\nSymbol: STX, Quantity: 0.58, Stop Price: 99.15, Limit Price: 98.65\nSkipping order for STX because quantity to sell is less than 1.\nFirst target price not yet reached for STX, setting stop loss order.\nCurrent Price: $100.33, Target Price 1: $107.58\n\nStock: USB\nCurrent Price: $53.44\nStop Price from get_stop(): $52.8\nTrailing Percentage (from difference): 1.20%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.8, Limit Price: 52.3\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.44, Target Price 1: $54.43\n\nStock: SJW\nCurrent Price: $55.39\nStop Price from get_stop(): $53.61\nTrailing Percentage (from difference): 3.21%\nSymbol: SJW, Quantity: 8.38, Stop Price: 53.61, Limit Price: 53.11\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $55.39, Target Price 1: $58.13\n\nStock: BRC\nCurrent Price: $74.625\nStop Price from get_stop(): $73.02\nTrailing Percentage (from difference): 2.15%\nSymbol: BRC, Quantity: 4.88, Stop Price: 73.02, Limit Price: 72.52\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $74.62, Target Price 1: $78.94\n\nStock: KMI\nCurrent Price: $28.155\nStop Price from get_stop(): $27.49\nTrailing Percentage (from difference): 2.36%\nSymbol: KMI, Quantity: 1.08, Stop Price: 27.49, Limit Price: 26.99\nFirst target price not yet reached for KMI, setting stop loss order.\nCurrent Price: $28.16, Target Price 1: $28.25\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: MSA\nCurrent Price: $174.825\nStop Price from get_stop(): $169.66\nTrailing Percentage (from difference): 2.95%\nSymbol: MSA, Quantity: 2.08, Stop Price: 169.66, Limit Price: 169.16\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $174.82, Target Price 1: $185.71\n\nStock: LFUS\nCurrent Price: $245.915\nStop Price from get_stop(): $241.38\nTrailing Percentage (from difference): 1.84%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 241.38, Limit Price: 240.88\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $245.91, Target Price 1: $267.01\n\nStock: SPG\nCurrent Price: $184.05\nStop Price from get_stop(): $182.22\nTrailing Percentage (from difference): 0.99%\nSymbol: SPG, Quantity: 3.0942, Stop Price: 182.22, Limit Price: 181.72\nFirst target price not yet reached for SPG, setting stop loss order.\nCurrent Price: $184.05, Target Price 1: $185.03\n\nStock: VUG\nCurrent Price: $405.4819\nStop Price from get_stop(): $404.32\nTrailing Percentage (from difference): 0.29%\nSymbol: VUG, Quantity: 0.07, Stop Price: 404.32, Limit Price: 403.82\nSkipping order for VUG because quantity to sell is less than 1.\nFirst target price not yet reached for VUG, setting stop loss order.\nCurrent Price: $405.48, Target Price 1: $427.63\n\nStock: VTR\nCurrent Price: $64.59\nStop Price from get_stop(): $62.11\nTrailing Percentage (from difference): 3.84%\nSymbol: VTR, Quantity: 1.67, Stop Price: 62.11, Limit Price: 61.61\nFirst target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $64.59, Target Price 1: $68.92\n\nStock: XYL\nCurrent Price: $125.875\nStop Price from get_stop(): $123.82\nTrailing Percentage (from difference): 1.63%\nSymbol: XYL, Quantity: 3.66, Stop Price: 123.81, Limit Price: 123.31\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $125.88, Target Price 1: $133.11\n\nStock: CRAI\nCurrent Price: $194.57\nStop Price from get_stop(): $197.45\nTrailing Percentage (from difference): -1.48%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 197.45, Limit Price: 196.95\nFirst target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $194.57, Target Price 1: $206.18\n\nStock: ICE\nCurrent Price: $161.02\nStop Price from get_stop(): $156.41\nTrailing Percentage (from difference): 2.86%\nSymbol: ICE, Quantity: 2.3, Stop Price: 156.41, Limit Price: 155.91\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $161.02, Target Price 1: $167.63\n\nStock: LEA\nCurrent Price: $97.045\nStop Price from get_stop(): $96.04\nTrailing Percentage (from difference): 1.04%\nSymbol: LEA, Quantity: 3.59, Stop Price: 96.03, Limit Price: 95.53\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $97.05, Target Price 1: $107.39\n\nStock: SYF\nCurrent Price: $67.05\nStop Price from get_stop(): $65.04\nTrailing Percentage (from difference): 3.00%\nSymbol: SYF, Quantity: 5.45, Stop Price: 65.04, Limit Price: 64.54\nFirst target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $67.05, Target Price 1: $70.80\nEnding main loop iteration...\nMarket is closed or it's past 3:30 PM ET. Waiting until 10:00 AM ET to start again.\nMarket is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\nLoading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\nLoading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nLoading page 111 ...\nLoading page 112 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.55\nStop Price from get_stop(): $63.32\nTrailing Percentage (from difference): 1.91%\nSymbol: KO, Quantity: 7.26, Stop Price: 63.32, Limit Price: 62.82\nFirst target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.55, Target Price 1: $67.41\n\nStock: OTIS\nCurrent Price: $102.52\nStop Price from get_stop(): $100.46\nTrailing Percentage (from difference): 2.01%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 100.46, Limit Price: 99.96\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $102.52, Target Price 1: $108.50\n\nStock: GIS\nCurrent Price: $66.0\nStop Price from get_stop(): $65.22\nTrailing Percentage (from difference): 1.18%\nSymbol: GIS, Quantity: 7.24, Stop Price: 65.22, Limit Price: 64.72\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $66.00, Target Price 1: $67.63\n\nStock: ABT\nCurrent Price: $118.37\nStop Price from get_stop(): $115.54\nTrailing Percentage (from difference): 2.39%\nSymbol: ABT, Quantity: 3.11, Stop Price: 115.54, Limit Price: 115.04\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $118.37, Target Price 1: $124.85\n\nStock: NUE\nCurrent Price: $154.77\nStop Price from get_stop(): $153.78\nTrailing Percentage (from difference): 0.64%\nSymbol: NUE, Quantity: 2.34, Stop Price: 153.78, Limit Price: 153.28\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $154.77, Target Price 1: $165.46\n\nStock: DUK\nCurrent Price: $117.42\nStop Price from get_stop(): $115.81\nTrailing Percentage (from difference): 1.37%\nSymbol: DUK, Quantity: 4.03, Stop Price: 115.81, Limit Price: 115.31\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $117.42, Target Price 1: $121.48\n\nStock: BBY\nCurrent Price: $88.17\nStop Price from get_stop(): $87.52\nTrailing Percentage (from difference): 0.74%\nSymbol: BBY, Quantity: 3.9, Stop Price: 87.52, Limit Price: 87.02\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $88.17, Target Price 1: $99.40\n\nStock: HD\nCurrent Price: $427.19\nStop Price from get_stop(): $421.54\nTrailing Percentage (from difference): 1.32%\nSymbol: HD, Quantity: 1.13, Stop Price: 421.54, Limit Price: 421.04\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $427.19, Target Price 1: $434.01\n\nStock: NSC\nCurrent Price: $276.17\nStop Price from get_stop(): $272.2\nTrailing Percentage (from difference): 1.44%\nSymbol: NSC, Quantity: 1.33, Stop Price: 272.2, Limit Price: 271.7\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $276.17, Target Price 1: $291.13\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: SYY\nCurrent Price: $76.65\nStop Price from get_stop(): $75.72\nTrailing Percentage (from difference): 1.21%\nSymbol: SYY, Quantity: 4.75, Stop Price: 75.72, Limit Price: 75.22\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $76.65, Target Price 1: $81.67\n\nStock: IBM\nCurrent Price: $227.0\nStop Price from get_stop(): $219.41\nTrailing Percentage (from difference): 3.34%\nSymbol: IBM, Quantity: 2.08, Stop Price: 219.41, Limit Price: 218.91\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $227.00, Target Price 1: $235.50\n\nStock: ABBV\nCurrent Price: $183.75\nStop Price from get_stop(): $177.71\nTrailing Percentage (from difference): 3.29%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 177.71, Limit Price: 177.21\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $183.75, Target Price 1: $188.22\n\nStock: JBHT\nCurrent Price: $188.7\nStop Price from get_stop(): $185.38\nTrailing Percentage (from difference): 1.76%\nSymbol: JBHT, Quantity: 0.94, Stop Price: 185.38, Limit Price: 184.88\nSkipping order for JBHT because quantity to sell is less than 1.\nFirst target price not yet reached for JBHT, setting stop loss order.\nCurrent Price: $188.70, Target Price 1: $199.96\n\nStock: CCI\nCurrent Price: $106.7\nStop Price from get_stop(): $105.69\nTrailing Percentage (from difference): 0.95%\nSymbol: CCI, Quantity: 4.41, Stop Price: 105.69, Limit Price: 105.19\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $106.70, Target Price 1: $110.95\n\nStock: SWK\nCurrent Price: $89.5\nStop Price from get_stop(): $87.6\nTrailing Percentage (from difference): 2.12%\nSymbol: SWK, Quantity: 3.97, Stop Price: 87.6, Limit Price: 87.1\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $89.50, Target Price 1: $97.67\n\nStock: SNX\nCurrent Price: $119.77\nStop Price from get_stop(): $117.02\nTrailing Percentage (from difference): 2.30%\nSymbol: SNX, Quantity: 2.99, Stop Price: 117.02, Limit Price: 116.52\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $119.77, Target Price 1: $129.54\n\nStock: GWRE\nCurrent Price: $201.88\nStop Price from get_stop(): $195.82\nTrailing Percentage (from difference): 3.00%\nSymbol: GWRE, Quantity: 0.31, Stop Price: 195.82, Limit Price: 195.32\nSkipping order for GWRE because quantity to sell is less than 1.\nFirst target price not yet reached for GWRE, setting stop loss order.\nCurrent Price: $201.88, Target Price 1: $211.87\n\nStock: O\nCurrent Price: $58.55\nStop Price from get_stop(): $57.42\nTrailing Percentage (from difference): 1.93%\nSymbol: O, Quantity: 8.05, Stop Price: 57.42, Limit Price: 56.92\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $58.55, Target Price 1: $60.78\n\nStock: CMS\nCurrent Price: $70.49\nStop Price from get_stop(): $69.24\nTrailing Percentage (from difference): 1.77%\nSymbol: CMS, Quantity: 6.7, Stop Price: 69.24, Limit Price: 68.74\nFirst target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $70.49, Target Price 1: $73.07\n\nStock: DFS\nCurrent Price: $182.56\nStop Price from get_stop(): $176.85\nTrailing Percentage (from difference): 3.13%\nSymbol: DFS, Quantity: 2.0, Stop Price: 176.85, Limit Price: 176.35\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $182.56, Target Price 1: $193.44\n\nStock: OTTR\nCurrent Price: $80.88\nStop Price from get_stop(): $78.79\nTrailing Percentage (from difference): 2.58%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 78.79, Limit Price: 78.29\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $80.88, Target Price 1: $87.76\n\nStock: BYD\nCurrent Price: $73.1\nStop Price from get_stop(): $72.13\nTrailing Percentage (from difference): 1.33%\nSymbol: BYD, Quantity: 4.95, Stop Price: 72.13, Limit Price: 71.63\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $73.10, Target Price 1: $78.38\n\nStock: EXPO\nCurrent Price: $98.61\nStop Price from get_stop(): $96.45\nTrailing Percentage (from difference): 2.19%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 96.45, Limit Price: 95.95\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $98.61, Target Price 1: $106.76\n\nStock: FCX\nCurrent Price: $43.6803\nStop Price from get_stop(): $42.75\nTrailing Percentage (from difference): 2.13%\nSymbol: FCX, Quantity: 8.98, Stop Price: 42.75, Limit Price: 42.25\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $43.68, Target Price 1: $51.26\n\nStock: AZN\nCurrent Price: $67.2173\nStop Price from get_stop(): $65.87\nTrailing Percentage (from difference): 2.00%\nSymbol: AZN, Quantity: 5.54, Stop Price: 65.87, Limit Price: 65.37\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $67.22, Target Price 1: $70.00\n\nStock: PEP\nCurrent Price: $162.6\nStop Price from get_stop(): $158.0\nTrailing Percentage (from difference): 2.83%\nSymbol: PEP, Quantity: 2.25, Stop Price: 158.0, Limit Price: 157.5\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $162.60, Target Price 1: $172.00\n\nStock: STT\nCurrent Price: $99.0\nStop Price from get_stop(): $97.54\nTrailing Percentage (from difference): 1.47%\nSymbol: STT, Quantity: 3.7, Stop Price: 97.54, Limit Price: 97.04\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $99.00, Target Price 1: $104.63\n\nStock: KKR\nCurrent Price: $161.0\nStop Price from get_stop(): $156.66\nTrailing Percentage (from difference): 2.70%\nSymbol: KKR, Quantity: 0.92, Stop Price: 156.66, Limit Price: 156.16\nSkipping order for KKR because quantity to sell is less than 1.\nFirst target price not yet reached for KKR, setting stop loss order.\nCurrent Price: $161.00, Target Price 1: $167.40\n\nStock: AOS\nCurrent Price: $74.1\nStop Price from get_stop(): $72.97\nTrailing Percentage (from difference): 1.52%\nSymbol: AOS, Quantity: 4.85, Stop Price: 72.97, Limit Price: 72.47\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $74.10, Target Price 1: $79.93\n\nStock: ASH\nCurrent Price: $78.31\nStop Price from get_stop(): $76.76\nTrailing Percentage (from difference): 1.98%\nSymbol: ASH, Quantity: 4.53, Stop Price: 76.76, Limit Price: 76.26\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $78.31, Target Price 1: $85.60\n\nStock: TM\nCurrent Price: $169.68\nStop Price from get_stop(): $167.88\nTrailing Percentage (from difference): 1.06%\nSymbol: TM, Quantity: 2.14, Stop Price: 167.88, Limit Price: 167.38\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $169.68, Target Price 1: $194.70\n\nStock: XLB\nCurrent Price: $94.3\nStop Price from get_stop(): $93.08\nTrailing Percentage (from difference): 1.29%\nSymbol: XLB, Quantity: 3.85, Stop Price: 93.08, Limit Price: 92.58\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $94.30, Target Price 1: $100.66\n\nStock: PKG\nCurrent Price: $247.03\nStop Price from get_stop(): $241.68\nTrailing Percentage (from difference): 2.17%\nSymbol: PKG, Quantity: 1.48, Stop Price: 241.68, Limit Price: 241.18\nFirst target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $247.03, Target Price 1: $262.29\n\nStock: VTV\nCurrent Price: $181.31\nStop Price from get_stop(): $179.9\nTrailing Percentage (from difference): 0.78%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 179.9, Limit Price: 179.4\nFirst target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $181.31, Target Price 1: $189.47\n\nStock: XLI\nCurrent Price: $143.16\nStop Price from get_stop(): $141.56\nTrailing Percentage (from difference): 1.12%\nSymbol: XLI, Quantity: 2.56, Stop Price: 141.56, Limit Price: 141.06\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $143.16, Target Price 1: $151.58\n\nStock: EBAY\nCurrent Price: $64.35\nStop Price from get_stop(): $62.84\nTrailing Percentage (from difference): 2.35%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 62.84, Limit Price: 62.34\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $64.35, Target Price 1: $69.08\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: ES\nCurrent Price: $64.59\nStop Price from get_stop(): $64.14\nTrailing Percentage (from difference): 0.70%\nSymbol: ES, Quantity: 7.41, Stop Price: 64.14, Limit Price: 63.64\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $64.59, Target Price 1: $66.04\n\nStock: CBT\nCurrent Price: $109.5\nStop Price from get_stop(): $105.77\nTrailing Percentage (from difference): 3.41%\nSymbol: CBT, Quantity: 3.2, Stop Price: 105.77, Limit Price: 105.27\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $109.50, Target Price 1: $120.98\n\nStock: WM\nCurrent Price: $229.09\nStop Price from get_stop(): $225.96\nTrailing Percentage (from difference): 1.37%\nSymbol: WM, Quantity: 3.7, Stop Price: 225.96, Limit Price: 225.46\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $229.09, Target Price 1: $236.73\n\nStock: PCAR\nCurrent Price: $116.18\nStop Price from get_stop(): $113.8\nTrailing Percentage (from difference): 2.05%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 113.8, Limit Price: 113.3\nFirst target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $116.18, Target Price 1: $122.68\n\nStock: EHC\nCurrent Price: $102.84\nStop Price from get_stop(): $100.38\nTrailing Percentage (from difference): 2.39%\nSymbol: EHC, Quantity: 0.62, Stop Price: 100.38, Limit Price: 99.88\nSkipping order for EHC because quantity to sell is less than 1.\nFirst target price not yet reached for EHC, setting stop loss order.\nCurrent Price: $102.84, Target Price 1: $107.15\n\nStock: STX\nCurrent Price: $100.0\nStop Price from get_stop(): $99.3\nTrailing Percentage (from difference): 0.70%\nSymbol: STX, Quantity: 0.58, Stop Price: 99.31, Limit Price: 98.81\nSkipping order for STX because quantity to sell is less than 1.\nFirst target price not yet reached for STX, setting stop loss order.\nCurrent Price: $100.00, Target Price 1: $108.15\n\nStock: USB\nCurrent Price: $53.4601\nStop Price from get_stop(): $52.42\nTrailing Percentage (from difference): 1.95%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.42, Limit Price: 51.92\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.46, Target Price 1: $54.72\n\nStock: SJW\nCurrent Price: $55.28\nStop Price from get_stop(): $54.02\nTrailing Percentage (from difference): 2.28%\nSymbol: SJW, Quantity: 8.38, Stop Price: 54.02, Limit Price: 53.52\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $55.28, Target Price 1: $58.44\n\nStock: BRC\nCurrent Price: $75.02\nStop Price from get_stop(): $72.98\nTrailing Percentage (from difference): 2.72%\nSymbol: BRC, Quantity: 4.88, Stop Price: 72.98, Limit Price: 72.48\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $75.02, Target Price 1: $79.36\n\nStock: KMI\nCurrent Price: $28.0\nStop Price from get_stop(): $27.67\nTrailing Percentage (from difference): 1.18%\nSymbol: KMI, Quantity: 1.08, Stop Price: 27.67, Limit Price: 27.17\nFirst target price not yet reached for KMI, setting stop loss order.\nCurrent Price: $28.00, Target Price 1: $28.40\n\nStock: MSA\nCurrent Price: $174.38\nStop Price from get_stop(): $172.14\nTrailing Percentage (from difference): 1.28%\nSymbol: MSA, Quantity: 2.08, Stop Price: 172.14, Limit Price: 171.64\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $174.38, Target Price 1: $186.69\n\nStock: LFUS\nCurrent Price: $245.84\nStop Price from get_stop(): $239.07\nTrailing Percentage (from difference): 2.75%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 239.07, Limit Price: 238.57\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $245.84, Target Price 1: $268.43\n\nStock: SPG\nCurrent Price: $183.75\nStop Price from get_stop(): $180.12\nTrailing Percentage (from difference): 1.98%\nSymbol: SPG, Quantity: 3.0942, Stop Price: 180.12, Limit Price: 179.62\nFirst target price not yet reached for SPG, setting stop loss order.\nCurrent Price: $183.75, Target Price 1: $186.01\n\nStock: VUG\nCurrent Price: $405.68\nStop Price from get_stop(): $399.72\nTrailing Percentage (from difference): 1.47%\nSymbol: VUG, Quantity: 0.07, Stop Price: 399.72, Limit Price: 399.22\nSkipping order for VUG because quantity to sell is less than 1.\nFirst target price not yet reached for VUG, setting stop loss order.\nCurrent Price: $405.68, Target Price 1: $429.90\n\nStock: VTR\nCurrent Price: $64.54\nStop Price from get_stop(): $63.64\nTrailing Percentage (from difference): 1.39%\nSymbol: VTR, Quantity: 1.67, Stop Price: 63.64, Limit Price: 63.14\nFirst target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $64.54, Target Price 1: $69.28\n\nStock: XYL\nCurrent Price: $125.61\nStop Price from get_stop(): $122.64\nTrailing Percentage (from difference): 2.36%\nSymbol: XYL, Quantity: 3.66, Stop Price: 122.64, Limit Price: 122.14\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $125.61, Target Price 1: $133.82\n\nStock: CRAI\nCurrent Price: $194.14\nStop Price from get_stop(): $192.96\nTrailing Percentage (from difference): 0.61%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 192.96, Limit Price: 192.46\nFirst target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $194.14, Target Price 1: $207.27\n\nStock: ICE\nCurrent Price: $161.19\nStop Price from get_stop(): $158.06\nTrailing Percentage (from difference): 1.94%\nSymbol: ICE, Quantity: 2.3, Stop Price: 158.06, Limit Price: 157.56\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $161.19, Target Price 1: $168.52\n\nStock: LEA\nCurrent Price: $97.25\nStop Price from get_stop(): $94.56\nTrailing Percentage (from difference): 2.77%\nSymbol: LEA, Quantity: 3.59, Stop Price: 94.56, Limit Price: 94.06\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $97.25, Target Price 1: $107.96\n\nStock: SYF\nCurrent Price: $67.22\nStop Price from get_stop(): $65.34\nTrailing Percentage (from difference): 2.80%\nSymbol: SYF, Quantity: 5.45, Stop Price: 65.34, Limit Price: 64.84\nFirst target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $67.22, Target Price 1: $71.17\nEnding main loop iteration...\nMarket is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\nLoading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\n"}, {"name": "stdout", "output_type": "stream", "text": "Loading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nLoading page 111 ...\nLoading page 112 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.55\nStop Price from get_stop(): $63.32\nTrailing Percentage (from difference): 1.91%\nSymbol: KO, Quantity: 7.26, Stop Price: 63.32, Limit Price: 62.82\nFirst target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.55, Target Price 1: $67.20\n\nStock: OTIS\nCurrent Price: $102.52\nStop Price from get_stop(): $100.46\nTrailing Percentage (from difference): 2.01%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 100.46, Limit Price: 99.96\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $102.52, Target Price 1: $108.15\n\nStock: GIS\nCurrent Price: $66.0\nStop Price from get_stop(): $65.22\nTrailing Percentage (from difference): 1.18%\nSymbol: GIS, Quantity: 7.24, Stop Price: 65.22, Limit Price: 64.72\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $66.00, Target Price 1: $67.42\n\nStock: ABT\nCurrent Price: $118.37\nStop Price from get_stop(): $115.54\nTrailing Percentage (from difference): 2.39%\nSymbol: ABT, Quantity: 3.11, Stop Price: 115.54, Limit Price: 115.04\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $118.37, Target Price 1: $124.46\n\nStock: NUE\nCurrent Price: $154.77\nStop Price from get_stop(): $153.78\nTrailing Percentage (from difference): 0.64%\nSymbol: NUE, Quantity: 2.34, Stop Price: 153.78, Limit Price: 153.28\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $154.77, Target Price 1: $164.94\n\nStock: DUK\nCurrent Price: $117.42\nStop Price from get_stop(): $115.81\nTrailing Percentage (from difference): 1.37%\nSymbol: DUK, Quantity: 4.03, Stop Price: 115.81, Limit Price: 115.31\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $117.42, Target Price 1: $121.09\n\nStock: BBY\nCurrent Price: $88.17\nStop Price from get_stop(): $87.52\nTrailing Percentage (from difference): 0.74%\nSymbol: BBY, Quantity: 3.9, Stop Price: 87.52, Limit Price: 87.02\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $88.17, Target Price 1: $99.08\n\nStock: HD\nCurrent Price: $427.19\nStop Price from get_stop(): $421.54\nTrailing Percentage (from difference): 1.32%\nSymbol: HD, Quantity: 1.13, Stop Price: 421.54, Limit Price: 421.04\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $427.19, Target Price 1: $432.63\n\nStock: NSC\nCurrent Price: $276.17\nStop Price from get_stop(): $272.2\nTrailing Percentage (from difference): 1.44%\nSymbol: NSC, Quantity: 1.33, Stop Price: 272.2, Limit Price: 271.7\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $276.17, Target Price 1: $290.21\n\nStock: SYY\nCurrent Price: $76.65\nStop Price from get_stop(): $75.72\nTrailing Percentage (from difference): 1.21%\nSymbol: SYY, Quantity: 4.75, Stop Price: 75.72, Limit Price: 75.22\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $76.65, Target Price 1: $81.41\n\nStock: IBM\nCurrent Price: $227.0\nStop Price from get_stop(): $219.41\nTrailing Percentage (from difference): 3.34%\nSymbol: IBM, Quantity: 2.08, Stop Price: 219.41, Limit Price: 218.91\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $227.00, Target Price 1: $234.75\n\nStock: ABBV\nCurrent Price: $183.75\nStop Price from get_stop(): $177.71\nTrailing Percentage (from difference): 3.29%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 177.71, Limit Price: 177.21\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $183.75, Target Price 1: $187.62\n\nStock: JBHT\nCurrent Price: $188.7\nStop Price from get_stop(): $185.38\nTrailing Percentage (from difference): 1.76%\nSymbol: JBHT, Quantity: 0.94, Stop Price: 185.38, Limit Price: 184.88\nSkipping order for JBHT because quantity to sell is less than 1.\nFirst target price not yet reached for JBHT, setting stop loss order.\nCurrent Price: $188.70, Target Price 1: $199.33\n\nStock: CCI\nCurrent Price: $106.7\nStop Price from get_stop(): $105.69\nTrailing Percentage (from difference): 0.95%\nSymbol: CCI, Quantity: 4.41, Stop Price: 105.69, Limit Price: 105.19\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $106.70, Target Price 1: $110.59\n\nStock: SWK\nCurrent Price: $89.5\nStop Price from get_stop(): $87.6\nTrailing Percentage (from difference): 2.12%\nSymbol: SWK, Quantity: 3.97, Stop Price: 87.6, Limit Price: 87.1\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $89.50, Target Price 1: $97.36\n\nStock: SNX\nCurrent Price: $119.77\nStop Price from get_stop(): $117.02\nTrailing Percentage (from difference): 2.30%\nSymbol: SNX, Quantity: 2.99, Stop Price: 117.02, Limit Price: 116.52\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $119.77, Target Price 1: $129.13\n\nStock: GWRE\nCurrent Price: $201.88\nStop Price from get_stop(): $195.82\nTrailing Percentage (from difference): 3.00%\nSymbol: GWRE, Quantity: 0.31, Stop Price: 195.82, Limit Price: 195.32\nSkipping order for GWRE because quantity to sell is less than 1.\nFirst target price not yet reached for GWRE, setting stop loss order.\nCurrent Price: $201.88, Target Price 1: $211.20\n\nStock: O\nCurrent Price: $58.55\nStop Price from get_stop(): $57.42\nTrailing Percentage (from difference): 1.93%\nSymbol: O, Quantity: 8.05, Stop Price: 57.42, Limit Price: 56.92\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $58.55, Target Price 1: $60.59\n\nStock: CMS\nCurrent Price: $70.49\nStop Price from get_stop(): $69.24\nTrailing Percentage (from difference): 1.77%\nSymbol: CMS, Quantity: 6.7, Stop Price: 69.24, Limit Price: 68.74\nFirst target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $70.49, Target Price 1: $72.84\n\nStock: DFS\nCurrent Price: $182.56\nStop Price from get_stop(): $176.85\nTrailing Percentage (from difference): 3.13%\nSymbol: DFS, Quantity: 2.0, Stop Price: 176.85, Limit Price: 176.35\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $182.56, Target Price 1: $192.82\n\nStock: OTTR\nCurrent Price: $80.88\nStop Price from get_stop(): $78.79\nTrailing Percentage (from difference): 2.58%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 78.79, Limit Price: 78.29\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $80.88, Target Price 1: $87.48\n\nStock: BYD\nCurrent Price: $73.1\nStop Price from get_stop(): $72.13\nTrailing Percentage (from difference): 1.33%\nSymbol: BYD, Quantity: 4.95, Stop Price: 72.13, Limit Price: 71.63\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $73.10, Target Price 1: $78.13\n\nStock: EXPO\nCurrent Price: $98.61\nStop Price from get_stop(): $96.45\nTrailing Percentage (from difference): 2.19%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 96.45, Limit Price: 95.95\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $98.61, Target Price 1: $106.42\n\nStock: FCX\nCurrent Price: $43.6803\nStop Price from get_stop(): $42.75\nTrailing Percentage (from difference): 2.13%\nSymbol: FCX, Quantity: 8.98, Stop Price: 42.75, Limit Price: 42.25\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $43.68, Target Price 1: $51.10\n\nStock: AZN\nCurrent Price: $67.2173\nStop Price from get_stop(): $65.87\nTrailing Percentage (from difference): 2.00%\nSymbol: AZN, Quantity: 5.54, Stop Price: 65.87, Limit Price: 65.37\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $67.22, Target Price 1: $69.78\n\nStock: PEP\nCurrent Price: $162.6\nStop Price from get_stop(): $158.0\nTrailing Percentage (from difference): 2.83%\nSymbol: PEP, Quantity: 2.25, Stop Price: 158.0, Limit Price: 157.5\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $162.60, Target Price 1: $171.45\n"}, {"name": "stdout", "output_type": "stream", "text": "\nStock: STT\nCurrent Price: $99.0\nStop Price from get_stop(): $97.54\nTrailing Percentage (from difference): 1.47%\nSymbol: STT, Quantity: 3.7, Stop Price: 97.54, Limit Price: 97.04\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $99.00, Target Price 1: $104.30\n\nStock: KKR\nCurrent Price: $161.0\nStop Price from get_stop(): $156.66\nTrailing Percentage (from difference): 2.70%\nSymbol: KKR, Quantity: 0.92, Stop Price: 156.66, Limit Price: 156.16\nSkipping order for KKR because quantity to sell is less than 1.\nFirst target price not yet reached for KKR, setting stop loss order.\nCurrent Price: $161.00, Target Price 1: $166.87\n\nStock: AOS\nCurrent Price: $74.1\nStop Price from get_stop(): $72.97\nTrailing Percentage (from difference): 1.52%\nSymbol: AOS, Quantity: 4.85, Stop Price: 72.97, Limit Price: 72.47\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $74.10, Target Price 1: $79.68\n\nStock: ASH\nCurrent Price: $78.31\nStop Price from get_stop(): $76.76\nTrailing Percentage (from difference): 1.98%\nSymbol: ASH, Quantity: 4.53, Stop Price: 76.76, Limit Price: 76.26\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $78.31, Target Price 1: $85.33\n\nStock: TM\nCurrent Price: $169.68\nStop Price from get_stop(): $167.88\nTrailing Percentage (from difference): 1.06%\nSymbol: TM, Quantity: 2.14, Stop Price: 167.88, Limit Price: 167.38\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $169.68, Target Price 1: $194.08\n\nStock: XLB\nCurrent Price: $94.3\nStop Price from get_stop(): $93.08\nTrailing Percentage (from difference): 1.29%\nSymbol: XLB, Quantity: 3.85, Stop Price: 93.08, Limit Price: 92.58\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $94.30, Target Price 1: $100.34\n\nStock: PKG\nCurrent Price: $247.03\nStop Price from get_stop(): $241.68\nTrailing Percentage (from difference): 2.17%\nSymbol: PKG, Quantity: 1.48, Stop Price: 241.68, Limit Price: 241.18\nFirst target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $247.03, Target Price 1: $261.46\n\nStock: VTV\nCurrent Price: $181.31\nStop Price from get_stop(): $179.9\nTrailing Percentage (from difference): 0.78%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 179.9, Limit Price: 179.4\nFirst target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $181.31, Target Price 1: $188.86\n\nStock: XLI\nCurrent Price: $143.16\nStop Price from get_stop(): $141.56\nTrailing Percentage (from difference): 1.12%\nSymbol: XLI, Quantity: 2.56, Stop Price: 141.56, Limit Price: 141.06\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $143.16, Target Price 1: $151.10\n\nStock: EBAY\nCurrent Price: $64.35\nStop Price from get_stop(): $62.84\nTrailing Percentage (from difference): 2.35%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 62.84, Limit Price: 62.34\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $64.35, Target Price 1: $68.86\n\nStock: ES\nCurrent Price: $64.59\nStop Price from get_stop(): $64.14\nTrailing Percentage (from difference): 0.70%\nSymbol: ES, Quantity: 7.41, Stop Price: 64.14, Limit Price: 63.64\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $64.59, Target Price 1: $65.83\n\nStock: CBT\nCurrent Price: $109.5\nStop Price from get_stop(): $105.77\nTrailing Percentage (from difference): 3.41%\nSymbol: CBT, Quantity: 3.2, Stop Price: 105.77, Limit Price: 105.27\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $109.50, Target Price 1: $120.60\n\nStock: WM\nCurrent Price: $229.09\nStop Price from get_stop(): $225.96\nTrailing Percentage (from difference): 1.37%\nSymbol: WM, Quantity: 3.7, Stop Price: 225.96, Limit Price: 225.46\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $229.09, Target Price 1: $235.98\n\nStock: PCAR\nCurrent Price: $116.18\nStop Price from get_stop(): $113.8\nTrailing Percentage (from difference): 2.05%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 113.8, Limit Price: 113.3\nFirst target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $116.18, Target Price 1: $122.29\n\nStock: EHC\nCurrent Price: $102.84\nStop Price from get_stop(): $100.38\nTrailing Percentage (from difference): 2.39%\nSymbol: EHC, Quantity: 0.62, Stop Price: 100.38, Limit Price: 99.88\nSkipping order for EHC because quantity to sell is less than 1.\nFirst target price not yet reached for EHC, setting stop loss order.\nCurrent Price: $102.84, Target Price 1: $106.81\n\nStock: STX\nCurrent Price: $100.0\nStop Price from get_stop(): $99.3\nTrailing Percentage (from difference): 0.70%\nSymbol: STX, Quantity: 0.58, Stop Price: 99.31, Limit Price: 98.81\nSkipping order for STX because quantity to sell is less than 1.\nFirst target price not yet reached for STX, setting stop loss order.\nCurrent Price: $100.00, Target Price 1: $107.81\n\nStock: USB\nCurrent Price: $53.4601\nStop Price from get_stop(): $52.42\nTrailing Percentage (from difference): 1.95%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.42, Limit Price: 51.92\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.46, Target Price 1: $54.55\n\nStock: SJW\nCurrent Price: $55.28\nStop Price from get_stop(): $54.02\nTrailing Percentage (from difference): 2.28%\nSymbol: SJW, Quantity: 8.38, Stop Price: 54.02, Limit Price: 53.52\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $55.28, Target Price 1: $58.25\n\nStock: BRC\nCurrent Price: $75.02\nStop Price from get_stop(): $72.98\nTrailing Percentage (from difference): 2.72%\nSymbol: BRC, Quantity: 4.88, Stop Price: 72.98, Limit Price: 72.48\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $75.02, Target Price 1: $79.11\n\nStock: KMI\nCurrent Price: $28.0\nStop Price from get_stop(): $27.67\nTrailing Percentage (from difference): 1.18%\nSymbol: KMI, Quantity: 1.08, Stop Price: 27.67, Limit Price: 27.17\nFirst target price not yet reached for KMI, setting stop loss order.\nCurrent Price: $28.00, Target Price 1: $28.31\n\nStock: MSA\nCurrent Price: $174.38\nStop Price from get_stop(): $172.14\nTrailing Percentage (from difference): 1.28%\nSymbol: MSA, Quantity: 2.08, Stop Price: 172.14, Limit Price: 171.64\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $174.38, Target Price 1: $186.10\n\nStock: LFUS\nCurrent Price: $245.84\nStop Price from get_stop(): $239.07\nTrailing Percentage (from difference): 2.75%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 239.07, Limit Price: 238.57\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $245.84, Target Price 1: $267.58\n\nStock: SPG\nCurrent Price: $183.75\nStop Price from get_stop(): $180.12\nTrailing Percentage (from difference): 1.98%\nSymbol: SPG, Quantity: 3.0942, Stop Price: 180.12, Limit Price: 179.62\nFirst target price not yet reached for SPG, setting stop loss order.\nCurrent Price: $183.75, Target Price 1: $185.42\n\nStock: VUG\nCurrent Price: $405.68\nStop Price from get_stop(): $399.72\nTrailing Percentage (from difference): 1.47%\nSymbol: VUG, Quantity: 0.07, Stop Price: 399.72, Limit Price: 399.22\nSkipping order for VUG because quantity to sell is less than 1.\nFirst target price not yet reached for VUG, setting stop loss order.\nCurrent Price: $405.68, Target Price 1: $428.53\n\nStock: VTR\nCurrent Price: $64.54\nStop Price from get_stop(): $63.64\nTrailing Percentage (from difference): 1.39%\nSymbol: VTR, Quantity: 1.67, Stop Price: 63.64, Limit Price: 63.14\nFirst target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $64.54, Target Price 1: $69.06\n\nStock: XYL\nCurrent Price: $125.61\nStop Price from get_stop(): $122.64\nTrailing Percentage (from difference): 2.36%\nSymbol: XYL, Quantity: 3.66, Stop Price: 122.64, Limit Price: 122.14\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $125.61, Target Price 1: $133.39\n\nStock: CRAI\nCurrent Price: $194.14\nStop Price from get_stop(): $192.96\nTrailing Percentage (from difference): 0.61%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 192.96, Limit Price: 192.46\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $194.14, Target Price 1: $206.61\n\nStock: ICE\nCurrent Price: $161.19\nStop Price from get_stop(): $158.06\nTrailing Percentage (from difference): 1.94%\nSymbol: ICE, Quantity: 2.3, Stop Price: 158.06, Limit Price: 157.56\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $161.19, Target Price 1: $167.98\n\nStock: LEA\nCurrent Price: $97.25\nStop Price from get_stop(): $94.56\nTrailing Percentage (from difference): 2.77%\nSymbol: LEA, Quantity: 3.59, Stop Price: 94.56, Limit Price: 94.06\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $97.25, Target Price 1: $107.62\n\nStock: SYF\nCurrent Price: $67.22\nStop Price from get_stop(): $65.34\nTrailing Percentage (from difference): 2.80%\nSymbol: SYF, Quantity: 5.45, Stop Price: 65.34, Limit Price: 64.84\nFirst target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $67.22, Target Price 1: $70.95\nEnding main loop iteration...\nMarket is closed or it's past 3:30 PM ET. Waiting until 10:00 AM ET to start again.\nMarket is open.\nFound Additional pages.\nLoading page 2 ...\nLoading page 3 ...\nLoading page 4 ...\nLoading page 5 ...\nLoading page 6 ...\nLoading page 7 ...\nLoading page 8 ...\nLoading page 9 ...\nLoading page 10 ...\nLoading page 11 ...\nLoading page 12 ...\nLoading page 13 ...\nLoading page 14 ...\nLoading page 15 ...\nLoading page 16 ...\nLoading page 17 ...\nLoading page 18 ...\nLoading page 19 ...\nLoading page 20 ...\nLoading page 21 ...\nLoading page 22 ...\nLoading page 23 ...\nLoading page 24 ...\nLoading page 25 ...\nLoading page 26 ...\nLoading page 27 ...\nLoading page 28 ...\nLoading page 29 ...\nLoading page 30 ...\nLoading page 31 ...\nLoading page 32 ...\nLoading page 33 ...\nLoading page 34 ...\nLoading page 35 ...\nLoading page 36 ...\nLoading page 37 ...\nLoading page 38 ...\nLoading page 39 ...\nLoading page 40 ...\nLoading page 41 ...\nLoading page 42 ...\nLoading page 43 ...\nLoading page 44 ...\nLoading page 45 ...\nLoading page 46 ...\nLoading page 47 ...\nLoading page 48 ...\nLoading page 49 ...\nLoading page 50 ...\nLoading page 51 ...\nLoading page 52 ...\nLoading page 53 ...\nLoading page 54 ...\nLoading page 55 ...\nLoading page 56 ...\nLoading page 57 ...\nLoading page 58 ...\nLoading page 59 ...\nLoading page 60 ...\nLoading page 61 ...\nLoading page 62 ...\nLoading page 63 ...\nLoading page 64 ...\nLoading page 65 ...\nLoading page 66 ...\nLoading page 67 ...\nLoading page 68 ...\nLoading page 69 ...\nLoading page 70 ...\nLoading page 71 ...\nLoading page 72 ...\nLoading page 73 ...\nLoading page 74 ...\nLoading page 75 ...\nLoading page 76 ...\nLoading page 77 ...\nLoading page 78 ...\nLoading page 79 ...\nLoading page 80 ...\nLoading page 81 ...\nLoading page 82 ...\nLoading page 83 ...\nLoading page 84 ...\nLoading page 85 ...\nLoading page 86 ...\nLoading page 87 ...\nLoading page 88 ...\nLoading page 89 ...\nLoading page 90 ...\nLoading page 91 ...\nLoading page 92 ...\nLoading page 93 ...\nLoading page 94 ...\nLoading page 95 ...\nLoading page 96 ...\nLoading page 97 ...\nLoading page 98 ...\nLoading page 99 ...\nLoading page 100 ...\nLoading page 101 ...\nLoading page 102 ...\nLoading page 103 ...\nLoading page 104 ...\nLoading page 105 ...\nLoading page 106 ...\nLoading page 107 ...\nLoading page 108 ...\nLoading page 109 ...\nLoading page 110 ...\nLoading page 111 ...\nLoading page 112 ...\nLoading page 113 ...\nStarting the loop to process each stock for trailing stop...\n\nStock: KO\nCurrent Price: $64.14\nStop Price from get_stop(): $63.32\nTrailing Percentage (from difference): 1.28%\nSymbol: KO, Quantity: 7.26, Stop Price: 63.32, Limit Price: 62.82\nFirst target price not yet reached for KO, setting stop loss order.\nCurrent Price: $64.14, Target Price 1: $66.96\n\nStock: OTIS\nCurrent Price: $102.685\nStop Price from get_stop(): $100.46\nTrailing Percentage (from difference): 2.17%\nSymbol: OTIS, Quantity: 3.57, Stop Price: 100.46, Limit Price: 99.96\nFirst target price not yet reached for OTIS, setting stop loss order.\nCurrent Price: $102.69, Target Price 1: $107.77\n\nStock: GIS\nCurrent Price: $66.02\nStop Price from get_stop(): $65.22\nTrailing Percentage (from difference): 1.21%\nSymbol: GIS, Quantity: 7.24, Stop Price: 65.22, Limit Price: 64.72\nFirst target price not yet reached for GIS, setting stop loss order.\nCurrent Price: $66.02, Target Price 1: $67.18\n\nStock: ABT\nCurrent Price: $118.83\nStop Price from get_stop(): $115.54\nTrailing Percentage (from difference): 2.77%\nSymbol: ABT, Quantity: 3.11, Stop Price: 115.54, Limit Price: 115.04\nFirst target price not yet reached for ABT, setting stop loss order.\nCurrent Price: $118.83, Target Price 1: $124.02\n\nStock: NUE\nCurrent Price: $154.9636\nStop Price from get_stop(): $153.78\nTrailing Percentage (from difference): 0.76%\nSymbol: NUE, Quantity: 2.34, Stop Price: 153.78, Limit Price: 153.28\nFirst target price not yet reached for NUE, setting stop loss order.\nCurrent Price: $154.96, Target Price 1: $164.35\n\nStock: DUK\nCurrent Price: $117.42\nStop Price from get_stop(): $115.81\nTrailing Percentage (from difference): 1.37%\nSymbol: DUK, Quantity: 4.03, Stop Price: 115.81, Limit Price: 115.31\nFirst target price not yet reached for DUK, setting stop loss order.\nCurrent Price: $117.42, Target Price 1: $120.66\n\nStock: BBY\nCurrent Price: $89.95\nStop Price from get_stop(): $87.52\nTrailing Percentage (from difference): 2.70%\nSymbol: BBY, Quantity: 3.9, Stop Price: 87.52, Limit Price: 87.02\nFirst target price not yet reached for BBY, setting stop loss order.\nCurrent Price: $89.95, Target Price 1: $98.73\n\nStock: HD\nCurrent Price: $428.795\nStop Price from get_stop(): $421.54\nTrailing Percentage (from difference): 1.69%\nSymbol: HD, Quantity: 1.13, Stop Price: 421.54, Limit Price: 421.04\nFirst target price not yet reached for HD, setting stop loss order.\nCurrent Price: $428.80, Target Price 1: $431.09\n\nStock: NSC\nCurrent Price: $276.1\nStop Price from get_stop(): $272.2\nTrailing Percentage (from difference): 1.41%\nSymbol: NSC, Quantity: 1.33, Stop Price: 272.2, Limit Price: 271.7\nFirst target price not yet reached for NSC, setting stop loss order.\nCurrent Price: $276.10, Target Price 1: $289.18\n\nStock: SYY\nCurrent Price: $76.71\nStop Price from get_stop(): $75.72\nTrailing Percentage (from difference): 1.29%\nSymbol: SYY, Quantity: 4.75, Stop Price: 75.72, Limit Price: 75.22\nFirst target price not yet reached for SYY, setting stop loss order.\nCurrent Price: $76.71, Target Price 1: $81.12\n\nStock: IBM\nCurrent Price: $228.63\nStop Price from get_stop(): $219.41\nTrailing Percentage (from difference): 4.03%\nSymbol: IBM, Quantity: 2.08, Stop Price: 219.41, Limit Price: 218.91\nFirst target price not yet reached for IBM, setting stop loss order.\nCurrent Price: $228.63, Target Price 1: $233.91\n\nStock: ABBV\nCurrent Price: $183.19\nStop Price from get_stop(): $177.71\nTrailing Percentage (from difference): 2.99%\nSymbol: ABBV, Quantity: 2.06, Stop Price: 177.71, Limit Price: 177.21\nFirst target price not yet reached for ABBV, setting stop loss order.\nCurrent Price: $183.19, Target Price 1: $186.96\n\nStock: CCI\nCurrent Price: $107.155\nStop Price from get_stop(): $105.69\nTrailing Percentage (from difference): 1.37%\nSymbol: CCI, Quantity: 4.41, Stop Price: 105.69, Limit Price: 105.19\nFirst target price not yet reached for CCI, setting stop loss order.\nCurrent Price: $107.16, Target Price 1: $110.20\n\nStock: SWK\nCurrent Price: $89.115\nStop Price from get_stop(): $87.6\nTrailing Percentage (from difference): 1.70%\nSymbol: SWK, Quantity: 3.97, Stop Price: 87.6, Limit Price: 87.1\nFirst target price not yet reached for SWK, setting stop loss order.\nCurrent Price: $89.11, Target Price 1: $97.01\n\nStock: SNX\nCurrent Price: $120.015\nStop Price from get_stop(): $117.02\nTrailing Percentage (from difference): 2.50%\nSymbol: SNX, Quantity: 2.99, Stop Price: 117.02, Limit Price: 116.52\nFirst target price not yet reached for SNX, setting stop loss order.\nCurrent Price: $120.02, Target Price 1: $128.67\n\nStock: O\nCurrent Price: $58.645\nStop Price from get_stop(): $57.42\nTrailing Percentage (from difference): 2.09%\nSymbol: O, Quantity: 8.05, Stop Price: 57.42, Limit Price: 56.92\nFirst target price not yet reached for O, setting stop loss order.\nCurrent Price: $58.65, Target Price 1: $60.37\n\nStock: CMS\nCurrent Price: $70.02\nStop Price from get_stop(): $69.24\nTrailing Percentage (from difference): 1.11%\nSymbol: CMS, Quantity: 6.7, Stop Price: 69.24, Limit Price: 68.74\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for CMS, setting stop loss order.\nCurrent Price: $70.02, Target Price 1: $72.58\n\nStock: DFS\nCurrent Price: $184.03\nStop Price from get_stop(): $176.85\nTrailing Percentage (from difference): 3.90%\nSymbol: DFS, Quantity: 2.0, Stop Price: 176.85, Limit Price: 176.35\nFirst target price not yet reached for DFS, setting stop loss order.\nCurrent Price: $184.03, Target Price 1: $192.14\n\nStock: OTTR\nCurrent Price: $81.15\nStop Price from get_stop(): $78.79\nTrailing Percentage (from difference): 2.91%\nSymbol: OTTR, Quantity: 4.41, Stop Price: 78.79, Limit Price: 78.29\nFirst target price not yet reached for OTTR, setting stop loss order.\nCurrent Price: $81.15, Target Price 1: $87.17\n\nStock: BYD\nCurrent Price: $73.945\nStop Price from get_stop(): $72.13\nTrailing Percentage (from difference): 2.45%\nSymbol: BYD, Quantity: 4.95, Stop Price: 72.13, Limit Price: 71.63\nFirst target price not yet reached for BYD, setting stop loss order.\nCurrent Price: $73.94, Target Price 1: $77.86\n\nStock: EXPO\nCurrent Price: $98.33\nStop Price from get_stop(): $96.45\nTrailing Percentage (from difference): 1.91%\nSymbol: EXPO, Quantity: 3.63, Stop Price: 96.45, Limit Price: 95.95\nFirst target price not yet reached for EXPO, setting stop loss order.\nCurrent Price: $98.33, Target Price 1: $106.04\n\nStock: FCX\nCurrent Price: $44.05\nStop Price from get_stop(): $42.75\nTrailing Percentage (from difference): 2.95%\nSymbol: FCX, Quantity: 8.98, Stop Price: 42.75, Limit Price: 42.25\nFirst target price not yet reached for FCX, setting stop loss order.\nCurrent Price: $44.05, Target Price 1: $50.92\n\nStock: AZN\nCurrent Price: $67.35\nStop Price from get_stop(): $65.87\nTrailing Percentage (from difference): 2.20%\nSymbol: AZN, Quantity: 5.54, Stop Price: 65.87, Limit Price: 65.37\nFirst target price not yet reached for AZN, setting stop loss order.\nCurrent Price: $67.35, Target Price 1: $69.53\n\nStock: PEP\nCurrent Price: $162.51\nStop Price from get_stop(): $158.0\nTrailing Percentage (from difference): 2.78%\nSymbol: PEP, Quantity: 2.25, Stop Price: 158.0, Limit Price: 157.5\nFirst target price not yet reached for PEP, setting stop loss order.\nCurrent Price: $162.51, Target Price 1: $170.84\n\nStock: STT\nCurrent Price: $99.025\nStop Price from get_stop(): $97.54\nTrailing Percentage (from difference): 1.50%\nSymbol: STT, Quantity: 3.7, Stop Price: 97.54, Limit Price: 97.04\nFirst target price not yet reached for STT, setting stop loss order.\nCurrent Price: $99.03, Target Price 1: $103.93\n\nStock: AOS\nCurrent Price: $74.205\nStop Price from get_stop(): $72.97\nTrailing Percentage (from difference): 1.66%\nSymbol: AOS, Quantity: 4.85, Stop Price: 72.97, Limit Price: 72.47\nFirst target price not yet reached for AOS, setting stop loss order.\nCurrent Price: $74.20, Target Price 1: $79.39\n\nStock: ASH\nCurrent Price: $77.84\nStop Price from get_stop(): $76.76\nTrailing Percentage (from difference): 1.39%\nSymbol: ASH, Quantity: 4.53, Stop Price: 76.76, Limit Price: 76.26\nFirst target price not yet reached for ASH, setting stop loss order.\nCurrent Price: $77.84, Target Price 1: $85.03\n\nStock: TM\nCurrent Price: $169.685\nStop Price from get_stop(): $167.88\nTrailing Percentage (from difference): 1.06%\nSymbol: TM, Quantity: 2.14, Stop Price: 167.88, Limit Price: 167.38\nFirst target price not yet reached for TM, setting stop loss order.\nCurrent Price: $169.69, Target Price 1: $193.39\n\nStock: XLB\nCurrent Price: $94.415\nStop Price from get_stop(): $93.08\nTrailing Percentage (from difference): 1.41%\nSymbol: XLB, Quantity: 3.85, Stop Price: 93.08, Limit Price: 92.58\nFirst target price not yet reached for XLB, setting stop loss order.\nCurrent Price: $94.42, Target Price 1: $99.98\n\nStock: PKG\nCurrent Price: $246.06\nStop Price from get_stop(): $241.68\nTrailing Percentage (from difference): 1.78%\nSymbol: PKG, Quantity: 1.48, Stop Price: 241.68, Limit Price: 241.18\nFirst target price not yet reached for PKG, setting stop loss order.\nCurrent Price: $246.06, Target Price 1: $260.53\n\nStock: VTV\nCurrent Price: $181.81\nStop Price from get_stop(): $179.9\nTrailing Percentage (from difference): 1.05%\nSymbol: VTV, Quantity: 3.1928, Stop Price: 179.9, Limit Price: 179.4\nFirst target price not yet reached for VTV, setting stop loss order.\nCurrent Price: $181.81, Target Price 1: $188.19\n\nStock: XLI\nCurrent Price: $143.82\nStop Price from get_stop(): $141.56\nTrailing Percentage (from difference): 1.57%\nSymbol: XLI, Quantity: 2.56, Stop Price: 141.56, Limit Price: 141.06\nFirst target price not yet reached for XLI, setting stop loss order.\nCurrent Price: $143.82, Target Price 1: $150.57\n\nStock: EBAY\nCurrent Price: $63.885\nStop Price from get_stop(): $62.84\nTrailing Percentage (from difference): 1.64%\nSymbol: EBAY, Quantity: 5.61, Stop Price: 62.84, Limit Price: 62.34\nFirst target price not yet reached for EBAY, setting stop loss order.\nCurrent Price: $63.88, Target Price 1: $68.62\n\nStock: ES\nCurrent Price: $64.36\nStop Price from get_stop(): $64.14\nTrailing Percentage (from difference): 0.34%\nSymbol: ES, Quantity: 7.41, Stop Price: 64.14, Limit Price: 63.64\nFirst target price not yet reached for ES, setting stop loss order.\nCurrent Price: $64.36, Target Price 1: $65.60\n\nStock: CBT\nCurrent Price: $109.18\nStop Price from get_stop(): $105.77\nTrailing Percentage (from difference): 3.12%\nSymbol: CBT, Quantity: 3.2, Stop Price: 105.77, Limit Price: 105.27\nFirst target price not yet reached for CBT, setting stop loss order.\nCurrent Price: $109.18, Target Price 1: $120.17\n\nStock: WM\nCurrent Price: $229.325\nStop Price from get_stop(): $225.96\nTrailing Percentage (from difference): 1.47%\nSymbol: WM, Quantity: 3.7, Stop Price: 225.96, Limit Price: 225.46\nFirst target price not yet reached for WM, setting stop loss order.\nCurrent Price: $229.32, Target Price 1: $235.14\n\nStock: PCAR\nCurrent Price: $116.685\nStop Price from get_stop(): $113.8\nTrailing Percentage (from difference): 2.47%\nSymbol: PCAR, Quantity: 3.16, Stop Price: 113.8, Limit Price: 113.3\nFirst target price not yet reached for PCAR, setting stop loss order.\nCurrent Price: $116.69, Target Price 1: $121.86\n\nStock: USB\nCurrent Price: $53.26\nStop Price from get_stop(): $52.42\nTrailing Percentage (from difference): 1.58%\nSymbol: USB, Quantity: 8.94, Stop Price: 52.42, Limit Price: 51.92\nFirst target price not yet reached for USB, setting stop loss order.\nCurrent Price: $53.26, Target Price 1: $54.35\n\nStock: SJW\nCurrent Price: $55.765\nStop Price from get_stop(): $54.02\nTrailing Percentage (from difference): 3.13%\nSymbol: SJW, Quantity: 8.38, Stop Price: 54.02, Limit Price: 53.52\nFirst target price not yet reached for SJW, setting stop loss order.\nCurrent Price: $55.77, Target Price 1: $58.04\n\nStock: BRC\nCurrent Price: $75.49\nStop Price from get_stop(): $72.98\nTrailing Percentage (from difference): 3.32%\nSymbol: BRC, Quantity: 4.88, Stop Price: 72.98, Limit Price: 72.48\nFirst target price not yet reached for BRC, setting stop loss order.\nCurrent Price: $75.49, Target Price 1: $78.83\n\nStock: KMI\nCurrent Price: $28.3\nStop Price from get_stop(): $27.67\nTrailing Percentage (from difference): 2.23%\nFirst target price reached for KMI, Current Price: $28.30, with a gain of 5.49%.\nDue to low initial funding, the entire position in this stock has been sold for profit.\n\nStock: MSA\nCurrent Price: $173.83\nStop Price from get_stop(): $172.14\nTrailing Percentage (from difference): 0.97%\nSymbol: MSA, Quantity: 2.08, Stop Price: 172.14, Limit Price: 171.64\nFirst target price not yet reached for MSA, setting stop loss order.\nCurrent Price: $173.83, Target Price 1: $185.44\n\nStock: LFUS\nCurrent Price: $246.58\nStop Price from get_stop(): $239.07\nTrailing Percentage (from difference): 3.05%\nSymbol: LFUS, Quantity: 1.44, Stop Price: 239.07, Limit Price: 238.57\nFirst target price not yet reached for LFUS, setting stop loss order.\nCurrent Price: $246.58, Target Price 1: $266.63\n\nStock: SPG\nCurrent Price: $185.79\nStop Price from get_stop(): $180.12\nTrailing Percentage (from difference): 3.05%\nFirst target price reached for SPG, setting stop loss order for half at $184.66.\nCurrent Price: $185.79, Target Price 1: $184.76\n\nStock: VTR\nCurrent Price: $64.9\nStop Price from get_stop(): $63.64\nTrailing Percentage (from difference): 1.94%\nSymbol: VTR, Quantity: 1.67, Stop Price: 63.64, Limit Price: 63.14\n"}, {"name": "stdout", "output_type": "stream", "text": "First target price not yet reached for VTR, setting stop loss order.\nCurrent Price: $64.90, Target Price 1: $68.82\n\nStock: XYL\nCurrent Price: $126.29\nStop Price from get_stop(): $122.64\nTrailing Percentage (from difference): 2.89%\nSymbol: XYL, Quantity: 3.66, Stop Price: 122.64, Limit Price: 122.14\nFirst target price not yet reached for XYL, setting stop loss order.\nCurrent Price: $126.29, Target Price 1: $132.92\n\nStock: CRAI\nCurrent Price: $192.99\nStop Price from get_stop(): $192.96\nTrailing Percentage (from difference): 0.02%\nSymbol: CRAI, Quantity: 1.87, Stop Price: 192.96, Limit Price: 192.46\nFirst target price not yet reached for CRAI, setting stop loss order.\nCurrent Price: $192.99, Target Price 1: $205.88\n\nStock: ICE\nCurrent Price: $161.01\nStop Price from get_stop(): $158.06\nTrailing Percentage (from difference): 1.83%\nSymbol: ICE, Quantity: 2.3, Stop Price: 158.06, Limit Price: 157.56\nFirst target price not yet reached for ICE, setting stop loss order.\nCurrent Price: $161.01, Target Price 1: $167.38\n\nStock: LEA\nCurrent Price: $97.1\nStop Price from get_stop(): $94.56\nTrailing Percentage (from difference): 2.62%\nSymbol: LEA, Quantity: 3.59, Stop Price: 94.56, Limit Price: 94.06\nFirst target price not yet reached for LEA, setting stop loss order.\nCurrent Price: $97.10, Target Price 1: $107.24\n\nStock: SYF\nCurrent Price: $67.705\nStop Price from get_stop(): $65.34\nTrailing Percentage (from difference): 3.49%\nSymbol: SYF, Quantity: 5.45, Stop Price: 65.34, Limit Price: 64.84\nFirst target price not yet reached for SYF, setting stop loss order.\nCurrent Price: $67.70, Target Price 1: $70.70\nEnding main loop iteration...\n"}], "source": " \nusername ='liuweiwang0824@gmail.com'\npassword ='Umcqar45&M'\n \nimport random\n\nimport pytz\nfrom datetime import timedelta\nimport math\nimport robin_stocks.robinhood as rh\nimport pandas as pd\nimport requests\nfrom datetime import datetime\nimport time as time_module\nfrom robin_stocks.orders import order_sell_stop_loss\ndef login():\n    rh.login(username, password)\ndef get_stop(stock):# pivotpoints\n        from datetime import datetime as dt\n        import datetime\n        import dateutil\n        today = datetime.datetime.today()\n        delta = dateutil.relativedelta.relativedelta(months=1)\n        end = (today-datetime.timedelta(1)).strftime('%Y-%m-%d')\n        start = (today - delta).strftime('%Y-%m-%d')\n\n        import requests\n        api_key = '86dd63f6b8ae774b061232685b78eb52'\n        from datetime import datetime\n        bs = requests.get(f'https://financialmodelingprep.com/api/v3/historical-price-full/{stock}?from={start}&to={end}&apikey={api_key}').json()['historical']\n       \n        # Print the raw data to check\n        #print(f\"Raw data for {stock}:\")\n       # print(bs)\n       \n        stock = pd.DataFrame(bs)\n        stock =stock[['date','open','high','low','close','volume']]\n        stock = stock.rename(columns = {'date':'Date', 'open':'Open', 'high':'High','low':'Low', 'close':'Close', 'volume':'volume'})\n        stock = stock.set_index('Date')\n        stock= stock.sort_index()\n        last_day = stock.iloc[-1].to_frame().T\n        not_pivots = last_day.columns\n        last_day['center_gravity'] = (last_day['High'] + last_day['Low'] + last_day['Close'])/3\n        last_day['center_gravity']=round(last_day['center_gravity'],2)\n        # Print calculations\n        #print(\"\\nCalculations:\")\n      #  print(f\"Center of Gravity: {last_day['center_gravity'].values[0]}\")\n       \n        last_day['vol_up1'] = 2*last_day['center_gravity'] - last_day['Low']\n        last_day['vol_up1']=round(last_day['vol_up1'],2)\n      #  print(f\"Volatility Up 1: {last_day['vol_up1'].values[0]}\")\n       \n        last_day['vol_down1'] = 2*last_day['center_gravity'] - last_day['High']\n        last_day['vol_down1']=round(last_day['vol_down1'],2)\n       # print(f\"Volatility Down 1: {last_day['vol_down1'].values[0]}\")\n       \n        last_day['vol_up2'] = last_day['center_gravity'] + (last_day['High'] - last_day['Low'])\n        last_day['vol_up2']=round(last_day['vol_up2'],2)\n      #  print(f\"Volatility Up 2: {last_day['vol_up2'].values[0]}\")\n      #  \n        last_day['vol_down2'] = last_day['center_gravity'] - (last_day['High'] - last_day['Low'])\n        last_day['vol_down2']=round(last_day['vol_down2'],2)\n       # print(f\"Volatility Down 2: {last_day['vol_down2'].values[0]}\")\n       \n        last_day['vol_up3'] = last_day['center_gravity'] + 2*(last_day['High'] - last_day['Low'])\n        last_day['vol_up3']=round(last_day['vol_up3'],2)\n        #print(f\"Volatility Up 3: {last_day['vol_up3'].values[0]}\")\n       \n        last_day['vol_down3'] = last_day['center_gravity'] - 2*(last_day['High'] - last_day['Low'])\n        last_day['vol_down3']=round(last_day['vol_down3'],2)\n        #print(f\"Volatility Down 3: {last_day['vol_down3'].values[0]}\")\n       \n        last_day['stop_loss'] = (last_day['vol_down2'] + last_day['vol_down3'])/2\n        last_day['stop_loss']=round(last_day['stop_loss'],2)\n        #print(f\"Initial Stop Loss: {last_day['stop_loss'].values[0]}\")\n       \n        last_day['stop_loss_pct'] = (last_day['Close'] - last_day['stop_loss'])/last_day['Close']*100\n        last_day['stop_loss_pct']=round(last_day['stop_loss_pct'],2)\n       # print(f\"Initial Stop Loss Percentage: {last_day['stop_loss_pct'].values[0]}%\")\n       \n        if last_day['stop_loss_pct'][-1] >3.5:\n            last_day['stop_loss'][-1]= (last_day['vol_down1'][-1] + last_day['Close'][-1])/2\n           # print(f\"Adjusted Stop Loss (because percentage > 3.5%): {last_day['stop_loss'].values[0]}\")\n       \n        return last_day\n\nfrom pandas.tseries.holiday import USFederalHolidayCalendar\nfrom datetime import time as datetime_time\ndef open_market():\n    # Check if today is a weekend or holiday\n    today = datetime.now().date()\n    cal = USFederalHolidayCalendar()\n    holidays = cal.holidays(start=today, end=today)\n   \n    if today.weekday() >= 5 or today in holidays:\n        return False\n\n    # Check if the current time is within trading hours\n    time_now = datetime.now().time()\n    market_open = datetime_time(9,30,0) # 9:30AM\n    market_close = datetime_time(15,59,0) # 3:59PM\n\n    if time_now > market_open and time_now < market_close:\n        return True\n    else:\n        return False\n \ndef get_trailing_stop_percentage(stock):\n#    print(f\"Entering get_trailing_stop_percentage for {stock}...\")\n    stop_price = get_stop(stock)['stop_loss'][0]\n    stop_price=round(stop_price,2)\n    current_price = all_data1['price'][stock]\n    trailing_percentage = (current_price - stop_price) / current_price\n   \n    # Print statements for debugging\n    print(f\"\\nStock: {stock}\")\n    print(f\"Current Price: ${current_price}\")\n    print(f\"Stop Price from get_stop(): ${stop_price}\")\n    print(f\"Trailing Percentage (from difference): {trailing_percentage*100:.2f}%\")\n#    print(f\"Exiting get_trailing_stop_percentage for {stock}...\")\n   \n    return trailing_percentage * 0.2  # Use 20% of the calculated stop percentage\n\ndef cancel_all_orders():\n    open_orders = rh.orders.get_all_open_stock_orders()\n    if not open_orders:  # Check if open_orders is None or empty\n        print(\"No open orders found.\")\n        return\n    for order in open_orders:\n        if order:  # Check if the order is not None\n            try:\n                rh.orders.cancel_stock_order(order['id'])\n                # Wait for a random time between 5 and 10 seconds\n                time_to_sleep1 = random.uniform(5, 10)\n                time_module.sleep(time_to_sleep1)\n            except Exception as e:\n                print(f\"Error canceling order for {order['id']}: {e}\")\n        else:\n            print(\"Found a None order.\")\n\nlogin()\n\nsold_half = set()  # Track stocks that we have sold half of\n\nwhile True:\n    # Check if the market is open\n    if open_market():\n        print(\"Market is open.\")\n\n       \n        cancel_all_orders()\n        my_stocks = rh.build_holdings()\n        df = pd.DataFrame(my_stocks).T\n        df1 = df[['price', 'quantity', 'average_buy_price', 'percent_change']]\n        stock = df1.index.tolist()\n        all_data = pd.DataFrame()\n   \n        for ticker in stock:\n            try:\n                last_day = get_stop(ticker)\n                last_day.index = [ticker]  \n                all_data = pd.concat([all_data, last_day], axis=0)\n            except Exception as e:\n                print(f\"Error processing stock {ticker}: {e}\")\n                if hasattr(e, 'response') and hasattr(e.response, 'text'):\n                    print(e.response.text)\n   \n   \n        all_data = all_data[['stop_loss']]\n        all_data1 = df1.merge(all_data, left_index=True, right_index=True)\n        all_data1['price'] = all_data1['price'].astype(float)\n        all_data1['pct_cha'] = ((all_data1['price'] - all_data1['stop_loss']) / all_data1['price']) * 100\n   \n        x = random.random()\n        y = float((x + 5) / 100)\n        z = float((10 - x) / 100)\n        all_data1['average_buy_price'] = all_data1['average_buy_price'].astype(float)\n        all_data1['target_price1'] = all_data1['average_buy_price'] * (1 + y)\n        all_data1['target_price1']=round(all_data1['target_price1'],2)\n        all_data1['target_price2'] = all_data1['average_buy_price'] * (1 + z)\n        all_data1['target_price2']=round(all_data1['target_price2'],2)\n    #    print(all_data1)\n   \n        print(\"Starting the loop to process each stock for trailing stop...\")\n\n   \n        for s in all_data1.index.tolist():\n            current_price = all_data1['price'][s]\n            average_price = all_data1['average_buy_price'][s]\n            quantity = float(all_data1['quantity'][s])\n            quantity0 = round(quantity, 4)\n            quantity_to_sell=math.floor(quantity)\n   \n            trailing_stop_pct = get_trailing_stop_percentage(s)\n            trailing_stop_price = current_price * (1 - trailing_stop_pct)\n            loss_pct = (current_price - trailing_stop_price) / current_price * 100\n            gain_pct = (current_price - average_price) / average_price * 100\n   \n            if all_data1['target_price1'][s] >= current_price:\n                stopPrice_value = float(all_data1['stop_loss'][s])\n                stopPrice_value = round(stopPrice_value, 2)\n                limitPrice_value = stopPrice_value - 0.5  # \u8bbe\u7f6e\u9650\u4ef7\u4e3a\u201c\u505c\u6b62\u4ef7\u683c\u51cf\u53bb0.5\u201d\n                print(f\"Symbol: {s}, Quantity: {quantity}, Stop Price: {stopPrice_value}, Limit Price: {limitPrice_value}\")\n            \n                if quantity_to_sell >= 1:  # \u6dfb\u52a0\u8fd9\u884c\u68c0\u67e5\n                    try:\n                        response = rh.order(symbol=s, side='sell', stopPrice=str(stopPrice_value), limitPrice=str(limitPrice_value), quantity=str(quantity_to_sell), timeInForce='gtc')                \n                        time_to_sleep = random.uniform(15, 30)\n                        time_module.sleep(time_to_sleep)\n                    except Exception as e:\n                        print(f\"Error executing order for {s}: {e}\")\n                        if hasattr(e, 'response'):\n                            print(\"Error response:\", e.response.text)\n                            if hasattr(e.response, 'json'):\n                                try:\n                                    error_json = e.response.json()\n                                    print(\"Error JSON:\", error_json)\n                                except:\n                                    pass\n                else:\n                    print(f\"Skipping order for {s} because quantity to sell is less than 1.\")  # \u6dfb\u52a0\u8fd9\u884c\u8f93\u51fa\n            \n                print(f\"First target price not yet reached for {s}, setting stop loss order.\")\n                print(f\"Current Price: ${current_price:.2f}, Target Price 1: ${all_data1['target_price1'][s]:.2f}\")\n            \n               \n            elif current_price >= all_data1['target_price1'][s] and s not in sold_half:\n                    if quantity0 >= 2:\n                            quantity1 = math.ceil(quantity0 / 2)  # sell half\n                            quantity1 = math.floor(quantity1)\n                            try:\n                                response = rh.orders.order_sell_market(symbol=s, quantity=quantity1, timeInForce='gfd')\n                                time_to_sleep = random.uniform(15, 30)\n                                time_module.sleep(time_to_sleep)\n                            except Exception as e:\n                                print(f\"Error executing order for {s}: {e}\")\n                                if hasattr(e, 'response'):\n                                    print(\"Error response:\", e.response.text)\n                                    if hasattr(e.response, 'json'):\n                                        try:\n                                            error_json = e.response.json()\n                                            print(\"Error JSON:\", error_json)\n                                        except:\n                                            pass\n                            print(f\"First target price reached for {s}, setting stop loss order for half at ${trailing_stop_price:.2f}.\")\n                            print(f\"Current Price: ${current_price:.2f}, Target Price 1: ${all_data1['target_price1'][s]:.2f}\")\n                            sold_half.add(s)  # Add the stock to the sold half set\n   \n                    else:\n                            try:\n                                response = rh.orders.order_sell_market(symbol=s, quantity=quantity, timeInForce='gfd')\n                                time_to_sleep = random.uniform(15, 30)\n                                time_module.sleep(time_to_sleep)\n                            except Exception as e:\n                                print(f\"Error executing order for {s}: {e}\")\n                                if hasattr(e, 'response'):\n                                    print(\"Error response:\", e.response.text)\n                                    if hasattr(e.response, 'json'):\n                                        try:\n                                            error_json = e.response.json()\n                                            print(\"Error JSON:\", error_json)\n                                        except:\n                                            pass\n                            print(f\"First target price reached for {s}, Current Price: ${current_price:.2f}, with a gain of {gain_pct:.2f}%.\")\n                            print(f\"Due to low initial funding, the entire position in this stock has been sold for profit.\")\n   \n   \n            elif current_price >= all_data1['target_price2'][s]:    \n                if quantity > 1:\n                    sell_amount = math.floor(quantity)\n                    try:\n                        response = rh.order(symbol=s, side='sell', stopPrice=str(trailing_stop_price), limitPrice=str(trailing_stop_price-0.2), quantity=str(sell_amount), timeInForce='gtc')\n                        time_to_sleep = random.uniform(15, 30)\n                        time_module.sleep(time_to_sleep)\n                    except Exception as e:\n                        print(f\"Error executing order for {s}: {e}\")\n                        if hasattr(e, 'response'):\n                            print(\"Error response:\", e.response.text)\n                            if hasattr(e.response, 'json'):\n                                try:\n                                    error_json = e.response.json()\n                                    print(\"Error JSON:\", error_json)\n                                except:\n                                    pass\n                    print(f\"Second target price reached for {s}, setting stop loss order for all at ${trailing_stop_price:.2f} with a gain of {gain_pct:.2f}%.\")\n                    print(f\"Current Price: ${current_price:.2f}, Target Price 2: ${all_data1['target_price2'][s]:.2f}, Average Buy Price: ${average_price:.2f}\")\n   \n                else:\n                    try:\n                        response = rh.orders.order_sell_market(symbol=s, quantity=quantity, timeInForce='gfd')\n                        time_to_sleep = random.uniform(15, 30)\n                        time_module.sleep(time_to_sleep)\n                       \n                    except Exception as e:\n                        print(f\"Error executing order for {s}: {e}\")\n                        if hasattr(e, 'response'):\n                            print(\"Error response:\", e.response.text)\n                            if hasattr(e.response, 'json'):\n                                try:\n                                    error_json = e.response.json()\n                                    print(\"Error JSON:\", error_json)\n                                except:\n                                    pass\n                               \n                    print(f\"Second target price reached for {s}, Current Price: ${current_price:.2f} with a gain of {gain_pct:.2f}%.\")\n                    print(f\"Due to low initial funding, the entire position in this stock has been sold for profit.\")\n   \n   \n   \n   \n            elif current_price <= trailing_stop_price:\n                try:\n                    response = rh.orders.order_sell_market(symbol=s, quantity=quantity, timeInForce='gfd')\n                    time_to_sleep = random.uniform(15, 30)\n\n                    time_module.sleep(time_to_sleep)\n\n                   \n                except Exception as e:\n                    print(f\"Error executing order for {s}: {e}\")\n                    if hasattr(e, 'response'):\n                        print(\"Error response:\", e.response.text)\n                        if hasattr(e.response, 'json'):\n                            try:\n                                error_json = e.response.json()\n                                print(\"Error JSON:\", error_json)\n                            except:\n                                pass\n                           \n                print(f\"Trailing stop would be triggered for {s}, close for all at ${trailing_stop_price:.2f}. \")\n                print(f\"Current Price: ${current_price:.2f}, Trailing Stop Price: ${trailing_stop_price:.2f}\")\n   \n        print(\"Ending main loop iteration...\")\n        time_module.sleep(18000)  # Wait for an hour before checking again\n\n    # else:\n    #     print(\"Market is closed. Waiting for an hour before checking again.\")\n    #     time_module.sleep(7200)  # Wait for an hour before checking again\n           \n    else:\n       print(\"Market is closed or it's past 3:30 PM ET. Waiting until 10:00 AM ET to start again.\")\n       \n       # Calculate the number of seconds to wait until 10:00 AM ET the next day\n       current_datetime_eastern = datetime.now(pytz.timezone('US/Eastern'))\n       next_start_time = current_datetime_eastern.replace(hour=10, minute=0, second=0, microsecond=0) + timedelta(days=1)\n       wait_seconds = (next_start_time - current_datetime_eastern).seconds\n       \n       time_module.sleep(wait_seconds)"}, {"cell_type": "code", "execution_count": null, "id": "b09ee2f6", "metadata": {"trusted": true}, "outputs": [], "source": ""}], "metadata": {"kernelspec": {"display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3"}, "language_info": {"codemirror_mode": {"name": "ipython", "version": 3}, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.9"}}, "nbformat": 4, "nbformat_minor": 5}, "format": "json", "mimetype": null, "size": 276490, "writable": true, "type": "notebook"}