Mapgax / ibpy

Automatically exported from code.google.com/p/ibpy
Other
0 stars 0 forks source link

tickOptionComputation now has 7 arguments #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. receiving option market data
2.
3.

What is the expected output? What do you see instead?
  File "/usr/local/lib/python2.7/dist-packages/ib/ext/EReader.py", line 148, in processMsg
    self.eWrapper().tickOptionComputation(tickerId, tickType, impliedVol, delta, modelPrice, pvDividend)
TypeError: tickOptionComputation() takes exactly 5 arguments (7 given)

What version of the product are you using? On what operating system?
trunk ibpy version, latest ib tws build, ubuntu 64

Please provide any additional information below.

Original issue reported on code.google.com by vivanov...@gmail.com on 25 Mar 2013 at 3:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
pls close issue -- all works

Original comment by vivanov...@gmail.com on 25 Mar 2013 at 4:16

GoogleCodeExporter commented 8 years ago
@vivanov: How did you get this working? I'm having the same problem.

Original comment by cwalke...@gmail.com on 1 Jul 2013 at 2:08

GoogleCodeExporter commented 8 years ago
I actually figured it out rather quickly, too. Turns out, this problem arises 
from old example code. My application was built off one of the examples that 
still had:

def tickOptionComputation(self, tickerId, field, impliedVolatility, delta):

and this needs to be changed to:

def tickOptionComputation(self, tickerId, field, impliedVolatility, delta, 
modelPrice, pvDividend):

Hope this helps someone!

Original comment by cwalke...@gmail.com on 1 Jul 2013 at 2:25