-
Notifications
You must be signed in to change notification settings - Fork 73
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
Create a Heroku App #20
Comments
There is some preliminary working REST API app at https://pyaf.herokuapp.com/ It builds an ozone model by default. |
The REST API is implemented here : https://github.com/antoinecarme/pyaf/blob/heroku-tests/WS/WS_REST_Flask.py |
A new model can be added with a json body like this :
POST at https://pyaf.herokuapp.com/model |
|
The following plots re available :
|
The following SQL dialects are available :
|
Only the CSVFile is not optional!!!! Set proper default values for all other settings. Empty string and None are equivalent. |
A minimal model can be added with a json body like this :
(Google stock quotes). |
sample usage (see WS/curl_tests.sh): <script.sh> PYAF_URL="http://pyaf.herokuapp.com/model" CONTENT_TYPE="Content-Type: application/json" DATA3="{"SignalVar":"Close", "Horizon":"21", "Present":"2016-01-01", "CSVFile": "http://chart.finance.yahoo.com/table.csv?s=GOOG&a=8&b=14&c=2015&d=9&e=14&f=2016&g=d&ignore=.csv\"}"; curl --header "$CONTENT_TYPE" -X POST --data "$DATA3" "$PYAF_URL" </script.sh> The previous curl command predicts three months (Horizon=21) of GOOG signal (yahoo finance API) starting from 2016-01-01. |
Updated the MAkefile with new tests.
The API is working now. Added a class:API label for future API-related issues. |
Need a RESTful API for PyAF and a Heroku demo.
https://pyaf.herokuapp.com/
The text was updated successfully, but these errors were encountered: