Krypto-trading-bot
Krypto-trading-bot copied to clipboard
Isssue with apr when order larger than pDivMin will allow
If there is enough BTC to make a trade and still have enough funds to honor pDivMin%, but arp factor or maxAskSize/maxBidSize size the order too large to honor pDivMin% no trade is made and K sits in a weird state where quote is created, but no order is opened. I've got "%" option ticked.
I suspect this is because the resulting order is too large to honor pDivMin% or to large for available funds. I suggest the logic should be to size the order up to arp factor/maxAsk(Bid)Size while still honoring pDvinMin%.
![active quote no active order]
(https://user-images.githubusercontent.com/92389/50404517-98a11000-076e-11e9-9d56-7181fd1c5c53.jpg)
In my case when TBP is 0 this results in a locked state of TBP Held on bid size and attached image on ask size. Lowering the arp factor from 2 to 1 instantly creates a ask order and places it on the exchange.
app exchange: COINBASE/BTC/USD
app version: current
OS distro: Ubunto 18.04