Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binance Problem #27

Open
Chetchaiyan opened this issue May 9, 2020 · 3 comments
Open

Binance Problem #27

Chetchaiyan opened this issue May 9, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@Chetchaiyan
Copy link

Dear Sir,

I found problem when trying to trade on binance. Here is the following detail.

Error when try to trade buy / sell / order_target
the error I found is ccxt.base.errors.ExchangeError: binance {"code":-1104,"msg":"Not all sent parameters were read; read '8' parameter(s) but was sent '9'."}

I look into the code and found out that ccxtbroker._submit add 'created' to params which course this problem. I comment that line out and it's work.

ccxt_order['trades'] is none in ccxtbroker.next
binance return ccxt_order with 'trades' key but none value in it which course error Line 199. I check for not null in line 198 and it's work again

Sorry for not issue pull requests, I don't know how to do it. I will try to learn and may be send you a pull requests later.

Best Regards,
Chet Chetchaiyan

@Dave-Vallance Dave-Vallance added the bug Something isn't working label May 9, 2020
@Dave-Vallance
Copy link
Owner

The second issue looks like it was recently introduced. Should be a simple fix to check for the key.

The first issue needs more thought as that is needed for backtesting.

@lsps2009
Copy link

Dear Sir,

I found problem when trying to trade on binance. Here is the following detail.

Error when try to trade buy / sell / order_target
the error I found is ccxt.base.errors.ExchangeError: binance {"code":-1104,"msg":"Not all sent parameters were read; read '8' parameter(s) but was sent '9'."}

I look into the code and found out that ccxtbroker._submit add 'created' to params which course this problem. I comment that line out and it's work.

ccxt_order['trades'] is none in ccxtbroker.next
binance return ccxt_order with 'trades' key but none value in it which course error Line 199. I check for not null in line 198 and it's work again

Sorry for not issue pull requests, I don't know how to do it. I will try to learn and may be send you a pull requests later.

Best Regards,
Chet Chetchaiyan

I have the same problem for living trade on binance. but it don’t work by trying your idea. can you show me the modified code,thanks!

@JzINSA
Copy link

JzINSA commented May 28, 2020

I have the same issues.

In bt-ccxt-store/ccxtbt/ccxtbroker.py, comment out :
params['created'] = created
in def _submit() for the first issue.

In the same file, in the method def next(self), change the following line:
if 'trades' in ccxt_order:
to
if 'trades' in ccxt_order and ccxt_order['trades']!=None:

By doing the above two operations, I got the code working. While waiting for the official fix, this should be sufficient.

planet-winter pushed a commit to planet-winter/bt-ccxt-store that referenced this issue Jul 8, 2020
planet-winter pushed a commit to planet-winter/bt-ccxt-store that referenced this issue Jul 8, 2020
Dave-Vallance added a commit that referenced this issue Sep 17, 2021
fixes for #27 and fix of broker's get_wallet_balance() for live trading
viper7882 added a commit to viper7882/bt-ccxt-store that referenced this issue Oct 18, 2021
fixes for Dave-Vallance#27 and fix of broker's get_wallet_balance() for live trading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants