rbermani / ib-api

An API for the Interactive Brokers Trader Workstation written in pure Haskell
GNU General Public License v3.0
17 stars 4 forks source link

How does current time request works? #3

Open kyp0717 opened 6 years ago

kyp0717 commented 6 years ago

Hi Robert, Thank you for writing this package. I have been reviewing it as way to study haskell. I am starting at the very beginning with the most basic request to the ib server -- request current time.

I was able to compile your code and execute main to request current time. BTW, there was an error in the version. I already submitted a change request to you. Back to the request current time, how request submit the value "49" to get current time? I look inside every programs to see how this is done. I don't see the ib server code for time request inside your Nums.hs file.

Please explain.

Thanks.

rbermani commented 6 years ago

Hi Ky, Thanks for the find. I haven't touched this code in years. I'm sure the IB protocol may have been rev'ed several times since I wrote this. I've added you as a collaborator on this repository, so feel free to merge your patch into the trunk if you would like.