zipline-live / zipline

Zipline-Live, a Pythonic Algorithmic Trading Library
http://www.zipline-live.io/
Apache License 2.0
396 stars 65 forks source link

Problem with data.current() #97

Closed ghost closed 6 years ago

ghost commented 6 years ago

Dear Zipline Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

Now that you know a little about me, let me tell you about the issue I am having:

I fellow the tutorial http://www.zipline-live.io/tutorial with a IB demo account, but when I run the command: zipline run -f ~/zipline-algos/demo.py --state-file ~/zipline-algos/demo.state --realtime-bar-target ~/zipline-algos/realtime-bars/ --broker ib --broker-uri localhost:7496:1232 --bundle quantopian-quandl --data-frequency minute I receive the message:

"Requested market data is not subscribed. Delayed market data is not enabled"

So I am not able to see the AAPL prices. If it can help, I am able to sell and buy stocks.

Finally I also tried to replicate the procedure on a Ubuntu virtual machine, but I get the same error.

Thanks

VitalyErmilov commented 6 years ago

I was having the same message when I tried to run demo.py without data subscription. I did not try to use delayed data, I solved the problem by subscribing to real time data in ib account management section.

ghost commented 6 years ago

Thanks for the answer. So the demo account is not sufficient

peterfabakker commented 6 years ago

correct demo account works slightly different