lindomar-oliveira / backtrader-binance

Binance API integration with Backtrader.
MIT License
139 stars 61 forks source link

Account has insufficient balance for requested action. #6

Closed mmeftah closed 3 years ago

mmeftah commented 3 years ago

Hello, thank you for your work. It appears that when I try the example code on Binance Spot (not the testnet) I have a BinanceApiException. Account has insufficient balance for requested action.

I am looking at testing the algorithm with 100 EUR and targeting ETH/EUR.

What should be the minimum initial cash ? Can it be a parameter (like in fastquant).

Thanks

lindomar-oliveira commented 3 years ago

Hi @mmeftah,

1 - You must have EURO in your account. PS.: When trading this symbol, for example you are buying ETH using your EUR balance. Check that the purchase amount (EUR) is not greater than your quote converted to EUR.