markusaksli / TradeBot

Crypto trading bot using Binance API (Java)
GNU General Public License v3.0
373 stars 138 forks source link

Update BuySell.java #3

Closed ebrahimimahdi closed 3 years ago

ebrahimimahdi commented 3 years ago

added precision and LOT_SIZE controll

markusaksli commented 3 years ago

Hi @ebrahimimahdi Could you explain a bit more about what the purpose of this code is? Thanks

suayipozmen commented 3 years ago

If you open manual trade sometimes it gives LOT_SIZE error and dont open an order. And the other problem is double value of amount variable. Binance allows different precision limits by coin.

markusaksli commented 3 years ago

Yeah this makes sense