You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need a backend endpoint that the site can access to test the mean reversion strategies for a specific stock and time frame.
Overall:
Krish made a function to apply mean reversion to a stock for a given time frame and return a list of buy/sell dates
You need to discuss this with him and create a REST API that takes the specified parameters and returns a list of buy/sell dates that we can portray on the graph
It's pretty simple if Krish has his function ready to go
Just take in params, retrieve data from polygon endpoint, pass in the data to krish's function along with stock and time frame, and his function should return the list of trades which you can format as shown below and return
We need to make GET request!
Endpoint
'/api/meanreversion'
Params
stock ticker
time frame (last month, last week, last day)
Return
returns list of buy/sell trades in the format shown it the example below
Description
Need a backend endpoint that the site can access to test the mean reversion strategies for a specific stock and time frame.
Overall:
We need to make GET request!
Endpoint
'/api/meanreversion'
Params
Return
Example Call
GET /api/meanreversion
with params:
Example Return
results :
{
'trade1' : {
'action': 'buy' or 'sell',
'time': 'dd/mm/yyyy hh:mm:ss"
},
'trade2' : {
'action': 'buy' or 'sell',
'time': 'dd/mm/yyyy hh:mm:ss"
}
.
.
.
}
Error Handling
For any error, just throw 400
The text was updated successfully, but these errors were encountered: