historical data: "contract ambiguous, specify currency"

57 views
Skip to first unread message

mc

unread,
Jan 7, 2009, 11:42:31 AM1/7/09
to ProfitPy Discuss
I tried to download AAPL (and EBAY) tickers from TWS under "historical
data", but every request returns with status "Error: The contract
description specified for AAPL is ambiguous; you must specify the
currency". Any ideas how to do that, or set preferences in TWS/IbPy?

I am using profitpy-svn, IbPy-svn, TWS demo 889.4 on Ubuntu 8.10

cheers,
mc

Troy Melhase

unread,
Jan 8, 2009, 2:40:21 PM1/8/09
to profitpy...@googlegroups.com
> I tried to download AAPL (and EBAY) tickers from TWS under "historical
> data", but every request returns with status "Error: The contract
> description specified for AAPL is ambiguous; you must specify the
> currency". Any ideas how to do that, or set preferences in TWS/IbPy?

Hm. Something in the TWS API has changed. I get this error, too.

When I hard coded the contract currency, I no longer got the error,
but the histdata requests still did not complete.

Could you svn up and try your requests with r332?

troy

mc

unread,
Jan 9, 2009, 6:22:18 AM1/9/09
to ProfitPy Discuss
Yup, that's better, thanks! Works for me for pulling e.g. AAPL 2 days,
1 min bars, "beginning" 2009/1/7 8AM. It retrieves the data up to that
point in time, not beginning as labeled, but I can adjust to that ;-)

Next problem I ran into was trying to retrieve ES/ESH9 future data,
returns: "-'wb' : cause - Please enter a local symbol or an expiry" Is
this suppposed to work? I found some documentation on IB naming but
how would I enter this in the dialog?

Furthermore, how does "historical data" relate to "tickers", my list
of tickers is still empty despite the "finished" data request for
AAPL? I am stuck on what to do next.

Sorry for being a pain in the neck. I would love to contribute, but
this is really hard to figure out without any instructions. A simple
step-by-step walkthrough "click on this", "enter that" would help
tremendously with getting up to speed. I volunteer to document my
learning curve later on.

Thanks again,
mc
Reply all
Reply to author
Forward
0 new messages