-
Hi there I added a 10 sec sleep and made the method override to see how it works but I got an error I don't know how to diagnose. I am running all of this in the repl and text editor. ALSO I feel bad about raising these things as issues, do you have a julia discourse thread please?
and got this error
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
So I converted this into a discussion, which might be a more appropriate venue. Regarding the exception, it looks like something that I have occasionally encountered and stems from the strict type conversions that I have adopted in this package. In this case TWS is sending an empty string where a float is expected. In order to make sure that this is in fact the case, I would try first to update TWS or try a different version like "stable" or "beta". If this behavior persists, it could be something more serious and it would be useful to have more infos, like:
|
Beta Was this translation helpful? Give feedback.
-
Hi there 1 the demo account approach gives 2 the paper money approach gives My suggestion is for me to carry on learning how to code in julia using you WONDERFUL framework and figure this out for myself. There's no need to change anything for something this transient. The TWS forum have reminded me about the TWS logs which I completely forgot about so that something for me to consider as a double test. Compare my logs against the TWS and see what's going on. My plan is to figure out how to log events like this to a file, have another process monitor the file and make determinations based on statistics. I would also like $12bn and a pony :-) |
Beta Was this translation helpful? Give feedback.
-
Thanks, I thought I had done that but I didn't save the file! a REAL noob mistake. I'm currently using the cli,text editor so I deserve everything I get but you don't sorry. I added the code and set the duration to one hour. It's using the TWS beta build 10.14.0u as you recommended. Right now it's been going for 15 minutes and all is well. After this it done I'll switch it to the TWS live machine and see what happens. It's running build 10.12.2j. thanks for sticking with me on this. I can only get better. END OF DAY UPDATE 2/8/22 At the end of 3 runs I had NO exceptions so this supports your observation that this is a spurious event. I ran it against a live system ( run 3 ) in exactly the same way I did when I got the exceptions and got none. Here are the runs I made 1 set Jib.reqMarketDataType(ib, Jib.DELAYED) run 1hour on local using TWS beta 10.14.0u and demo_tws a/c. NO EXCEPTIONS I have the data runs but they don't really show anything interesting. I can post them but the live data size is 7.5mb uncompressed. I think the best approach is for me to use this as a learning experience for julia. Your excellent framework has given me the foundation and I am already learning. I have to work on the whole asynchronous callback functionality in julia. I get it in python but want to make sure I have the correct julia mental model. |
Beta Was this translation helpful? Give feedback.
So I converted this into a discussion, which might be a more appropriate venue.
Regarding the exception, it looks like something that I have occasionally encountered and stems from the strict type conversions that I have adopted in this package. In this case TWS is sending an empty string where a float is expected.
I could always widen the accepted types but I'm a bit reluctant doing so given the fact that usually these erratic behaviors are transient and disappear after minor TWS update.
In order to make sure that this is in fact the case, I would try first to update TWS or try a different version like "stable" or "beta".
If this behavior persists, it could be something more serious and …