kinbitz

Results 7 comments of kinbitz

I changed this to use the PAIR.last() function last_trade_price = int(float(PAIR.last())*10**(8 + PAIR.asset2.decimals - PAIR.asset1.decimals))

I am using it on the WAVES-USDN pair and it somehow works, not sure why. Perhaps try to calculate the correct fee using matcher_Fee = wxFeeCalculator.calculatePercentDiscountedBuyingFee(priceAssetID, price, tranche_size).

You should use node = http://nodes.waves.exchange and matcher = http://matcher.waves.exchange in your configuration files. everything else works normally.

How to check this? For the WAVES/USDN pair I had to use 10**6.

PyWaves 0.8.41 How to get the latest version? I am using pip install pywaves. I have python3.

I checked in the Waves developers group and this is in fact the latest version of PyWaves.

This formula works, but I tested only on the WAVES/USDN pair.