Open noahberhe opened 1 year ago
I have the exact same issue. Can anyone confirm that they are able to use this to print logs currently?
The very first example "Download Realtime Bar Data from TWS" gives me the following output: [<backtrader.strategy.Strategy at 0x289f23570d0>]
then the next example "Simple BID_ASK Historical Data" gives this output: [<test_printer.TestPrinter at 0x289f23a8f70>]
I seem to be connected alright because turning off my TWS client gives me error messages when trying to run the same code from the examples.
Would really appreciate some guidance on why I'm not getting the outputs shown in the example.
Thanks!
I also get this error when trying to call the module directly in command prompt
(venv1) (base) C:\Back_Test>python main.py Calling connectAck() Calling managedAccounts('U5618413') Calling nextValidId(1) Calling currentTime(1682905040) Calling error(-1, 2104, 'Market data farm connection is OK:uscrypto', '') Calling error(-1, 2104, 'Market data farm connection is OK:usfarm.nj', '') Calling error(-1, 2104, 'Market data farm connection is OK:eufarm', '') Calling error(-1, 2104, 'Market data farm connection is OK:cashfarm', '') Calling error(-1, 2104, 'Market data farm connection is OK:cafarm', '') Calling error(-1, 2104, 'Market data farm connection is OK:usopt', '') Calling error(-1, 2104, 'Market data farm connection is OK:usfarm', '') Calling error(-1, 2106, 'HMDS data farm connection is OK:ushmds.nj', '') Calling error(-1, 2106, 'HMDS data farm connection is OK:ushmds', '') Calling error(-1, 2158, 'Sec-def data farm connection is OK:secdefil', '') Calling contractDetails(16777216, 2149046937552: 208813720,GOOG,STK,,0,,,SMART,NASDAQ,USD,GOOG,NMS,False,,,,combo:,NMS,0.01,ACTIVETIM,AD,ADJUST,ALERT,ALGO,ALLOC,AON,AVGCOST,BASKET,BENCHPX,CASHQTY,COND,CONDORDER,DARKONLY,DARKPOLL,DAY,DEACT,DEACTDIS,DEACTEOD,DIS,DUR,GAT,GTC,GTD,GTT,HID,IBKRATS,ICE,IMB,IOC,LIT,LMT,LOC,MIDPX,MIT,MKT,MOC,MTL,NGCOMB,NODARK,NONALGO,OCA,OPG,OPGREROUT,PEGBENCH,PEGMID,POSTATS,POSTONLY,PREOPGRTH,PRICECHK,REL,REL2MID,RELPCTOFS,RPI,RTH,SCALE,SCALEODD,SCALERST,SIZECHK,SNAPMID,SNAPMKT,SNAPREL,STP,STPLMT,SWEEP,TRAIL,TRAILLIT,TRAILLMT,TRAILMIT,WHATIF,SMART,AMEX,NYSE,CBOE,PHLX,ISE,CHX,ARCA,ISLAND,DRCTEDGE,BEX,BATS,EDGEA,CSFBALGO,JEFFALGO,BYX,IEX,EDGX,FOXRIVER,PEARL,NYSENAT,LTSE,MEMX,TPLUS1,IBEOS,PSX,1,0,ALPHABET INC-CL C,,Communications,Internet,Web Portals/ISP,US/Eastern,20230430:CLOSED;20230501:0400-20230501:2000;20230502:0400-20230502:2000;20230503:0400-20230503:2000;20230504:0400-20230504:2000;20230505:0400-20230505:2000,20230430:CLOSED;20230501:0930-20230501:1600;20230502:0930-20230502:1600;20230503:0930-20230503:1600;20230504:0930-20230504:1600;20230505:0930-20230505:1600,,0,,,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,1,[2149046934672: ISIN=US02079K1079;],,COMMON,,,,,,False,False,0,False,,,,,False,,0.0001,0.0001,100) Calling contractDetailsEnd(16777216) Calling currentTime(1682905099)
@lifeaquatic22 let me know if you found anything? I've given up with the package given lack of support
Hi, I'm following the example TestPrinter, and I'm unable to print the output. I just get this object printed as the output: [<main.TestStrategy at 0x122e96450>]
I'm doing something very basically wrong here?
Thanks