Skip to content

Commit

Permalink
Merge pull request #8 from TOMOAKI12345/patch-1
Browse files Browse the repository at this point in the history
Update maker.py
  • Loading branch information
zackcoburn committed Dec 12, 2017
2 parents cd13ff4 + af027ad commit fae10ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fae10ad

Please sign in to comment.