Skip to content

Commit e6a56fd

Browse files
committed
added logging for place order
1 parent 70bf285 commit e6a56fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Bot/Strategy/PlaceOrderStrategy.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def prepare_volume_allocation(self, targets):
104104
continue
105105

106106
if bal - vol < 0:
107-
self.logWarning('Insufficient balance to place order. Bal: {}, Order: {}'.format(bal, vol))
107+
self.logWarning(
108+
'Insufficient balance to place order. Bal: {}, Order: {}. Target: {}'.format(bal, vol, t.__str__()))
108109
return
109110

110111
# place only new and not smart targets

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Cryptobot
2+
[![Build Status](https://dev.azure.com/iluninigor/CryptoBot/_apis/build/status/BuildImage?branchName=develop)](https://dev.azure.com/iluninigor/CryptoBot/_build/latest?definitionId=3&branchName=develop)
23

34
The main purpose of the bot is to keep track of your Binance trades while you're away.
45
This bot is not supposed to earn money by itself, it requires targets and stop-loss inputs to follow your trades.

0 commit comments

Comments
 (0)