-
Notifications
You must be signed in to change notification settings - Fork 2
Returns the latest mean reversion data available for a ticker
-
URL
/ai/mean/:ticker
-
Method:
GET
-
URL Params
ticker
: String, equity ticker symbol -
Data Params
None
-
Success Response:
-
Code: 200
Content:{ "smaDates": [dates] "smaPrices": [numbers] "smaLower": [numbers] "smaUpper": [numbers] "smaBuyers": [numbers] "smaSellers": [numbers] }
-
Code: 200
-
Error Response:
-
Code: 400 BAD REQUEST
Content:{ "error" : {err} }
-
Code: 400 BAD REQUEST
-
Sample Call:
/ai/mean/aapl
{
"smaDates": [
"2020-05-28",
"2020-05-29",
"2020-06-01",
"2020-06-02",
"2020-06-03",
"2020-06-04",
"2020-06-05",
"2020-06-08",
"2020-06-09",
...,
"2021-04-29",
"2021-04-30"
],
"smaPrices": [
"76.748510",
"77.058615",
"77.476019",
"77.861224",
"78.213990",
"78.493852",
"78.849314",
"79.139479",
"79.499915",
...,
"131.830500",
"132.337500"
],
"smaLower": [
"71.879064",
"72.441736",
"73.419035",
"74.266459",
"74.917595",
"75.567034",
"75.805211",
"75.699095",
"75.043654",
...,
"124.966574",
"126.862483"
],
"smaUpper": [
"81.617956",
"81.675493",
"81.533004",
"81.455989",
"81.510385",
"81.420670",
"81.893417",
"82.579863",
"83.956176",
...,
"138.694427",
"137.812518"
],
"smaBuyers": [
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
...,
"NaN",
"NaN"
],
"smaSellers": [
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"82.460152",
"82.947685",
"85.567009",
...,
"NaN",
"NaN"
]
}
Returns (at most) 1 year of close price data for a ticker
-
URL
/ai/close/:ticker
-
Method:
GET
-
URL Params
ticker
: String, equity ticker symbol -
Data Params
None
-
Success Response:
-
Code: 200
Content:{ "data": [numbers] }
-
Code: 200
-
Error Response:
-
Code: 400 BAD REQUEST
Content:{ "error" : {err} }
-
Code: 400 BAD REQUEST
-
Sample Call:
/ai/close/aapl
{
"data": [
"79.164230",
"79.087120",
"80.059723",
"80.430351",
"80.873131",
"80.176636",
"82.460152",
"82.947685",
"85.567009",
...,
"133.580002",
"131.830500",
"132.336500"
]
}
Returns momentum graph data for a ticker
-
URL
/ai/momentum/:ticker
-
Method:
GET
-
URL Params
ticker
: String, equity ticker symbol -
Data Params
None
-
Success Response:
-
Code: 200
Content:{ "dates": [dates], "rsi": [numbers], "buy": [numbers], "sell": [numbers], }
-
Code: 200
-
Error Response:
-
Code: 400 BAD REQUEST
Content:{ "error" : {err} }
-
Code: 400 BAD REQUEST
-
Sample Call:
/ai/momentum/aapl
{
"dates": [
"2020-05-21",
"2020-05-22",
"2020-05-26",
"2020-05-27",
"2020-05-28",
"2020-05-29",
"2020-06-01",
"2020-06-02",
"2020-06-03",
...,
"2021-04-29",
"2021-04-30"
],
"rsi": [
"69.637951",
"70.785354",
"67.861129",
"68.749366",
"68.843453",
"68.352780",
"71.146222",
"72.154873",
"73.353311",
...,
"57.985592",
"56.700859"
],
"buy": [
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
"NaN",
...,
"NaN",
"NaN"
],
"sell": [
"NaN",
"70.785354",
"NaN",
"NaN",
"NaN",
"NaN",
"71.146222",
"72.154873",
"73.353311",
...,
"NaN",
"NaN"
]
}
Returns candlesticks graph data for a ticker
-
URL
/ai/candlesticks/:ticker
-
Method:
GET
-
URL Params
ticker
: String, equity ticker symbol -
Data Params
None
-
Success Response:
-
Code: 200
Content:Response: { "data": [ {Candlesticks Objects} ], } Candlesticks Object: { "x": (Date), "y": [number, number, number, number] }
-
Code: 200
-
Error Response:
-
Code: 400 BAD REQUEST
Content:{ "error" : {err} }
-
Code: 400 BAD REQUEST
-
Sample Call:
/ai/candlesticks/aapl
{
"data": [
{
"x":"2021-02-01",
"y":["133.75","135.38","130.93","134.14"]
},
{
"x":"2021-02-02",
"y":["135.73","136.31","134.61","134.99"]
},
{
"x":"2021-02-03",
"y":["135.76","135.77","133.61","133.94"]
},
...,
{
"x":"2021-04-29",
"y":["132.45","2021.00","137.07","136.47"]
},
{
"x":"2021-04-30",
"y":["131.37","2021.00","133.56","131.78"]
}
]
}