btcpayserver / btcTransmuter

A self-hosted ,modular IFTTT-inspired system for bitcoin services written in C#
https://btcpayserver.org
79 stars 23 forks source link

Only whole numbers can be sold on exchanges when balance is retrieved. #25

Closed astupidmoose closed 5 years ago

astupidmoose commented 5 years ago

Example Recipe: Trigger: Balance on Exchange GreaterThan 0.1 LTC Action: Place Sell Market Order on LTCUSD

Expected Result: Entire Balance is sold if greater than 0.1

Actual Result: If Balance is above 1.0, lowest whole number is sold. Example a balance of 14.6, sells 14.0. If balance is below 1.0, log returns balance, but gives error "Could not place order because EOrder:Insufficient funds" when trying to place order.

astupidmoose commented 5 years ago

This doesn't actually appear to be the case now. I sent another 9.4 LTC to the exchange and it autosold the entire balance. Will do more testing

astupidmoose commented 5 years ago

Something is still wrong here:

I had a balance of 0.14561156 Dash and when trying to sell, was getting the error: Could not place order because EOrder:Insufficient funds

I emptied the balance manually no issues.

I sent 0.13483569 Dash to Kraken, and turned on the trigger again. Error: Could not place order because EOrder:Insufficient funds

Placed the order manually and was able to sell without issue manually. This error is only popping up when using the Transmuter via API.