SmartQuant Discussion
http://www.smartquant.com/forums/

IB error System.FormatException: Input string...
http://www.smartquant.com/forums/viewtopic.php?f=60&t=11027
Page 1 of 1

Author:  eelofi [ Sun Nov 29, 2015 11:24 pm ]
Post subject:  IB error System.FormatException: Input string...

Any ideas why I get error id -1 and code -1 and the message text:

System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at FH1BNhtiAqREeZGNxZb.hxBbwCtaRGXshgs8p6n.AKMsY6rHrM()
at SmartQuant.IB.Messages.MsgOpenOrder.OnReadData(hxBbwCtaRGXshgs8p6n reader, Int32 serverVersion)
at HpmrVBhUqrUwAcCutgw.qxKWLHh8AMXW6WuR4Kj.BbM1hOOjyT(Stream , Int32 )
at qrWnXHtjqrNOdnoTPua.zg50dntCEFqmjodydrw.VbxTfwsbne()


When connecting to IB? And IB doesn't connect.

Thx,
Eelofi

Author:  skuvv [ Mon Nov 30, 2015 10:37 am ]
Post subject:  Re: IB error System.FormatException: Input string...

Hello eelofi,
can you please describe when this happend and what order you sent?
I tried send limit order and reconnect IB and open order passed ok.

Author:  eelofi [ Mon Nov 30, 2015 10:46 am ]
Post subject:  Re: IB error System.FormatException: Input string...

Hi Skuvv,

I get this immediately at connecting to IB.

I will send you the IB trace file in a sec.

Br,
Eelofi

Author:  eelofi [ Mon Nov 30, 2015 10:53 am ]
Post subject:  Re: IB error System.FormatException: Input string...

Haha,

I tried Thu, Fri and over the weekend at least 10 times.

And now with the logging and being Mon morning, it works like a charm. Connected - disconnected three times, without any problems...

Cheers,
Eelofi

Author:  eelofi [ Mon Nov 30, 2015 8:26 pm ]
Post subject:  Re: IB error System.FormatException: Input string...

Got the same problem again. Sent you the log file now.

Br,
Eelofi

Author:  skuvv [ Tue Dec 01, 2015 12:01 pm ]
Post subject:  Re: IB error System.FormatException: Input string...

We need additional logs from IB TWS.
It can be enabled in Configure>API>Settings>Create API message log file, set to checked.
Next time when you will connect to IB, in folder with TWS will be created log file, which contains api in name.
Send this file by mail.
ps sort files by change time.

Author:  eelofi [ Tue Dec 01, 2015 2:26 pm ]
Post subject:  Re: IB error System.FormatException: Input string...

OK, sending them now.

But one more thing to note! When I restart OQ, I get an error message : -1 -1 Cannot register order, because OrderId has invalid value - . Please note that I get this message already _before_ I connect to IB, immediately at restart of OQ.

So is it possible / likely that the root cause of the problem is the text in the OrderId?

Thx,
Eelofi

Author:  eelofi [ Wed Dec 02, 2015 1:11 pm ]
Post subject:  Re: IB error System.FormatException: Input string...

I ran the strategy again, now without the clientid on.

It works for a longer time, but still fails all of the sudden without any error message to the provider errors.

BR,
Eelofi

Author:  eelofi [ Mon Dec 07, 2015 11:10 am ]
Post subject:  Re: IB error System.FormatException: Input string...

So what's happening with this?

OQ is not working for me! And there's no update on whether the problem can replicated or fixed or is even being worked on.

Author:  Dr. Anton Fokin [ Mon Dec 07, 2015 11:25 am ]
Post subject:  Re: IB error System.FormatException: Input string...

Hi,

we are working on this. There should be an update today.

Thanks,
Anton

Author:  eelofi [ Mon Dec 07, 2015 11:28 am ]
Post subject:  Re: IB error System.FormatException: Input string...

OK thanks, it was so very quiet on the topic, that I already got frustrated.

Author:  Dr. Anton Fokin [ Tue Dec 08, 2015 2:07 pm ]
Post subject:  Re: IB error System.FormatException: Input string...

Hi,

we've updated OQ2014 installl with IB fix. If you need this fix for OQ3 , please drop a message to vadim.skubilin@smartquant.com and he will send you patched IB dll.

Regards,
Anton

Author:  eelofi [ Thu Dec 10, 2015 11:00 am ]
Post subject:  Re: IB error System.FormatException: Input string...

Thanks,

got the dll from skuvv and it has indeed been working now for the part 24hrs!

Cheers,
Eelofi

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/