Skip to content

Commit 273d424

Browse files
committed
fixed order bug by removing dev data
1 parent 6a63f0d commit 273d424

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/order.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,13 @@ def listen_to_filled_orders(message):
365365

366366
if order_status == 'FILLED' and side == 'BUY':
367367
# get global variables
368-
# order_pr = float(message['p'])
369-
order_pr = 20763
368+
order_pr = float(message['p'])
369+
# order_pr = 20763
370370

371371
symbol = message['s']
372372

373-
# qty = flot(message['q'])
374-
qty = 0.00052
373+
qty = flot(message['q'])
374+
# qty = 0.00052
375375

376376
# get LAST SYMBOL PRICE
377377
last_pr = get_last_pr(symbol)

0 commit comments

Comments
 (0)