Unable to close trades on some exchanges #185
Labels
No labels
blocked
breaking
bug
dependencies
duplicate
enhancement
good first issue
help wanted
question
tech debt
testing
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scion/arbitrader#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On Bitflyer and Poloniex Arbitrader seems to consistently try to close trades using slightly too much volume, which makes the order fail.
The problem has to do with how the exchanges compute fees. We're trying to open an order to sell off the entire cryptocurrency balance, back to zero. On most exchanges, we submit an order for the entire remaining balance, the exchange subtracts fees and processes the order. These two exchanges appear to take our requested order volume and add the fees to that amount, which pushes it over the account balance.
I have two solutions to try for this problem, in priority order: