diff --git a/main.py b/main.py index e0bde6e..bbbc398 100644 --- a/main.py +++ b/main.py @@ -169,7 +169,8 @@ def buy(): else: TRANSACTIONS[user_id].append(t) - return jsonify(t) + tx = t + return jsonify({"term": tx.instrument, "quantity": tx.quantity, "side": tx.side, "date": tx.date, "rate": tx.rate}) @app.route("/api/login", methods=["POST"]) diff --git a/transactions.p b/transactions.p index 1bfa8ca..a8f5121 100644 Binary files a/transactions.p and b/transactions.p differ diff --git a/users.p b/users.p index 81c0fa2..78ee1df 100644 Binary files a/users.p and b/users.p differ