Created
August 27, 2019 16:55
-
-
Save andrewkim316/a748c47887dd059d3992b00a9d60f1f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route("/order", methods=["POST"]) | |
def order_handler(): | |
'''Execute an order. Must contain 5 arguments: type, symbol, | |
quantity, side, time in force | |
''' | |
args = request.form.get("text").split(" ") | |
if len(args) == 0: | |
return WRONG_NUM_ARGS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment