{"action":"created","issue":{"url":"https://api.github.com/repos/MarcelBeining/EazeBot/issues/2","repository_url":"https://api.github.com/repos/MarcelBeining/EazeBot","labels_url":"https://api.github.com/repos/MarcelBeining/EazeBot/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/MarcelBeining/EazeBot/issues/2/comments","events_url":"https://api.github.com/repos/MarcelBeining/EazeBot/issues/2/events","html_url":"https://github.com/MarcelBeining/EazeBot/issues/2","id":337275415,"node_id":"MDU6SXNzdWUzMzcyNzU0MTU=","number":2,"title":"Issue with Deleting a Trade Set","user":{"login":"sHaDoW8185","id":9388661,"node_id":"MDQ6VXNlcjkzODg2NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9388661?v=4","gravatar_id":"","url":"https://api.github.com/users/sHaDoW8185","html_url":"https://github.com/sHaDoW8185","followers_url":"https://api.github.com/users/sHaDoW8185/followers","following_url":"https://api.github.com/users/sHaDoW8185/following{/other_user}","gists_url":"https://api.github.com/users/sHaDoW8185/gists{/gist_id}","starred_url":"https://api.github.com/users/sHaDoW8185/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sHaDoW8185/subscriptions","organizations_url":"https://api.github.com/users/sHaDoW8185/orgs","repos_url":"https://api.github.com/users/sHaDoW8185/repos","events_url":"https://api.github.com/users/sHaDoW8185/events{/privacy}","received_events_url":"https://api.github.com/users/sHaDoW8185/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-01T08:56:32Z","updated_at":"2018-07-01T21:54:04Z","closed_at":null,"author_association":"NONE","body":"Hi again,\r\n\r\nI came back from leaving the bot on overnight.  I received a few errors after trying to delete a tradeset that never executed since the price target was never reached.  Here is what I have:\r\n\r\n2018-06-30 19:06:51,892 [job_queue   ] [INFO ]  Updating trade sets...\r\n2018-06-30 19:06:51,892 [job_queue   ] [INFO ]  Finished updating trade sets...\r\n2018-06-30 19:07:03,664 [dispatcher  ] [ERROR]  An uncaught error was raised while processing the update\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\ccxt\\base\\exchange.py\", line 366, in fetch\r\n    response.raise_for_status()\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\requests\\models.py\", line 939, in raise_for_status\r\n    raise HTTPError(http_error_msg, response=self)\r\nrequests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.binance.com/api/v3/order?timestamp=1530410823760&recvWindow=5000&symbol=ELFBTC&orderId=27401281&signature=b6e7aefe1b6e15c12fbe337d230b2e777248de662e4d599984632ea20f086527\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\telegram\\ext\\dispatcher.py\", line 279, in process_update\r\n    handler.handle_update(update, self)\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\telegram\\ext\\conversationhandler.py\", line 305, in handle_update\r\n    new_state = self.current_handler.handle_update(update, dispatcher)\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\telegram\\ext\\callbackqueryhandler.py\", line 143, in handle_update\r\n    return self.callback(dispatcher.bot, update, **optional_args)\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\EazeBot.py\", line 690, in InlineButtonCallback\r\n    ct.deleteTradeSet(uidTS,sellAll='yes' in args)\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\tradeHandler.py\", line 367, in deleteTradeSet\r\n    self.deactivateTradeSet(iTs,1)\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\tradeHandler.py\", line 237, in deactivateTradeSet\r\n    self.cancelBuyOrders(iTs)\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\tradeHandler.py\", line 592, in cancelBuyOrders\r\n    orderInfo = self.fetchOrder(trade['oid'],self.tradeSets[iTs]['symbol'],'BUY')\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\tradeHandler.py\", line 617, in fetchOrder\r\n    return self.safeRun(lambda: self.exchange.fetchOrder (oid,symbol),0)\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\tradeHandler.py\", line 120, in safeRun\r\n    raise(e)\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\tradeHandler.py\", line 114, in safeRun\r\n    return func()\r\n  File \"c:\\Run\\EazeBot 1.2.15\\eazebot\\tradeHandler.py\", line 617, in <lambda>\r\n    return self.safeRun(lambda: self.exchange.fetchOrder (oid,symbol),0)\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\ccxt\\binance.py\", line 697, in fetch_order\r\n    response = self.privateGetOrder(self.extend(request, params))\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\ccxt\\binance.py\", line 897, in request\r\n    response = self.fetch2(path, api, method, params, headers, body)\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\ccxt\\base\\exchange.py\", line 305, in fetch2\r\n    return self.fetch(request['url'], request['method'], request['headers'], request['body'])\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\ccxt\\base\\exchange.py\", line 378, in fetch\r\n    self.handle_errors(response.status_code, response.reason, url, method, self.last_response_headers, self.last_http_response)\r\n  File \"C:\\Program Files (x86)\\Python37-32\\lib\\site-packages\\ccxt\\binance.py\", line 890, in handle_errors\r\n    raise exceptions[error](self.id + ' ' + body)\r\nccxt.base.errors.InvalidNonce: binance {\"code\":-1021,\"msg\":\"Timestamp for this request was 1000ms ahead of the server's time.\"}\r\n2018-06-30 19:07:14,355 [MainThread  ] [INFO ]  Received signal 2 (SIGINT), stopping...\r\n2018-06-30 19:07:17,432 [MainThread  ] [INFO ]  Created user data autosave backup\r\n2018-06-30 19:07:17,450 [MainThread  ] [INFO ]  User data autosaved\r\n2018-06-30 19:07:24,257 [MainThread  ] [WARNI]  If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.\r\n2018-06-30 19:07:24,257 [MainThread  ] [WARNI]  If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.\r\n2018-06-30 19:07:24,258 [MainThread  ] [WARNI]  If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.\r\n2018-06-30 19:07:24,258 [MainThread  ] [WARNI]  If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.\r\n2018-06-30 19:07:24,258 [MainThread  ] [WARNI]  If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.\r\n2018-06-30 19:07:24,259 [MainThread  ] [INFO ]  Loading user data\r\n2018-06-30 19:07:31,064 [dispatcher  ] [INFO ]  User Jacob Burbank-Goldrich (username: jbgoldrich, id: 999999999) (re)started the bot\r\n2018-06-30 19:08:02,269 [dispatcher  ] [ERROR]  User 530658067: <class 'ccxt.base.errors.ExchangeError'> in tradeHandler.py at line 114: binance: unknown error code: {\"code\":-1104,\"msg\":\"Not all sent parameters were read; read '5' parameter(s) but was sent '6'.\"} -1104\r\n\r\nTrying to delete the tradeset consistently results in this error or other Timestamp errors.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MarcelBeining/EazeBot/issues/comments/401635918","html_url":"https://github.com/MarcelBeining/EazeBot/issues/2#issuecomment-401635918","issue_url":"https://api.github.com/repos/MarcelBeining/EazeBot/issues/2","id":401635918,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTYzNTkxOA==","user":{"login":"sHaDoW8185","id":9388661,"node_id":"MDQ6VXNlcjkzODg2NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9388661?v=4","gravatar_id":"","url":"https://api.github.com/users/sHaDoW8185","html_url":"https://github.com/sHaDoW8185","followers_url":"https://api.github.com/users/sHaDoW8185/followers","following_url":"https://api.github.com/users/sHaDoW8185/following{/other_user}","gists_url":"https://api.github.com/users/sHaDoW8185/gists{/gist_id}","starred_url":"https://api.github.com/users/sHaDoW8185/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sHaDoW8185/subscriptions","organizations_url":"https://api.github.com/users/sHaDoW8185/orgs","repos_url":"https://api.github.com/users/sHaDoW8185/repos","events_url":"https://api.github.com/users/sHaDoW8185/events{/privacy}","received_events_url":"https://api.github.com/users/sHaDoW8185/received_events","type":"User","site_admin":false},"created_at":"2018-07-01T21:54:04Z","updated_at":"2018-07-01T21:54:04Z","author_association":"NONE","body":"I see. I don't run any other bots. That key has been used for more than one\nthing, yes. I believe I've got it used for the bot and for autoview. That\nmight be the problem. My apologies, the version was 1.2.15, as I'd just\nupgraded per your instructions. I will go ahead and make a new key\nspecifically for the bot. Thanks!\n\nBy the way, if I cancelled the trades that were initiated by the bot in the\nexchange, because this bot was returning errors, when I try to delete the\ntradeset in the bot afterwards (once I assign a new API key) will this be\nan issue? Thanks!\nOn Sun, Jul 1, 2018 at 6:01 AM Marcel Beining <notifications@github.com>\nwrote:\n\n> Hi. It looks like your system time is out of sync with binance, see\n> ccxt/ccxt#850 <https://github.com/ccxt/ccxt/issues/850>\n>\n> As I have added the therementioned adjustForTimeDifference feature, this\n> however should only be problematic if you are using the same API key for\n> multiple applications (e.g. my bot and another). Do you?\n>\n> Also, please always state what version of Eazebot you are using right now\n> because I update up to multiple times per day.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/MarcelBeining/EazeBot/issues/2#issuecomment-401605393>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AI9CdaADzAXQqaDHFioM6XSX-fGxUkoHks5uCMgLgaJpZM4U-QKw>\n> .\n>\n"}}
{"actor":{"display_login":"sHaDoW8185"}}