Questions tagged [quantopian]

Quantopian is a website and API for writing investment algorithms using Python.

29 questions
1
vote
0 answers

Getting an error when trying to place an order with Quantopian futures paper trade

So I am now moving to learn quantopian for futures trading and have ran into a problem where I cannot place a paper trade. The error says that it cannot specify the symbol in the order method. I am hoping that someone can give me an answer to help…
Kamikaze_goldfish
  • 856
  • 1
  • 10
  • 24
1
vote
1 answer

zipline installation from Quantopian modifies Anaconda

I am working with Anaconda with python 2.7. In order to do algorithmic trading I wanted to install 'zipline' package using conda giving command as conda install -c Quantopian Zipline from Anaconda prompt. After 'Solving environment' message, I got…
0
votes
1 answer

Zipline installation trouble

After I installed zipline with the anaconda prompt everything was imported and installed correctly. But in the Jupyter notebook, I am getting error like no module called 'matplotlib' or pandas 'DataReader' is not working. When I try to install it in…
0
votes
1 answer

How to transfer data from Quantopian to Excel

Anyone know how you get a dataframe from Quantopian to excel - I try - results.to_excel results are the name of my dataframe
ants
  • 35
  • 1
  • 5
0
votes
1 answer

SyntaxError: Generator expression must be parenthesized in Zipline

i'm install zipline , i follow the website step https://pythonprogramming.net/zipline-local-install-python-programming-for-finance/ when i type import zipline , give me error message , just like >>> import zipline Traceback (most recent call…
Boon Hong
  • 27
  • 2
0
votes
0 answers

Unconvert zipline string

Is there a way to unconvert a zipline object that was converted to a string or to find the string object in Fundamentals.columns and return the value. This is the original type class zipline.pipeline.data.dataset.BoundColumn Since it is in a frozen…
J.J.
  • 75
  • 8
0
votes
1 answer

zipline : change input data for built in factors

I'm trying to use Zipline API in my local environment. I have successfully ingested my custom csv data and the backtesting works fine without using the Pipeline API. However, I am lost on how I should make use of built in factors when using the…
0
votes
0 answers

How to call and filter only one stock to this df that has a very long index name?

I cannot call a specific stock due to its very long index name. I used to... for calling under a TICKER column but now its on the index. df2 = df[df['TICKER'] == What_Stock1] quantopian, self-serve data
0
votes
1 answer

Unable to use pandas excel writer with zipline dataframe?

I'm trying to write a dataframe (from zipline pickle) to excel, but so far it's not working as usual (for dataframes). Suggestions would be greatly appreciated! writer =…
Tom M
  • 3
  • 1
  • 2
0
votes
0 answers

How do I assign dynamic key values in a dictionary in Python?

Environment: Zipline 1.3.0 miniconda3 windows OS I am trying to iterate S in data. S.symbol has like 15 values. When iterating in data for 1 symbol, say ‘spy’ as in below code; i want to create 2keys (S.symbol + “c”) —-> spyc to hold current…
0
votes
0 answers

Custom factor issue, zero-size array

having this issue right now with a custom factor, it keeps saying in the log that I have an error and that my array size is 0 (after backtesting a little, I know this is where that error lies). If you need more information, please feel free to…
0
votes
1 answer

Importing freely available Quantopian data into my own local, Python script?

I have come across a data set that looks very relevant to what I need. The data set is provided through the online platform Quantopian, where you impot it into their existing Python environment. Is it possible at all to import this same data set API…
KOB
  • 4,084
  • 9
  • 44
  • 88
-1
votes
1 answer

Cannot read zipline backtest output

I am a newbie using zipline and trying to evaluate the backtest result of a quantitative investment strategy. I use following to perform a backtest: zipline run -f my_strat.py -s '2009-01-01' -e '2020-06-01' -b my_custom_bundle -o results.csv Then…
mccandar
  • 778
  • 8
  • 16
-1
votes
1 answer

NameError: name 'current_portfolio' is not defined

I am getting NameError: name 'current_portfolio' is not defined def initialize(context): context.sym = symbol('xxx') context.i = 0 def handle_data(context, data): context.i += 1 if context.i < 60: return sma1 = data.history(context.sym,…
sam
  • 71
  • 1
  • 3
  • 14
1
2