pilwon / node-ib

Interactive Brokers TWS API client library for Node.js
381 stars 133 forks source link

reqFundamentalData: Missing reportType #36

Open rmoriz opened 8 years ago

rmoriz commented 8 years ago

Hi,

I'm getting the following error when using reqFundamentalData(), this also happens in the examples/all.js:

Error:

We are sorry, but fundamentals data for the security specified is not available.Missing reportType

ib.reqFundamentalData(201, {
  currency: 'USD',
  exchange: 'SMART',
  primaryExch: 'NASDAQ',
  secType: 'STK',
  symbol: 'AMZN'
}, 'Estimates');  // reqId, contract, reportType

Using TWS 956

rmoriz commented 8 years ago

Turns out the reportType values have changed or were just wrong:

http://interactivebrokers.github.io/tws-api/reuters_fundamentals.html#report_type

tws api v9 72_ reuters fundamentals

zgsrc commented 7 years ago

Has anyone got ReportRatios to work? Is this a problem on the IB end of things?