Closed jingedawang closed 2 years ago
The implementation details for API get_stock_list
:
stock_list.csv
.The implementation details for API predict
:
It can be tested locally now.
It can be accessed anywhere now!
Please try following APIs.
Homepage help url: http://20.205.61.210:5000/
API 1: Get stock list http://20.205.61.210:5000/stock/list
API 2: Predict http://20.205.61.210:5000/stock/600000 Because our data and prediction is not ready, the result contains many NaN and null. Here is the result screenshot.
API 3: Predict in date http://20.205.61.210:5000/stock/600000/2020-04-19 To make it convenient for front-end test, this API will predict at the given date. So, this request will get the history data correctly, but the prediction is still not available.
Data has been updated to the newest date. Now we can use API 2 to obtain the history of recent 40 days. http://20.205.61.210:5000/stock/600000
Round the prices to 2 decimals. Add English name to the response. http://20.205.61.210:5000/stock/600000
Web API provides following interfaces with HTTP protocol.
Interface 1: Get stock list.
Interface 2: Predict.