Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can’t get quote for MSFT #153

Open
vw550 opened this issue Mar 14, 2020 · 2 comments
Open

can’t get quote for MSFT #153

vw550 opened this issue Mar 14, 2020 · 2 comments

Comments

@vw550
Copy link

vw550 commented Mar 14, 2020

I can get historical quotes for most stocks, but for MSFT I get the error:
“The contract specified for MSFT is ambiguous”.
Reading on IB forum it looks like I need to set the “primary exchange” in order to remove the ambiguity, which I gather is ISLAND??.
With node-in, I don’t see how this is possible?? Any help in resolving this error greatly appreciated!!
Thanks!

@tredondo
Copy link
Contributor

It's the weekend and IB's servers are hosed as usual, but what happens when you pass the exchange to ib.contrack.stock('MSFT', 'ISLAND', 'USD')? How about when passing 'SMART'?

https://github.com/pilwon/node-ib/blob/master/lib/contract/stock.js

The primary exchange is returned by reqContractDetails, rather than something you supply.

@vw550
Copy link
Author

vw550 commented Mar 15, 2020

I’ve tried with just ‘SMART’ and just ‘ISLAND’ and tried to combine as in ‘SMART/ISLAND’ and got the same error each time of “ambiguous”. But my code works fine for GOOG, TSLA, etc. it seems I need a setContractDetails function...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants