Skip to content

EventName.tickOptionComputation is missing the parameter tickAttribute #249

@LimePixel

Description

@LimePixel

This one causes all the returned fields to make no sense as they are pulled into their neighbor. e.g. impliedVolitility returns 0, delta is always impliedVolitility etc.

ib/src/api/api.ts

Lines 3197 to 3201 in efdb8d6

event: EventName.tickOptionComputation,
listener: (
reqId: number,
field: TickType,
impliedVolatility?: number,

The code is missing tickAttribute, at Line 3201 after field,.

public virtual void tickOptionComputation(int tickerId, int field, int tickAttrib, double impliedVolatility, double delta, double optPrice, double pvDividend, double gamma, double vega, double theta, double undPrice)
Ref: https://interactivebrokers.github.io/tws-api/option_computations.html

When I added this the data made sense again and lined up to TWS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions