From af027ad06a83d0519596f522b08ea81222935177 Mon Sep 17 00:00:00 2001 From: Tomoaki Sato Date: Sat, 9 Dec 2017 20:36:20 +0900 Subject: [PATCH] Update maker.py --- python/maker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/maker.py b/python/maker.py index cfffae3..a49fa2a 100644 --- a/python/maker.py +++ b/python/maker.py @@ -89,8 +89,8 @@ es.send_message(order) # Create buy orders - for sellordernr in range(1,sellOrdersToPlace+1): - price = midmarket - sellordernr * midmarket * marginfactor + for buyordernr in range(1,buyOrdersToPlace+1): + price = midmarket - buyordernr * midmarket * marginfactor amount = float(buyVolumeToPlace) / float(price) / float(buyOrdersToPlace) order = es.createOrder('buy', expires, price, amount, token, userAccount, user_wallet_private_key) es.send_message(order)