Interactive Broker’s specification for "m_right" is
|
String m_right |
Specifies a Put or Call. Valid values are: P, PUT, C, CALL. |
|
I chose to make the RightType enumeration translate to "PUT" and "CALL". A bug report from the yahoo forums illustrated that this is no longer true, and that "P" and "C" are the only accepted values.
Please download the bug fix versions
Both also available under utilities.
This looks like a great API. And I can use it to connect alright. But for some reason, I can’t get it to work when trying to place an order. I get the following response (through the client_Error handler):
Error from: InteractiveBroker.client_Error : ErrorCode: FailSendOrder
ErrorMsg: System.IO.IOException: Unable to write data to the transport connection:
An established connection was aborted by the software in your host machine.
—> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BinaryWriter.Write(Byte[] buffer)
at Krs.Ats.IBNet.IBClient.sendEOL() in …\KRS.ATS.IBNet\IBClient.cs:line 2332
at Krs.Ats.IBNet.IBClient.send(String str) in …\KRS.ATS.IBNet\IBClient.cs:line 2317
at Krs.Ats.IBNet.IBClient.send(Int32 val) in …\KRS.ATS.IBNet\IBClient.cs:line 2337
at Krs.Ats.IBNet.IBClient.send(Boolean val) in …\KRS.ATS.IBNet\IBClient.cs:line 2371
at Krs.Ats.IBNet.IBClient.PlaceOrder(Int32 orderId, Contract contract, Order order) in …\KRS.ATS.IBNet\IBClient.cs:line 1731
I’ve tried to disable all virus scanners and firewalls, but to no avail…
Anybody who has the C# Client API working – and can maybe post – or mail me an example on how to interact?
Best regards,
Jens Tiedemann
I’m getting the same problem on this line
send(EnumDescConverter.GetEnumDescription(order.Rule80A));
but if you comment out that line it just happens on the next one…
i am only using free virus scanners like avast and avira but they seem to be great tools though~..