SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Mon Dec 16, 2019 9:13 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue Apr 29, 2014 4:58 am 
Offline

Joined: Tue Oct 15, 2013 11:26 am
Posts: 17
Hello,

I upgraded my TWS to 944 and not able to connect to IB FA account through OQ. I got following error message:
Attachment:
QQ截图20140429094815.jpg
QQ截图20140429094815.jpg [ 39.25 KiB | Viewed 8713 times ]


Top
 Profile  
 
PostPosted: Tue Apr 29, 2014 10:24 am 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Hi,

You can ignore this "error".
At the beginning, IB plugin tries to request account data for the regular account.
In a case of FA, TWS reports an error and then IB plugin uses MonitoredAccount.

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Tue Apr 29, 2014 12:22 pm 
Offline

Joined: Tue Oct 15, 2013 11:26 am
Posts: 17
I am still not able to connect, May be other modification IB made is not compatiable wth OQ. I am able to connet to my sim FA account, but the live FA account does not work.


Top
 Profile  
 
PostPosted: Tue Apr 29, 2014 1:04 pm 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Hi,

Could you enable logging of IB plugin, try to connect and send me plugin's log file (ib-yyyyMMdd.txt)
from the <%appdata%>\SmartQuant Ltd\OpenQuant\Framework\logs directory.


Attachments:
ib_logger.png
ib_logger.png [ 30.5 KiB | Viewed 8701 times ]

_________________
SmartQuant Development Team
Top
 Profile  
 
PostPosted: Wed Apr 30, 2014 12:41 am 
Offline

Joined: Sun Oct 30, 2011 12:12 am
Posts: 220
Hi,

stephen_mcse: did you manage to resolve this?

I have the exact same issue after updating IB TWS and IB Gateway today.
IB forces their customers to update to TWS version 940 or above before May 1, 2014 and we received the notice a couple of days ago.
So today between 5.00 pm and 5.15 pm (when their FX platform IDEALPRO is closed) I updated IB TWS/Gateway and restarted it.
When I try to connect to our FA account, I get the same error message: "The account code is required for this operation."
There are potentially sensitive data in the IB plugin log so I'll send them as a private message.

Their API support told me this today:
"Angel P: there should not be any changes from the client program side, you may need to check to see if you are getting any error( ) event
Angel P: no I did not receive any reports of customers having issues with OpenQuant. In this case it is feasible they may not support the latest build of have some issues with there program. I would advice to contact them directly for additional assistance"

EDIT: the Provider Errors panel also displays issues regarding System.Xml which I guess may have been triggered within the IB Plugin when it tries to parse and analyse FA allocation profile XML data from IB. Maybe IB has changed something to their format and IB Plugin isn't able to interpret the XML string anymore, crashes and therefore disconnects from IB. Just a guess...

Code:
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at quDd0dfw9hGDWoyf71.IHv22ej3VMJHXGFwZQ.SAAICsttil(String )
   at SmartQuant.IB.IBTWS.YexCOocNUV(MsgReceiveFA )
   at SmartQuant.IB.IBTWS.IH4Cq9pAbE(ThMEepH8hD3Y6fdfXw )
   at LrlrT1TeKMCTQVThRH6.oAx9l5T9ostlqAFxHNO.lAUxM332cv()


Attachments:
IB Gateway OQ issue.png
IB Gateway OQ issue.png [ 9.2 KiB | Viewed 8691 times ]
Top
 Profile  
 
PostPosted: Wed Apr 30, 2014 1:30 am 
Offline

Joined: Sun Oct 30, 2011 12:12 am
Posts: 220
FYI I just managed to revert back to a previous version: "Build 939.4b, Apr 23, 2014 2:30:36 PM" which I got by clicking on "Upgrade" here https://www.interactivebrokers.com/en/index.php?f=674
I'm pretty confident that IB has changed their allocation profile XML format and that OQ's IB plugin crashes because it's not up to date.

This is extremely urgent since on May 1, 2014, all versions below 940 will be discontinued.

Alexei, I've sent you all relevant data via PM.

Thanks for your help!


Top
 Profile  
 
PostPosted: Wed Apr 30, 2014 5:53 am 
Offline

Joined: Sun Oct 30, 2011 12:12 am
Posts: 220
Here is what IB support told me based on logs I sent them:

Quote:
According to the log's it seems that OpenQuant is attempting to invoke the reqFA( ) and is unable to load the associated Account Aliases (faDataType = 3) which seems to be associated with the disconnect you are experiencing, please refer to the details in the log below:

********************************************************************************************
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:INFO] Handling incoming ReqFA message.
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] Started reading message:
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] Finished reading message:
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] ge::[version=1,ID=2147483647,faDataType=3]
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] [1;3]
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] Start validating message:
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] Finished validating message:
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] Started processing message:
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:0:0:DET] Client {1} requesting FA data.
IT 23:51:01:057 JTS-EServerSocket-67: [1:37:70:1:0:16:1:INFO] Sending FA data.
IT 23:51:01:073 JTS-EServerSocket-67: [1:37:70:1:0:0:0:ERR] -'ge' : cause - java.util.Vector cannot be cast to jxmlable.ListOfXmlables
IT 23:51:01:073 JTS-EServerSocket-67: Anticipated error
IT jextend.b: java.util.Vector cannot be cast to jxmlable.ListOfXmlables
at jextend.ge.j(ge.java:87)
at jextend.mc.n(mc.java:391)
at jextend.xg.rb(xg.java:1616)
at jextend.xg.run(xg.java:1382)
at java.lang.Thread.run(Unknown Source)


IT 23:51:01:073 JTS-EServerSocket-67: [1:37:70:1:0:4:2:DET] Sending error.
********************************************************************************************

I have seen similar customer have issue in the past but seems to have been associated with an issue with there settings. As a test in the chat I had advised to please see if you have the same issue using the "Browser Based IB Gateway Beta" which can be accessed from the following URL:

https://www.interactivebrokers.com/en/s ... ftware.php

It seems the chat was disconnected before I received a response. Please reply back via e-mail if you have the same issue when using the Beta Version of the IB Gateway from the above URL.

Regards,

-Angel
IB API Support


Top
 Profile  
 
PostPosted: Wed Apr 30, 2014 6:05 am 
Offline

Joined: Tue Oct 15, 2013 11:26 am
Posts: 17
PBJ: still not fix it yet, let me know if you have a solution for this. thank you very much.


Top
 Profile  
 
PostPosted: Wed Apr 30, 2014 10:27 am 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
Hi All,

There is a problem with receiveFA(int faDataType, String xml) function of IB API.
By some reason, TWS sends not well-formed xml data.
PBJ, please look into the bottom of log file you sent me.
There are two correct messages like:
<FaDataType type="System.Int32">1</FaDataType><Xml type="System.String"> ?xml version="1.0" encoding="UTF-8"?
But the last line contains invalid xml:
<FaDataType type="System.Int32">3</FaDataType><Xml type="System.String">4</Xml>

The very strange thing is we do not get invalid xml when using fdemo/demouser login.

Ofcourse, we can handle an exception from xml parser and ignore it, but it seems that the IB plugin will not receive correct account data in this case.

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Wed Apr 30, 2014 7:35 pm 
Offline

Joined: Sun Oct 30, 2011 12:12 am
Posts: 220
I sent these comments to IB. If you could provide your email address, it would be more efficient to communicate.

I also tried what Angel suggested, using Browser Based IB Gateway Beta: the problem is the same.


Top
 Profile  
 
PostPosted: Wed Apr 30, 2014 7:58 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6816
Hi,

they can talk to us on info@smartquant.com . I'll forward their emails to Alexei if needed.

Regards,
Anton


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group