Gekko: Binance - Not checking funds properly

Created on 2 Feb 2018  Â·  10Comments  Â·  Source: askmike/gekko

Note: for support questions, please join our Discord server

  • I'm submitting a ...
    [x ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository

  • Action taken (what you did)
    Trading BCC/USD in Binance with RSI strategy

  • Expected result (what you hoped would happen)
    trade as normal

  • Actual result (unexpected outcome)
    Error occurs and shuts down

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
    untitled 3
    This is the Gekko readout
    Log file follows:
    2018-02-01 23:44:30 (DEBUG): [binance.js] entering "setBalance" callback after api call, err: null, data: [object Object]
    2018-02-01 23:44:30 (INFO): Attempting to SELL 0.613 BCC at binance price: 1186
    2018-02-01 23:44:30 (DEBUG): [binance.js] (addOrder) SELL 0.613 BCC @1186 USDT
    2018-02-01 23:44:30 (ERROR): [binance.js] (addOrder) returned an irrecoverable error: Error: Response code 400
    2018-02-01 23:44:30 (DEBUG): [binance.js] entering "setOrder" callback after api call, err: [binance.js] Response code 400 data: {"code":-2010,"msg":"Account has insufficient balance for requested action."}

I had to make changes to the BCC/USDT pair in order to get it to trade at all (the minimum order seems to be 10 USDT now if I go into Binance on mobile so I tried to modify it to accommodate that) but I don't know if that's causing it. My modifications are below:
{
"pair": [
"USDT",
"BCC"
],
"minimalOrder": {
"amount": 0.009,
"price": 0.01,
"order": 10
}
},

bug wontfix

Most helpful comment

Is this fixed? Im scared to live trade on binance :dagger:

All 10 comments

I think this might have been fixed on the develop branch. Try using it

i'm using the latest copy of develop

Account has insufficient balance for requested action."

Is the problem, which definitely has to do with Gekko: it thinks you can trade but it can't after calculating a too high amount.

ping @cmroche (just so you are aware).

Getting this error as well on latest develop + [email protected] + node 8.9.4

[binance.js] entering "setOrder" callback after api call, err: [binance.js] Response code 400 data: {"code":-2010,"msg":"Account has insufficient balance for requested action."}

will try to work on this once binance is back up.

On Thu, Feb 8, 2018 at 2:39 AM, LOZE notifications@github.com wrote:

Getting this error as well on latest develop + [email protected] + node 8.9.4

[binance.js] entering "setOrder" callback after api call, err:
[binance.js] Response code 400 data: {"code":-2010,"msg":"Account has
insufficient balance for requested action."}

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/askmike/gekko/issues/1843#issuecomment-363867269, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA7MDwxEhctceTSsaFHulxkZLWBsvu2eks5tSe3MgaJpZM4R2zY9
.

--
PGP key at keybase.io/mikevanrossum
https://keybase.io/mikevanrossum/key.asc

Is this fixed? Im scared to live trade on binance :dagger:

I am trading binance with development 0.5.13 and have no problems like this. Not sure if the latest development with new trade class works 100%, as I never tested it.

Is this fixed as per the current stable release?

Yes.

On Mon, 30 Jul 2018, 00:24 berlie, notifications@github.com wrote:

Is this fixed as per the current stable release?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/askmike/gekko/issues/1843#issuecomment-408688821, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA7MD29k6ME4zKEOAVYXhGka0u6oRWAvks5uLeGygaJpZM4R2zY9
.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chevinbrown picture chevinbrown  Â·  3Comments

belemaire picture belemaire  Â·  5Comments

burtnderson picture burtnderson  Â·  5Comments

gekkotrader picture gekkotrader  Â·  4Comments

Oowii picture Oowii  Â·  4Comments