Small white questions in the python version of the live digital currency trading library

Author: super215, Created: 2018-07-13 07:27:46, Updated:

if ((dealAmount <= 0): Log (( trade failedTradeType:,buy if tradeType == ORDER_TYPE_BUY elsesell,", diffMoney:",diffMoney",,dealAmount",dealAmount",,doAmount",doAmount") return is null.

It's always a message that the transaction failed, and then I block the code and it's gone, and I don't know what the code is about. if (dealAmount <= 0) { // Processor less than or equal to 0, i.e. cannot be operated, transaction failed, returns null return null; and


More

super215 https://dn-filebox.qbox.me/ba05e2d231db74c56090720c8d90617e20a82196.png

The Little DreamThis judgement is just a test, to see if there is no transaction, and after annotating the code, it is not printed. But the transaction should be no transaction. In addition to this: Log ((("transaction failed - TradeType:","buy" if tradeType == ORDER_TYPE_BUY else "sell",",diffMoney:",diffMoney",,dealAmount",dealAmount",,doAmount",doAmount) You can download the information you have output.

The Little DreamIs this a review? Check if the account has no assets. This transaction is done.

super215If you run for too long, you're going to get a deal gone wrong.