{"action":"created","issue":{"url":"https://api.github.com/repos/BitMEX/sample-market-maker/issues/72","repository_url":"https://api.github.com/repos/BitMEX/sample-market-maker","labels_url":"https://api.github.com/repos/BitMEX/sample-market-maker/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/BitMEX/sample-market-maker/issues/72/comments","events_url":"https://api.github.com/repos/BitMEX/sample-market-maker/issues/72/events","html_url":"https://github.com/BitMEX/sample-market-maker/issues/72","id":298122084,"number":72,"title":"ERROR - market_maker - Sanity check failed, exchange data is inconsistent","user":{"login":"sabotagebeats","id":27985126,"avatar_url":"https://avatars1.githubusercontent.com/u/27985126?v=4","gravatar_id":"","url":"https://api.github.com/users/sabotagebeats","html_url":"https://github.com/sabotagebeats","followers_url":"https://api.github.com/users/sabotagebeats/followers","following_url":"https://api.github.com/users/sabotagebeats/following{/other_user}","gists_url":"https://api.github.com/users/sabotagebeats/gists{/gist_id}","starred_url":"https://api.github.com/users/sabotagebeats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabotagebeats/subscriptions","organizations_url":"https://api.github.com/users/sabotagebeats/orgs","repos_url":"https://api.github.com/users/sabotagebeats/repos","events_url":"https://api.github.com/users/sabotagebeats/events{/privacy}","received_events_url":"https://api.github.com/users/sabotagebeats/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-18T21:56:15Z","updated_at":"2018-02-19T01:36:29Z","closed_at":null,"author_association":"NONE","body":"2018-02-18 21:49:36,179 - ERROR - market_maker - Sanity check failed, exchange data is inconsistent\r\nafter this the bot crashes. "},"comment":{"url":"https://api.github.com/repos/BitMEX/sample-market-maker/issues/comments/366568965","html_url":"https://github.com/BitMEX/sample-market-maker/issues/72#issuecomment-366568965","issue_url":"https://api.github.com/repos/BitMEX/sample-market-maker/issues/72","id":366568965,"user":{"login":"sabotagebeats","id":27985126,"avatar_url":"https://avatars1.githubusercontent.com/u/27985126?v=4","gravatar_id":"","url":"https://api.github.com/users/sabotagebeats","html_url":"https://github.com/sabotagebeats","followers_url":"https://api.github.com/users/sabotagebeats/followers","following_url":"https://api.github.com/users/sabotagebeats/following{/other_user}","gists_url":"https://api.github.com/users/sabotagebeats/gists{/gist_id}","starred_url":"https://api.github.com/users/sabotagebeats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabotagebeats/subscriptions","organizations_url":"https://api.github.com/users/sabotagebeats/orgs","repos_url":"https://api.github.com/users/sabotagebeats/repos","events_url":"https://api.github.com/users/sabotagebeats/events{/privacy}","received_events_url":"https://api.github.com/users/sabotagebeats/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T01:36:29Z","updated_at":"2018-02-19T01:36:29Z","author_association":"NONE","body":"2018-02-18 21:49:30,721 - INFO - bitmex - sending req to\nhttps://testnet.bitmex.com/api/v1/order/bulk: {\"orders\": [{\"price\":\n0.02075, \"orderQty\": 5, \"side\": \"Buy\", \"clOrdID\":\n\"mm_bitmex_elTlyD68QbmLA/PuVy0+lw\", \"symbol\": \"LTCH18\", \"execInst\":\n\"ParticipateDoNotInitiate\"}, {\"price\": 0.02076, \"orderQty\": 5, \"side\":\n\"Sell\", \"clOrdID\": \"mm_bitmex_pw762sK3T6O0QA8chCT5pQ\", \"symbol\": \"LTCH18\",\n\"execInst\": \"ParticipateDoNotInitiate\"}]}\n-----\n2018-02-18 21:49:36,155 - INFO - market_maker - LTCH18 Ticker: Buy:\n0.02075, Sell: 0.02076\n2018-02-18 21:49:36,155 - INFO - market_maker - Start Positions: Buy:\n0.02076, Sell: 0.02075, Mid: 0.02076\n2018-02-18 21:49:36,156 - ERROR - market_maker - Buy: 0.020757405, Sell:\n0.02075259375\n2018-02-18 21:49:36,168 - ERROR - market_maker - First buy position: 0.02076\nBitMEX Best Ask: 0.02076\nFirst sell position: 0.02075\nBitMEX Best Bid: 0.02075\n2018-02-18 21:49:36,179 - ERROR - market_maker - Sanity check failed,\nexchange data is inconsistent\n2018-02-18 21:49:36,180 - INFO - market_maker - Shutting down. All open\norders will be cancelled.\n2018-02-18 21:49:36,190 - INFO - market_maker - Resetting current position.\nCanceling all existing orders.\n2018-02-18 21:49:36,203 - INFO - bitmex - sending req to\nhttps://testnet.bitmex.com/api/v1/order: {\"filter\":\n\"{\\\"ordStatus.isTerminated\\\": false, \\\"symbol\\\": \\\"LTCH18\\\"}\", \"count\": 500}\n2018-02-18 21:49:36,538 - INFO - market_maker - Canceling: Buy 5 @ 0.02075\n2018-02-18 21:49:36,538 - INFO - market_maker - Canceling: Sell 5 @ 0.02076\n2018-02-18 21:49:36,540 - INFO - bitmex - sending req to\nhttps://testnet.bitmex.com/api/v1/order: {\"orderID\":\n[\"bc4d60d7-2cc7-b7c8-195b-8dbc84840e17\",\n\"86b0cdd0-62df-a566-1bcb-765fca174dc1\"]}\n2018-02-18 21:49:37,929 - INFO - ws_thread - Websocket Closed\n2018-02-18 21:49:37,930 - INFO - market_maker - Shutting down. All open\norders will be cancelled.\n2018-02-18 21:49:37,931 - INFO - market_maker - Resetting current position.\nCanceling all existing orders.\n2018-02-18 21:49:37,944 - INFO - bitmex - sending req to\nhttps://testnet.bitmex.com/api/v1/order: {\"filter\":\n\"{\\\"ordStatus.isTerminated\\\": false, \\\"symbol\\\": \\\"LTCH18\\\"}\", \"count\": 500}\n\nOn Mon, Feb 19, 2018 at 1:31 AM, Ben Delo <notifications@github.com> wrote:\n\n> Would be useful if you logged the lines above that...\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/BitMEX/sample-market-maker/issues/72#issuecomment-366568438>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AasE5jowNbTnti-koSx7RE3iT09bDiBIks5tWM76gaJpZM4SJ3dj>\n> .\n>\n"}}
{"actor":{"display_login":"sabotagebeats"}}