askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.07k stars 3.94k forks source link

Binance: Error -2010: Account has insufficient balance for requested action. #2308

Closed PhunkyBob closed 6 years ago

PhunkyBob commented 6 years ago

I'm submitting a ... [X] bug report [ ] question about the decisions made in the repository

Action taken (what you did) Lauch my strategy on Binance.

Expected result (what you hoped would happen) When I give order to buy, I expect the bot to buy.

Actual result (unexpected outcome)

2018-07-13 22:04:16 (INFO):     Trader Received advice to go long. Buying  EOS
2018-07-13 22:04:16 (DEBUG):    Creating order to buy 20.6740028397646 EOS
2018-07-13 22:04:21 (DEBUG):    [ORDER] statusChange: SUBMITTED
handleCreate Error -2010: Account has insufficient balance for requested action.
/home/gekko/gekko/exchange/orders/sticky.js:132
      throw err;
      ^

Error: Error -2010: Account has insufficient balance for requested action.
    at /home/gekko/gekko/exchange/wrappers/binance.js:72:15
    at Request.request [as _callback] (/home/gekko/gekko/exchange/node_modules/binance/lib/rest.js:90:25)
    at Request.self.callback (/home/gekko/gekko/exchange/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/home/gekko/gekko/exchange/node_modules/request/request.js:1157:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/home/gekko/gekko/exchange/node_modules/request/request.js:1079:12)
    at Object.onceWrapper (events.js:313:30)

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

PhunkyBob commented 6 years ago

Same thing on another trade on another pair:

2018-07-13 22:26:18 (INFO):     Trader Received advice to go long. Buying  ADA
2018-07-13 22:26:18 (DEBUG):    Creating order to buy 1008.1655555107525 ADA
2018-07-13 22:26:24 (DEBUG):    [ORDER] statusChange: SUBMITTED
handleCreate Error -2010: Account has insufficient balance for requested action.
/home/gekko/gekko/exchange/orders/sticky.js:132
      throw err;
      ^

Error: Error -2010: Account has insufficient balance for requested action.
    at /home/gekko/gekko/exchange/wrappers/binance.js:72:15
    at Request.request [as _callback] (/home/gekko/gekko/exchange/node_modules/binance/lib/rest.js:90:25)
    at Request.self.callback (/home/gekko/gekko/exchange/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/home/gekko/gekko/exchange/node_modules/request/request.js:1157:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/home/gekko/gekko/exchange/node_modules/request/request.js:1079:12)
    at Object.onceWrapper (events.js:313:30)
askmike commented 6 years ago

Just to be sure, what version of Gekko are you running? Please post the output of git log | head -n 1

I will keep a live binance gekko running full stop until we get all kinks out, apologies. Keeping this open for now.

PhunkyBob commented 6 years ago

I'm on commit e42ec2350485ea93addcf6c9481af77446f4c6eb.

mark-sch commented 6 years ago

In trader.js you set the amount to 95%, I had some trouble with this when you buy assets which have a minimumOrder of e.g. 100 (Docademic). What was your goal to set it to 95%? Could this problem be related to the one above?

amount = this.portfolio.asset * 0.95;

askmike commented 6 years ago

That is to make sure that when you have 99.9BNB gekko will never try to sell 100 (because rounding).

On Sun, 15 Jul 2018, 20:17 Mark Sch., notifications@github.com wrote:

In trader.js you set the amount to 95%, I had some trouble with this when you buy assets which have a minimumOrder of e.g. 100 (Docademic). What was your goal to set it to 95%? Could this problem be related to the one above?

amount = this.portfolio.asset * 0.95;

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

askmike commented 6 years ago

I was locally able to reproduce: when Gekko cancels the order it wasn't properly checking whether the cancel went okay (in case the order was already executed the cancel would fail). There was a bug in this check, it's now fixed :)

Can you pull the latest develop and let me know if that works?

PhunkyBob commented 6 years ago

It's git-pulled. IKYIT

Thank you

PhunkyBob commented 6 years ago

Still some problems, but not the same error message... I created a new issue: https://github.com/askmike/gekko/issues/2328

ampyxx commented 6 years ago

I'm still getting this error...

askmike commented 6 years ago

Can you guys post logs?

On Fri, 10 Aug 2018, 08:53 ampyxx, notifications@github.com wrote:

I'm still getting this error...

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/2308#issuecomment-411942463, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7MD9kBduYC5Ez_elYIUB5qhhltFyhYks5uPNmTgaJpZM4VPd8b .

ampyxx commented 6 years ago

2018-08-07 05:47:24 (INFO): Setting up Gekko in realtime mode 2018-08-07 05:47:24 (INFO): 2018-08-07 05:47:24 (INFO): Setting up: 2018-08-07 05:47:24 (INFO): Candle writer 2018-08-07 05:47:24 (INFO): Store candles in a database 2018-08-07 05:47:25 (INFO):

2018-08-07 05:47:25 (INFO): Setting up: 2018-08-07 05:47:25 (INFO): Trading Advisor 2018-08-07 05:47:25 (INFO): Calculate trading advice 2018-08-07 05:47:25 (INFO): Using the strategy: RSI_BULL_BEAR 2018-08-07 05:47:25 (INFO):

2018-08-07 05:47:25 (INFO): Setting up: 2018-08-07 05:47:25 (INFO): Trader 2018-08-07 05:47:25 (INFO): Follows the advice and create real orders. 2018-08-07 05:47:25 (DEBUG): syncing private data 2018-08-07 05:47:25 (INFO):

2018-08-07 05:47:30 (INFO): Portfolio: 2018-08-07 05:47:30 (INFO): x USDT 2018-08-07 05:47:30 (INFO): y BTC 2018-08-07 05:47:30 (INFO): Balance: 2018-08-07 05:47:30 (INFO): z USDT 2018-08-07 05:47:30 (INFO): Exposed: 2018-08-07 05:47:30 (INFO): yes (12.37%) 2018-08-07 05:47:30 (INFO): Setting up: 2018-08-07 05:47:30 (INFO): Performance Analyzer 2018-08-07 05:47:30 (INFO): Analyzes performances of trades 2018-08-07 05:47:30 (INFO):

2018-08-07 05:47:30 (INFO): Setting up: 2018-08-07 05:47:30 (INFO): Child to parent 2018-08-07 05:47:30 (INFO): Relays events from the child to the parent process 2018-08-07 05:47:30 (INFO):

2018-08-07 05:57:25 (DEBUG): syncing private data 2018-08-07 06:07:25 (DEBUG): syncing private data 2018-08-07 06:17:25 (DEBUG): syncing private data 2018-08-07 06:27:25 (DEBUG): syncing private data 2018-08-07 06:33:11 (INFO): NOT buying, already exposed 2018-08-07 06:37:25 (DEBUG): syncing private data 2018-08-07 06:47:25 (DEBUG): syncing private data 2018-08-07 06:57:25 (DEBUG): syncing private data 2018-08-07 07:07:25 (DEBUG): syncing private data 2018-08-07 07:17:25 (DEBUG): syncing private data 2018-08-07 07:27:25 (DEBUG): syncing private data 2018-08-07 07:37:25 (DEBUG): syncing private data 2018-08-07 07:47:25 (DEBUG): syncing private data 2018-08-07 07:57:25 (DEBUG): syncing private data 2018-08-07 08:07:25 (DEBUG): syncing private data 2018-08-07 08:17:25 (DEBUG): syncing private data 2018-08-07 08:27:25 (DEBUG): syncing private data 2018-08-07 08:37:25 (DEBUG): syncing private data 2018-08-07 08:47:25 (DEBUG): syncing private data 2018-08-07 08:57:25 (DEBUG): syncing private data 2018-08-07 09:07:25 (DEBUG): syncing private data 2018-08-07 09:17:25 (DEBUG): syncing private data 2018-08-07 09:27:25 (DEBUG): syncing private data 2018-08-07 09:37:25 (DEBUG): syncing private data 2018-08-07 09:47:25 (DEBUG): syncing private data 2018-08-07 09:57:25 (DEBUG): syncing private data 2018-08-07 10:07:25 (DEBUG): syncing private data 2018-08-07 10:13:17 (INFO): Trader Received advice to go short. Selling BTC 2018-08-07 10:13:17 (DEBUG): Creating order to sell x BTC 2018-08-07 10:13:22 (DEBUG): [ORDER] statusChange: SUBMITTED 2018-08-07 10:13:22 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 10:13:24 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 10:13:24 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 10:13:26 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 10:13:27 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 10:13:33 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 10:13:33 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 10:13:35 (DEBUG): [ORDER] statusChange: FILLED 2018-08-07 10:13:36 (INFO): [ORDER] summary: { price: 7098.000823695521, amount: y date: moment("2018-08-07T10:13:35.942"), side: 'sell', orders: 2, fees: { BNB: 0.11227741 }, feePercent: 0.07500000000000001 } 2018-08-07 10:13:36 (DEBUG): syncing private data 2018-08-07 10:14:17 (INFO): (PROFIT REPORT) original balance: x USDT 2018-08-07 10:14:17 (INFO): (PROFIT REPORT) current balance: y USDT 2018-08-07 10:14:17 (INFO): (PROFIT REPORT) profit: z USDT (0.08497084%) 2018-08-07 10:17:25 (DEBUG): syncing private data 2018-08-07 10:27:25 (DEBUG): syncing private data 2018-08-07 10:37:25 (DEBUG): syncing private data 2018-08-07 10:47:25 (DEBUG): syncing private data 2018-08-07 10:57:25 (DEBUG): syncing private data 2018-08-07 11:07:25 (DEBUG): syncing private data 2018-08-07 11:17:25 (DEBUG): syncing private data 2018-08-07 11:27:25 (DEBUG): syncing private data 2018-08-07 11:37:25 (DEBUG): syncing private data 2018-08-07 11:47:25 (DEBUG): syncing private data 2018-08-07 11:57:25 (DEBUG): syncing private data 2018-08-07 12:07:25 (DEBUG): syncing private data 2018-08-07 12:17:25 (DEBUG): syncing private data 2018-08-07 12:18:20 (INFO): Trader Received advice to go long. Buying BTC 2018-08-07 12:18:20 (DEBUG): Creating order to buy x BTC 2018-08-07 12:18:25 (DEBUG): [ORDER] statusChange: SUBMITTED 2018-08-07 12:18:25 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 12:18:27 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 12:18:27 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 12:18:29 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 12:18:30 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 12:18:32 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 12:18:32 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 12:18:34 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 12:18:35 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 12:18:45 (DEBUG): [ORDER] statusChange: MOVING 2018-08-07 12:18:45 (DEBUG): [ORDER] statusChange: OPEN 2018-08-07 12:18:49 (DEBUG): [ORDER] statusChange: FILLED 2018-08-07 12:18:49 (INFO): [ORDER] summary: { price: 7102.508121893623, amount: y, date: moment("2018-08-07T12:18:49.998"), side: 'buy', orders: 3, fees: { BNB: 0.9016194700000001 }, feePercent: 0.075 } 2018-08-07 12:18:49 (DEBUG): syncing private data 2018-08-07 12:19:20 (INFO): (PROFIT REPORT) original balance: z USDT 2018-08-07 12:19:20 (INFO): (PROFIT REPORT) current balance: z USDT 2018-08-07 12:19:20 (INFO): (PROFIT REPORT) profit: z USDT (0.07648131%) 2018-08-07 12:27:25 (DEBUG): syncing private data 2018-08-07 12:37:25 (DEBUG): syncing private data 2018-08-07 12:47:25 (DEBUG): syncing private data 2018-08-07 12:57:25 (DEBUG): syncing private data 2018-08-07 13:07:25 (DEBUG): syncing private data 2018-08-07 13:17:25 (DEBUG): syncing private data 2018-08-07 13:27:25 (DEBUG): syncing private data 2018-08-07 13:37:25 (DEBUG): syncing private data 2018-08-07 13:47:25 (DEBUG): syncing private data 2018-08-07 13:57:25 (DEBUG): syncing private data 2018-08-07 14:07:25 (DEBUG): syncing private data 2018-08-07 14:17:25 (DEBUG): syncing private data 2018-08-07 14:27:25 (DEBUG): syncing private data 2018-08-07 14:37:25 (DEBUG): syncing private data 2018-08-07 14:47:25 (DEBUG): syncing private data 2018-08-07 14:57:25 (DEBUG): syncing private data 2018-08-07 15:07:25 (DEBUG): syncing private data 2018-08-07 15:17:25 (DEBUG): syncing private data 2018-08-07 15:27:25 (DEBUG): syncing private data 2018-08-07 15:37:25 (DEBUG): syncing private data 2018-08-07 15:47:25 (DEBUG): syncing private data 2018-08-07 15:57:25 (DEBUG): syncing private data 2018-08-07 16:07:25 (DEBUG): syncing private data 2018-08-07 16:17:25 (DEBUG): syncing private data 2018-08-07 16:27:25 (DEBUG): syncing private data 2018-08-07 16:37:25 (DEBUG): syncing private data 2018-08-07 16:47:25 (DEBUG): syncing private data 2018-08-07 16:57:25 (DEBUG): syncing private data 2018-08-07 17:07:25 (DEBUG): syncing private data 2018-08-07 17:17:25 (DEBUG): syncing private data 2018-08-07 17:27:25 (DEBUG): syncing private data 2018-08-07 17:37:25 (DEBUG): syncing private data 2018-08-07 17:47:25 (DEBUG): syncing private data 2018-08-07 17:57:25 (DEBUG): syncing private data 2018-08-07 18:07:25 (DEBUG): syncing private data 2018-08-07 18:17:25 (DEBUG): syncing private data 2018-08-07 18:27:26 (DEBUG): syncing private data 2018-08-07 18:37:26 (DEBUG): syncing private data 2018-08-07 18:47:26 (DEBUG): syncing private data 2018-08-07 18:57:26 (DEBUG): syncing private data 2018-08-07 19:07:26 (DEBUG): syncing private data 2018-08-07 19:17:26 (DEBUG): syncing private data 2018-08-07 19:27:26 (DEBUG): syncing private data 2018-08-07 19:37:26 (DEBUG): syncing private data 2018-08-07 19:47:26 (DEBUG): syncing private data 2018-08-07 19:57:26 (DEBUG): syncing private data 2018-08-07 20:07:26 (DEBUG): syncing private data 2018-08-07 20:17:26 (DEBUG): syncing private data 2018-08-07 20:27:26 (DEBUG): syncing private data 2018-08-07 20:37:26 (DEBUG): syncing private data 2018-08-07 20:47:26 (DEBUG): syncing private data 2018-08-07 20:57:26 (DEBUG): syncing private data 2018-08-07 21:07:26 (DEBUG): syncing private data 2018-08-07 21:17:26 (DEBUG): syncing private data 2018-08-07 21:27:26 (DEBUG): syncing private data 2018-08-07 21:37:26 (DEBUG): syncing private data 2018-08-07 21:47:26 (DEBUG): syncing private data 2018-08-07 21:57:26 (DEBUG): syncing private data 2018-08-07 22:07:26 (DEBUG): syncing private data 2018-08-07 22:17:26 (DEBUG): syncing private data 2018-08-07 22:27:26 (DEBUG): syncing private data 2018-08-07 22:37:26 (DEBUG): syncing private data 2018-08-07 22:47:26 (DEBUG): syncing private data 2018-08-07 22:57:26 (DEBUG): syncing private data 2018-08-07 23:07:26 (DEBUG): syncing private data 2018-08-07 23:17:26 (DEBUG): syncing private data 2018-08-07 23:27:26 (DEBUG): syncing private data 2018-08-07 23:37:26 (DEBUG): syncing private data 2018-08-07 23:47:26 (DEBUG): syncing private data 2018-08-07 23:57:26 (DEBUG): syncing private data 2018-08-08 00:07:26 (DEBUG): syncing private data 2018-08-08 00:17:26 (DEBUG): syncing private data 2018-08-08 00:27:26 (DEBUG): syncing private data 2018-08-08 00:37:26 (DEBUG): syncing private data 2018-08-08 00:47:26 (DEBUG): syncing private data 2018-08-08 00:48:17 (INFO): Trader Received advice to go short. Selling BTC 2018-08-08 00:48:17 (DEBUG): Creating order to sell z BTC 2018-08-08 00:48:23 (DEBUG): [ORDER] statusChange: SUBMITTED 2018-08-08 00:48:23 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 00:48:26 (DEBUG): [ORDER] statusChange: MOVING 2018-08-08 00:48:26 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 00:48:28 (DEBUG): [ORDER] statusChange: MOVING 2018-08-08 00:48:29 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 00:48:31 (DEBUG): [ORDER] statusChange: MOVING 2018-08-08 00:48:31 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 00:48:33 (DEBUG): [ORDER] statusChange: MOVING 2018-08-08 00:48:34 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 00:48:36 (DEBUG): [ORDER] statusChange: MOVING 2018-08-08 00:48:36 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 00:48:38 (DEBUG): [ORDER] statusChange: MOVING 2018-08-08 00:48:39 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 00:48:41 (DEBUG): [ORDER] statusChange: MOVING 2018-08-08 00:48:41 (DEBUG): [ORDER] statusChange: FILLED 2018-08-08 00:48:41 (INFO): [ORDER] summary: { price: 6519.093685604797, amount: x date: moment("2018-08-08T00:48:43.462"), side: 'sell', orders: 2, fees: { BNB: 0.8534098300000001 }, feePercent: 0.07500000000000001 } 2018-08-08 00:48:41 (DEBUG): syncing private data 2018-08-08 00:49:17 (INFO): (PROFIT REPORT) original balance: x USDT 2018-08-08 00:49:17 (INFO): (PROFIT REPORT) current balance: y USDT 2018-08-08 00:49:17 (INFO): (PROFIT REPORT) profit: -1303.23396974 USDT (-7.52180168%) 2018-08-08 00:49:17 (INFO): (ROUNDTRIP) entry date (UTC) exit date (UTC) exposed duration P&L profit 2018-08-08 00:49:17 (INFO): (ROUNDTRIP) 2018-08-07 17:18 2018-08-08 05:48 12 hours -1353.37 -7.81 2018-08-08 00:57:26 (DEBUG): syncing private data 2018-08-08 01:07:26 (DEBUG): syncing private data 2018-08-08 01:17:26 (DEBUG): syncing private data 2018-08-08 01:27:26 (DEBUG): syncing private data 2018-08-08 01:37:28 (DEBUG): syncing private data 2018-08-08 01:47:28 (DEBUG): syncing private data 2018-08-08 01:57:28 (DEBUG): syncing private data 2018-08-08 02:07:28 (DEBUG): syncing private data 2018-08-08 02:17:28 (DEBUG): syncing private data 2018-08-08 02:27:28 (DEBUG): syncing private data 2018-08-08 02:37:28 (DEBUG): syncing private data 2018-08-08 02:47:28 (DEBUG): syncing private data 2018-08-08 02:57:28 (DEBUG): syncing private data 2018-08-08 03:07:29 (DEBUG): syncing private data 2018-08-08 03:17:29 (DEBUG): syncing private data 2018-08-08 03:27:29 (DEBUG): syncing private data 2018-08-08 03:37:29 (DEBUG): syncing private data 2018-08-08 03:47:29 (DEBUG): syncing private data 2018-08-08 03:57:29 (DEBUG): syncing private data 2018-08-08 04:07:29 (DEBUG): syncing private data 2018-08-08 04:17:29 (DEBUG): syncing private data 2018-08-08 04:27:29 (DEBUG): syncing private data 2018-08-08 04:37:29 (DEBUG): syncing private data 2018-08-08 04:47:29 (DEBUG): syncing private data 2018-08-08 04:57:29 (DEBUG): syncing private data 2018-08-08 05:07:29 (DEBUG): syncing private data 2018-08-08 05:17:29 (DEBUG): syncing private data 2018-08-08 05:27:29 (DEBUG): syncing private data 2018-08-08 05:37:29 (DEBUG): syncing private data 2018-08-08 05:47:29 (DEBUG): syncing private data 2018-08-08 05:57:29 (DEBUG): syncing private data 2018-08-08 06:07:29 (DEBUG): syncing private data 2018-08-08 06:17:29 (DEBUG): syncing private data 2018-08-08 06:27:29 (DEBUG): syncing private data 2018-08-08 06:37:29 (DEBUG): syncing private data 2018-08-08 06:47:29 (DEBUG): syncing private data 2018-08-08 06:57:29 (DEBUG): syncing private data 2018-08-08 07:07:29 (DEBUG): syncing private data 2018-08-08 07:17:29 (DEBUG): syncing private data 2018-08-08 07:27:29 (DEBUG): syncing private data 2018-08-08 07:37:29 (DEBUG): syncing private data 2018-08-08 07:47:29 (DEBUG): syncing private data 2018-08-08 07:57:29 (DEBUG): syncing private data 2018-08-08 08:07:29 (DEBUG): syncing private data 2018-08-08 08:17:29 (DEBUG): syncing private data 2018-08-08 08:27:29 (DEBUG): syncing private data 2018-08-08 08:37:29 (DEBUG): syncing private data 2018-08-08 08:47:29 (DEBUG): syncing private data 2018-08-08 08:57:29 (DEBUG): syncing private data 2018-08-08 09:07:29 (DEBUG): syncing private data 2018-08-08 09:17:29 (DEBUG): syncing private data 2018-08-08 09:27:29 (DEBUG): syncing private data 2018-08-08 09:37:29 (DEBUG): syncing private data 2018-08-08 09:47:29 (DEBUG): syncing private data 2018-08-08 09:57:29 (DEBUG): syncing private data 2018-08-08 10:07:29 (DEBUG): syncing private data 2018-08-08 10:17:29 (DEBUG): syncing private data 2018-08-08 10:27:29 (DEBUG): syncing private data 2018-08-08 10:37:29 (DEBUG): syncing private data 2018-08-08 10:47:29 (DEBUG): syncing private data 2018-08-08 10:57:29 (DEBUG): syncing private data 2018-08-08 11:07:29 (DEBUG): syncing private data 2018-08-08 11:17:29 (DEBUG): syncing private data 2018-08-08 11:27:29 (DEBUG): syncing private data 2018-08-08 11:37:29 (DEBUG): syncing private data 2018-08-08 11:43:16 (INFO): Trader Received advice to go long. Buying BTC 2018-08-08 11:43:16 (DEBUG): Creating order to buy x BTC 2018-08-08 11:43:22 (DEBUG): [ORDER] statusChange: SUBMITTED 2018-08-08 11:43:23 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 11:43:25 (DEBUG): [ORDER] statusChange: FILLED 2018-08-08 11:43:25 (INFO): [ORDER] summary: { price: 6289.108288101347, amount: y date: moment("2018-08-08T11:43:23.824"), side: 'buy', orders: 1, fees: { BNB: 0.9005613099999998 }, feePercent: 0.07500000000000001 } 2018-08-08 11:43:25 (DEBUG): syncing private data 2018-08-08 11:44:16 (INFO): (PROFIT REPORT) original balance: x USDT 2018-08-08 11:44:16 (INFO): (PROFIT REPORT) current balance: y USDT 2018-08-08 11:44:16 (INFO): (PROFIT REPORT) profit: -z USDT (-7.87657866%) 2018-08-08 11:47:29 (DEBUG): syncing private data 2018-08-08 11:57:29 (DEBUG): syncing private data 2018-08-08 12:07:29 (DEBUG): syncing private data 2018-08-08 12:17:29 (DEBUG): syncing private data 2018-08-08 12:27:29 (DEBUG): syncing private data 2018-08-08 12:37:29 (DEBUG): syncing private data 2018-08-08 12:47:29 (DEBUG): syncing private data 2018-08-08 12:57:29 (DEBUG): syncing private data 2018-08-08 13:07:29 (DEBUG): syncing private data 2018-08-08 13:17:29 (DEBUG): syncing private data 2018-08-08 13:27:29 (DEBUG): syncing private data 2018-08-08 13:37:29 (DEBUG): syncing private data 2018-08-08 13:47:29 (DEBUG): syncing private data 2018-08-08 13:57:29 (DEBUG): syncing private data 2018-08-08 14:03:19 (INFO): Trader Received advice to go short. Selling BTC 2018-08-08 14:03:19 (DEBUG): Creating order to sell x BTC 2018-08-08 14:03:25 (DEBUG): [ORDER] statusChange: SUBMITTED 2018-08-08 14:03:25 (DEBUG): [ORDER] statusChange: OPEN 2018-08-08 14:03:27 (DEBUG): [ORDER] statusChange: FILLED 2018-08-08 14:03:27 (INFO): [ORDER] summary: { price: 6304.9833776766745, amount: y date: moment("2018-08-08T14:03:25.816"), side: 'sell', orders: 1, fees: { BNB: 0.89319956 }, feePercent: 0.07500000000000001 } 2018-08-08 14:03:27 (DEBUG): syncing private data 2018-08-08 14:04:19 (INFO): (PROFIT REPORT) original balance: z USDT 2018-08-08 14:04:19 (INFO): (PROFIT REPORT) current balance: z USDT 2018-08-08 14:04:19 (INFO): (PROFIT REPORT) profit: z USDT (-7.75128449%) 2018-08-08 14:04:19 (INFO): (ROUNDTRIP) entry date (UTC) exit date (UTC) exposed duration P&L profit 2018-08-08 14:04:19 (INFO): (ROUNDTRIP) 2018-08-08 16:43 2018-08-08 19:03 2 hours 38.26 0.24 2018-08-08 14:07:29 (DEBUG): syncing private data 2018-08-08 14:17:29 (DEBUG): syncing private data 2018-08-08 14:27:29 (DEBUG): syncing private data 2018-08-08 14:37:29 (DEBUG): syncing private data 2018-08-08 14:47:29 (DEBUG): syncing private data 2018-08-08 14:57:29 (DEBUG): syncing private data 2018-08-08 15:07:29 (DEBUG): syncing private data 2018-08-08 15:17:29 (DEBUG): syncing private data 2018-08-08 15:27:29 (DEBUG): syncing private data 2018-08-08 15:37:29 (DEBUG): syncing private data 2018-08-08 15:47:29 (DEBUG): syncing private data 2018-08-08 15:57:29 (DEBUG): syncing private data 2018-08-08 16:07:29 (DEBUG): syncing private data 2018-08-08 16:17:29 (DEBUG): syncing private data 2018-08-08 16:27:29 (DEBUG): syncing private data 2018-08-08 16:37:29 (DEBUG): syncing private data 2018-08-08 16:47:29 (DEBUG): syncing private data 2018-08-08 16:57:29 (DEBUG): syncing private data 2018-08-08 17:07:29 (DEBUG): syncing private data 2018-08-08 17:17:29 (DEBUG): syncing private data 2018-08-08 17:27:29 (DEBUG): syncing private data 2018-08-08 17:37:29 (DEBUG): syncing private data 2018-08-08 17:47:29 (DEBUG): syncing private data 2018-08-08 17:57:29 (DEBUG): syncing private data 2018-08-08 18:07:29 (DEBUG): syncing private data 2018-08-08 18:17:29 (DEBUG): syncing private data 2018-08-08 18:27:29 (DEBUG): syncing private data 2018-08-08 18:37:29 (DEBUG): syncing private data 2018-08-08 18:47:29 (DEBUG): syncing private data 2018-08-08 18:57:29 (DEBUG): syncing private data 2018-08-08 19:07:29 (DEBUG): syncing private data 2018-08-08 19:17:29 (DEBUG): syncing private data 2018-08-08 19:27:29 (DEBUG): syncing private data 2018-08-08 19:37:29 (DEBUG): syncing private data 2018-08-08 19:47:29 (DEBUG): syncing private data 2018-08-08 19:57:29 (DEBUG): syncing private data 2018-08-08 20:07:29 (DEBUG): syncing private data 2018-08-08 20:17:29 (DEBUG): syncing private data 2018-08-08 20:27:29 (DEBUG): syncing private data 2018-08-08 20:37:29 (DEBUG): syncing private data 2018-08-08 20:47:29 (DEBUG): syncing private data 2018-08-08 20:57:29 (DEBUG): syncing private data 2018-08-08 21:07:29 (DEBUG): syncing private data 2018-08-08 21:17:29 (DEBUG): syncing private data 2018-08-08 21:27:29 (DEBUG): syncing private data 2018-08-08 21:37:29 (DEBUG): syncing private data 2018-08-08 21:47:29 (DEBUG): syncing private data 2018-08-08 21:57:29 (DEBUG): syncing private data 2018-08-08 22:07:29 (DEBUG): syncing private data 2018-08-08 22:17:29 (DEBUG): syncing private data 2018-08-08 22:27:29 (DEBUG): syncing private data 2018-08-08 22:37:29 (DEBUG): syncing private data 2018-08-08 22:47:30 (DEBUG): syncing private data 2018-08-08 22:57:30 (DEBUG): syncing private data 2018-08-08 23:07:30 (DEBUG): syncing private data 2018-08-08 23:17:30 (DEBUG): syncing private data 2018-08-08 23:27:30 (DEBUG): syncing private data 2018-08-08 23:37:30 (DEBUG): syncing private data 2018-08-08 23:47:30 (DEBUG): syncing private data 2018-08-08 23:57:30 (DEBUG): syncing private data 2018-08-09 00:07:30 (DEBUG): syncing private data 2018-08-09 00:17:30 (DEBUG): syncing private data 2018-08-09 00:27:30 (DEBUG): syncing private data 2018-08-09 00:37:30 (DEBUG): syncing private data 2018-08-09 00:47:30 (DEBUG): syncing private data 2018-08-09 00:57:30 (DEBUG): syncing private data 2018-08-09 01:07:30 (DEBUG): syncing private data 2018-08-09 01:17:30 (DEBUG): syncing private data 2018-08-09 01:27:30 (DEBUG): syncing private data 2018-08-09 01:37:30 (DEBUG): syncing private data 2018-08-09 01:47:30 (DEBUG): syncing private data 2018-08-09 01:57:30 (DEBUG): syncing private data 2018-08-09 02:07:30 (DEBUG): syncing private data 2018-08-09 02:17:30 (DEBUG): syncing private data 2018-08-09 02:27:30 (DEBUG): syncing private data 2018-08-09 02:37:30 (DEBUG): syncing private data 2018-08-09 02:47:30 (DEBUG): syncing private data 2018-08-09 02:57:30 (DEBUG): syncing private data 2018-08-09 03:07:30 (DEBUG): syncing private data 2018-08-09 03:17:30 (DEBUG): syncing private data 2018-08-09 03:27:30 (DEBUG): syncing private data 2018-08-09 03:37:30 (DEBUG): syncing private data 2018-08-09 03:47:30 (DEBUG): syncing private data 2018-08-09 03:57:30 (DEBUG): syncing private data 2018-08-09 04:07:30 (DEBUG): syncing private data 2018-08-09 04:17:30 (DEBUG): syncing private data 2018-08-09 04:27:30 (DEBUG): syncing private data 2018-08-09 04:37:30 (DEBUG): syncing private data 2018-08-09 04:47:30 (DEBUG): syncing private data 2018-08-09 04:57:30 (DEBUG): syncing private data 2018-08-09 05:07:30 (DEBUG): syncing private data 2018-08-09 05:17:30 (DEBUG): syncing private data 2018-08-09 05:27:30 (DEBUG): syncing private data 2018-08-09 05:37:30 (DEBUG): syncing private data 2018-08-09 05:47:30 (DEBUG): syncing private data 2018-08-09 05:57:30 (DEBUG): syncing private data 2018-08-09 06:07:30 (DEBUG): syncing private data 2018-08-09 06:17:30 (DEBUG): syncing private data 2018-08-09 06:27:30 (DEBUG): syncing private data 2018-08-09 06:37:30 (DEBUG): syncing private data 2018-08-09 06:47:30 (DEBUG): syncing private data 2018-08-09 06:57:30 (DEBUG): syncing private data 2018-08-09 07:07:30 (DEBUG): syncing private data 2018-08-09 07:17:30 (DEBUG): syncing private data 2018-08-09 07:23:24 (INFO): Trader Received advice to go long. Buying BTC 2018-08-09 07:23:24 (DEBUG): Creating order to buy x BTC 2018-08-09 07:23:30 (DEBUG): [ORDER] statusChange: SUBMITTED 2018-08-09 07:23:30 (DEBUG): [ORDER] statusChange: OPEN 2018-08-09 07:23:34 (DEBUG): [ORDER] statusChange: MOVING 2018-08-09 07:23:35 (DEBUG): [ORDER] statusChange: ERROR 2018-08-09 07:23:35 (ERROR): [ORDER] Gekko received error from GB: Error -2010: Account has insufficient balance for requested action. 2018-08-09 07:23:35 (DEBUG): Error: Error -2010: Account has insufficient balance for requested action. at c:\Users\Asus\Desktop\Work\Cryptocurrencies\gekko-0.6.4\gekko-0.6.4\exchange\wrappers\binance.js:78:15 at Request.request [as _callback] (c:\Users\Asus\Desktop\Work\Cryptocurrencies\gekko-0.6.4\gekko-0.6.4\exchange\node_modules\binance\lib\rest.js:90:25) at Request.self.callback (c:\Users\Asus\Desktop\Work\Cryptocurrencies\gekko-0.6.4\gekko-0.6.4\exchange\node_modules\request\request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request. (c:\Users\Asus\Desktop\Work\Cryptocurrencies\gekko-0.6.4\gekko-0.6.4\exchange\node_modules\request\request.js:1157:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage. (c:\Users\Asus\Desktop\Work\Cryptocurrencies\gekko-0.6.4\gekko-0.6.4\exchange\node_modules\request\request.js:1079:12) at Object.onceWrapper (events.js:313:30) 2018-08-09 07:27:30 (DEBUG): syncing private data 2018-08-09 07:37:30 (DEBUG): syncing private data 2018-08-09 07:47:30 (DEBUG): syncing private data 2018-08-09 07:57:30 (DEBUG): syncing private data 2018-08-09 08:07:30 (DEBUG): syncing private data 2018-08-09 08:17:30 (DEBUG): syncing private data 2018-08-09 08:27:30 (DEBUG): syncing private data 2018-08-09 08:37:30 (DEBUG): syncing private data 2018-08-09 08:47:30 (DEBUG): syncing private data 2018-08-09 08:48:06 (INFO): Trader Received advice to go short. Selling BTC 2018-08-09 08:48:06 (DEBUG): Creating order to sell y BTC 2018-08-09 08:48:11 (DEBUG): [ORDER] statusChange: SUBMITTED 2018-08-09 08:48:12 (DEBUG): [ORDER] statusChange: OPEN 2018-08-09 08:48:13 (DEBUG): [ORDER] statusChange: FILLED 2018-08-09 08:48:14 (INFO): [ORDER] summary: undefined 2018-08-09 08:48:14 (DEBUG): syncing private data

This is the last log I have that it broke on. I thought it was because the watcher I had was set to poloniex so I updated the watcher to point at binance. No such luck. Can't figure out what else would cause it other than the trades themselves.

ampyxx commented 6 years ago

When I went back to the UI, it said "Error: {}" no real explanation though.

askmike commented 6 years ago

Did you manually trade either USDT or BTC? Did you have anything else trading either of those (maybe another Gekko)?

ampyxx commented 6 years ago

Nope it's a single bot. I have to restart it every couple of days. Profit-wise it does pretty well.

ampyxx commented 6 years ago

Any idea why this bug keeps happening? Just realized that log shows my budget lol. Yeah that needs to be removed.

On Thu, Aug 9, 2018, 9:18 PM Mike van Rossum notifications@github.com wrote:

Did you manually trade either USDT or BTC? Did you have anything else trading either of those (maybe another Gekko)?

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

askmike commented 6 years ago

@ampyxx please have a look at this issue, especially this comment: https://github.com/askmike/gekko/issues/2405#issuecomment-413448282

ampyxx commented 6 years ago

ok, can you please delete my log?

On Thu, Aug 16, 2018 at 2:12 AM Mike van Rossum notifications@github.com wrote:

@ampyxx https://github.com/ampyxx please have a look at this issue, especially this comment: #2405 (comment) https://github.com/askmike/gekko/issues/2405#issuecomment-413448282

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/2308#issuecomment-413448656, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhxn5tAQS7345yjU2ilgZwRW79mYwB7ks5uRRtBgaJpZM4VPd8b .

askmike commented 6 years ago

@ampyxx done, were you not able to edit it yourself?

ampyxx commented 6 years ago

Nope. Perfect thank you so much for this awesome bot! On my next profit I'll hook you up. I'll also let you know if these new changes address the issue!

On Thu, Aug 16, 2018, 10:15 PM Mike van Rossum notifications@github.com wrote:

@ampyxx https://github.com/ampyxx done, were you not able to edit it yourself?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/2308#issuecomment-413745839, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhxn57f7vqlq6sshkjUVjknCovCJRIUks5uRjVugaJpZM4VPd8b .

askmike commented 6 years ago

thanks!

On Fri, Aug 17, 2018 at 11:39 AM, ampyxx notifications@github.com wrote:

Nope. Perfect thank you so much for this awesome bot! On my next profit I'll hook you up. I'll also let you know if these new changes address the issue!

On Thu, Aug 16, 2018, 10:15 PM Mike van Rossum notifications@github.com wrote:

@ampyxx https://github.com/ampyxx done, were you not able to edit it yourself?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/2308#issuecomment-413745839, or mute the thread https://github.com/notifications/unsubscribe-auth/ ADhxn57f7vqlq6sshkjUVjknCovCJRIUks5uRjVugaJpZM4VPd8b

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/2308#issuecomment-413748715, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7MD49UaqTnPC9hUhXcP8WG01AIXaoAks5uRjr8gaJpZM4VPd8b .

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