IB_apps github project
I created a GitHub project for my python code that works with the ibapi.
To give an insight to whether it may be useful to you I made an accompanying youtube video that can be found
By
Jelmer P.
·
#53479
·
|
Re: C++ - TWS API - Connection Closed Handling
I had a side discussion with Eitan but I think it is useful to explain the change made on the C++ API that fixes the bug reported in this thread: /g/twsapi/message/51775
The error
By
David Armour
·
#53478
·
|
Re: Visual Studio 2022 and C++ TWS API 10.32
OKAY I FIXED IT.
WHO EVER READS THIS AND WANTS TO COMPILE WITH VS 2022 AND 10.32
HERE ARE THE STEPS I USED TO GET IT TO WORK
1. Try compiling the "TestCppClient\Debug\TestCppClientStatic.exe "?
By
Marluv
·
#53477
·
|
Re: Visual Studio 2022 and C++ TWS API 10.32
On Thu, Nov 7, 2024 at 07:26 PM, Marluv wrote:
check your architecture this might be an x64 vs x86 issue. Don't remember much about C++ but this might be a libbid.lib architecture issue.
By
comicpilsen
·
#53476
·
|
Re: Visual Studio 2022 and C++ TWS API 10.32
Okay I followed the TEXT document (NOT FOUND IN THE BETA DONWLOAD) .
I was able to use NMAKE and compile the floating point library called (libbid.lib)
I then placed the libbid.lib in my
By
Marluv
·
#53475
·
|
Re: C++ - TWS API - Connection Closed Handling
I tried to reach out to you individually to send me your code as I cannot replicate the test you are doing with TestCppClient example. The example code connects and disconnects rapidly 50 times in a
By
David Armour
·
#53472
·
|
Re: ValueError: could not convert string to float: b'\xe2\x88\x9e'
Thanks Jurgen and bespalex! This doesn't happen very frequently, so memory corruption is possible.
I will also try threading.excepthook as mentioned by bespalex and come back with further update!
By
Cash
·
#53471
·
|
Re: ValueError: could not convert string to float: b'\xe2\x88\x9e'
I'd try to figure out, where those bytes come from. This feels like some memory corruption inside the client and it is unlikely that they came from TWS/IBGW through the socket connection (though not
By
Jürgen Reinold
·
#53470
·
|
Re: ValueError: could not convert string to float: b'\xe2\x88\x9e'
you can catch exceptions in threads without modifying the ibapi source code by using Python's threading.excepthook function
By
bespalex
·
#53469
·
|
Re: ValueError: could not convert string to float: b'\xe2\x88\x9e'
oops sorry didn't register the fact you can't detect it in main()
By
comicpilsen
·
#53468
·
|
Re: ValueError: could not convert string to float: b'\xe2\x88\x9e'
how about
```
def safe_float_conversion(value):
try:
return float(value)
except ValueError:
return None # or some default value
```
By
comicpilsen
·
#53467
·
|
ValueError: could not convert string to float: b'\xe2\x88\x9e'
Using Python api -
From time to time i am getting following error and it stops the api thread completely. I can't catch this exception in Main thread. This happens with HistoricalData callback. It is
By
Cash
·
#53466
·
|
Re: Undocumented error codes: 10089 and 10091 ...
Thanks again Jürgen for your help and support, it is greatly appreciated.
I will get my client to check their market data subscriptions again.? We have also put the question out directly to IB
By
bdcoder <bdaviduck@...>
·
#53465
·
|
Re: Visual Studio 2022 and C++ TWS API 10.32
TWS API ships with file source/CppClient/Intel_lib_build.txt that describes the libbid build process.
Jürgen
By
Jürgen Reinold
·
#53464
·
|
Re: Visual Studio 2022 and C++ TWS API 10.32
The error is very clear in your first post. You have to link in the library "libbid.lib"
Somewhere in the API docs or README files (I forget where) it tells you that you have to compile your own
By
David Armour
·
#53463
·
|
Re: Undocumented error codes: 10089 and 10091 ...
Maybe this is eventually a question for IBKR since we do not know all account details. But here a few thoughts:
* Your client will likely need different subscriptions for Level 1 (top of market),
By
Jürgen Reinold
·
#53462
·
|
Re: Undocumented error codes: 10089 and 10091 ...
Update ...
I also issued a request to the reqMktDepthExchanges() method to just to return a list of exchanges from where market depth is available if the user has the appropriate market data
By
bdcoder <bdaviduck@...>
·
#53461
·
|
Re: is there a web application that connects to IB via the TWS API?
TradingView is not an IBKR offering and may not have all the "secondary user" features.
I am sure, Mel was referring to IBKR's "TWS Mobile" that you can find here:
By
Jürgen Reinold
·
#53460
·
|
Re: Visual Studio 2022 and C++ TWS API 10.32
I tried removing the LIBBID.LIB now I get a linker method errror
2>Generating Code...
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_add referenced in
By
Marluv
·
#53459
·
|
Re: Visual Studio 2022 and C++ TWS API 10.32
HERE IS THE FULL COMPILE FOR BOTH STATIC PROJECTS IN THE SOLUTION
Rebuild started at 5:33 PM...
1>------ Rebuild All started: Project: TwsSocketClientStatic, Configuration: Debug x64
By
Marluv
·
#53458
·
|