knowm / XChange

XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
http://knowm.org/open-source/xchange/
MIT License
3.86k stars 1.94k forks source link

Binance dapi fix #4876

Closed rizer1980 closed 4 months ago

rizer1980 commented 4 months ago

At first I was just going to fix this #4807 bug. douggie, author of #4785, disappeared for a long time.

But when I saw what a mess it turns out after adding SPOT, FUTURES, INVERSE_FUTURES, PORTOLIO_MARGIN and three more have SANDBOX options.

Then I decided to rework this moment into enum. 4 enums and one SANDBOX option for all.

breaks compatibility a little for futures users, but not spot.