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

Suggestion on the Tutorial #2

Open
nicholas631 opened this issue Jul 25, 2018 · 7 comments
Open

Suggestion on the Tutorial #2

nicholas631 opened this issue Jul 25, 2018 · 7 comments

Comments

@nicholas631
Copy link

For background I am coming over from quantopian and do more engineering calculations than coding.

The tutorial would benefit from discussing how to setup the system environment first - maybe tutorial 0. The Heroku and the standalone pc path should be discussed at additional length. On Heroku, I cloned some sample code over from github and the error messages appear to be meaningless. For the PC a list of downloads would awesome.

Good luck with launching Alpaca - planning to jump on to a good thread to get started.

Regards,
Nick

2018-07-24T01:38:30.377986+00:00 heroku[run.1571]: State changed from up to complete
2018-07-24T01:38:30.347350+00:00 heroku[run.1571]: Process exited with status 127
2018-07-24T01:39:18.131817+00:00 heroku[run.4548]: State changed from starting to up
2018-07-24T01:39:18.031417+00:00 heroku[run.4548]: Awaiting client
2018-07-24T01:39:18.063853+00:00 heroku[run.4548]: Starting process with command Universe = ['MMM', 'ABT', 'ABBV', 'ACN', 'ATVI', 'AYI', 'ADBE', ..., 'ZTS']
2018-07-24T01:39:17.410248+00:00 app[api]: Starting process with command Universe = ['MMM', 'ABT', 'ABBV', 'ACN', 'ATVI', 'AYI', 'ADBE', ..., 'ZTS'] by user nick.difrancesco@gmail.com
2018-07-24T01:39:22.378332+00:00 heroku[run.4548]: State changed from up to complete
2018-07-24T01:39:22.362558+00:00 heroku[run.4548]: Process exited with status 127
2018-07-24T23:28:59.000000+00:00 app[api]: Build started by user nick.difrancesco@gmail.com
2018-07-24T23:29:12.000000+00:00 app[api]: Build failed -- check your build logs

@umitanuki
Copy link
Contributor

Hmm, I'm not sure what's happening between "Starting process... " and "State changed from up to complete". The exit status 127 sounds like some command was not found but not sure what.

And thanks for the comment and suggestion. Our goal is to help people like your background who is not necessarily expert in coding, with some hosting, easy setup, hiding all those heavy lifting parts. It could take some time to build something like that, and we want to make sure different use cases are covered well enough.

@umitanuki
Copy link
Contributor

Maybe build log give some idea. You can also send all of what you have to me hitoshi@alpaca.markets if that’s easier

@klaussmit88
Copy link

I come from a similar background than @nicholas631. Setting up the environment was a challenge and in general knowing what is the next step to take to get closer to live trading.

@klaussmit88
Copy link

@nicholas631 What platform are you using to build the code? I am using visual studio within Anaconda and I am planning to start by using my computer to launch the code and once it is working moving onto a google server. Any thoughts suggestions are appreciated

@klaussmit88
Copy link

What I have attempted so far

Universe[1]
'ABT'
prices(Universe[1])
{'ABT': <DataFrame, len() = 1200>}
items()
[0]:('ABT', <DataFrame, len() = 1200>)
['ABT']:<DataFrame, len() = 1200>
DEBUG:urllib3.connectionpool:Resetting dropped connection: api.alpaca.markets
DEBUG:urllib3.connectionpool:https://api.alpaca.markets:443 "GET /v1/bars?symbols=ABT&timeframe=1D&end_dt=2018-07-28T23%3A59%3A00.091420-04%3A00&limit=1200 HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://api.alpaca.markets:443 "GET /v1/bars?symbols=ABT&timeframe=1D&end_dt=2018-07-28T23%3A59%3A00.850420-04%3A00&limit=1200 HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://api.alpaca.markets:443 "GET /v1/bars?symbols=ABT&timeframe=1D&end_dt=2018-07-28T23%3A59%3A00.695420-04%3A00&limit=1200 HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://api.alpaca.markets:443 "GET /v1/bars?symbols=ABT&timeframe=1D&end_dt=2018-07-28T23%3A59%3A00.249420-04%3A00&limit=1200 HTTP/1.1" 200 None

@klaussmit88
Copy link

Trying to run simulate() ... any help is appreciated

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

(base) C:\Personal\80091590\Desktop\Masters in Analytics\Alpaca Live Trade\samplealgo01-master>cd "c:\Personal\80091590\Desktop\Masters in
Analytics\Alpaca Live Trade\samplealgo01-master" && cmd /C "set "PYTHONIOENCODING=UTF-8" && set "PYTHONUNBUFFERED=1" && C:\Users\80091590\AppData\Local\Continuum\anaconda3\python.exe c:\Users\80091590.vscode\extensions\ms-python.python-2018.7.1\pythonFiles\PythonTools\visualstudio_py_launcher.py "c:\Personal\80091590\Desktop\Masters in Analytics\Alpaca Live Trade\samplealgo01-master" 60663 34806ad9-833a-4524-8cd6-18ca4aa74f14 RedirectOutput,RedirectOutput "c:\Personal\80091590\Desktop\Masters in Analytics\Alpaca Live Trade\samplealgo01-master\samplealgo\btest.py" "
Traceback (most recent call last):
File "c:\Personal\80091590\Desktop\Masters in Analytics\Alpaca Live Trade\samplealgo01-master\samplealgo\btest.py", line 2, in
from . import algo
ImportError: cannot import name 'algo'

(base) C:\Personal\80091590\Desktop\Masters in Analytics\Alpaca Live Trade\samplealgo01-master>

@umitanuki
Copy link
Contributor

You may need to set PYTHONPATH to the top of this directory. That is what is done in playground.py for Jupyter notebook and you may want to do the same.

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

3 participants