- ago
When I connect WealthLab 87 / IBext 47 to my IBaccount (paper or live), I receive some exceptions:

26.03.2024 21:32:07:111
InteractiveBrokers
Error parsing Account PositionIBM,100,189,88,DU8361652
NullReferenceException
Object reference not set to an instance of an object.
at WealthLab.InteractiveBrokers.IBContractManager.GetSymbolByContract(Contract contract)
at WealthLab.InteractiveBrokers.IBConnection.RunIterator(String res, Contract caller, Decimal dic, Double value2)

What could be the problem ?
0
104
Solved
4 Replies

Reply

Bookmark

Sort
- ago
#1
I already tested on a second PC with decimal seperator symbol "." instead of the regional symbol ",": Same execption:

26.03.2024 21:45:15:828
InteractiveBrokers
Error parsing Account PositionIBM,100,189.88,DU8361652
NullReferenceException
Object reference not set to an instance of an object.
at WealthLab.InteractiveBrokers.IBContractManager.GetSymbolByContract(Contract contract)
at WealthLab.InteractiveBrokers.IBConnection.RunIterator(String res, Contract caller, Decimal dic, Double value2)
0
Cone8
 ( 25.44% )
- ago
#2
Separators aren't a factor here - the commas are used just to show the data involved.

I've never seen that error but think I see what might cause it - most likely a bad edit in IBContracts.txt. My guess is that if you close Wealth-Lab, delete IBContracts.txt (or just rename it), and then try again, it will be fine.

Are you trading U.S. or German stocks primarily?
Which currency for IBM?

If you don't mind, copy and paste the line from IBContracts.txt for IBM here.
0
Best Answer
- ago
#3
Yes, that was the problem!

Deleting IBcontract.txt solved the problem and then I copied my entries back to find the problematic line:

IBDE40=IBDE40|EUR|CFD|SMART
I have no position of this CFD in my account.

With previous versions of IBKR extension this line didn't caused an exception - but the CFD never worked anyway. No problem - I don't need European CFDs, I need just stocks.
0
Cone8
 ( 25.44% )
- ago
#4
There was work done in that area to identify the trade symbol for the contract being sent from IB. That error should be fixed in the next IB Provider update.

CFDs will also work after updates to recent builds. Try this record:
CODE:
IBDE40=IBDE40|EUR|CFD|SMART||IBDE40|||0|1

And if that doesn't work, try replacing SMART with IBCFD.
1

Reply

Bookmark

Sort