New answers tagged


I am not sure if this is the optimal solution, but I basically reimplemented Buy() and Sell() in Index() instead of having to call Buy() and Sell(). I used a helper function to factor out common code among the three functions. There might have been functionality in Flask that would allow for iterative requests to Buy() and Sell(), but I couldn't get it to ...

Top 50 recent answers are included