Skip to content

Instantly share code, notes, and snippets.

@andrewkim316
Created August 27, 2019 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewkim316/a748c47887dd059d3992b00a9d60f1f0 to your computer and use it in GitHub Desktop.
Save andrewkim316/a748c47887dd059d3992b00a9d60f1f0 to your computer and use it in GitHub Desktop.
@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