{"action":"created","issue":{"url":"https://api.github.com/repos/butor/blackbird/issues/386","repository_url":"https://api.github.com/repos/butor/blackbird","labels_url":"https://api.github.com/repos/butor/blackbird/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/butor/blackbird/issues/386/comments","events_url":"https://api.github.com/repos/butor/blackbird/issues/386/events","html_url":"https://github.com/butor/blackbird/issues/386","id":294023556,"number":386,"title":"Wrong price used when exiting market from long Kraken","user":{"login":"davidjirovec","id":1950225,"avatar_url":"https://avatars0.githubusercontent.com/u/1950225?v=4","gravatar_id":"","url":"https://api.github.com/users/davidjirovec","html_url":"https://github.com/davidjirovec","followers_url":"https://api.github.com/users/davidjirovec/followers","following_url":"https://api.github.com/users/davidjirovec/following{/other_user}","gists_url":"https://api.github.com/users/davidjirovec/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjirovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjirovec/subscriptions","organizations_url":"https://api.github.com/users/davidjirovec/orgs","repos_url":"https://api.github.com/users/davidjirovec/repos","events_url":"https://api.github.com/users/davidjirovec/events{/privacy}","received_events_url":"https://api.github.com/users/davidjirovec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-02T21:07:33Z","updated_at":"2018-02-15T10:25:30Z","closed_at":null,"author_association":"NONE","body":"If I understand correctly, sell order should have been placed for 8,660.00, but 10,344.00 was used instead. Was not sold today, it is stuck so far :)\r\n```\r\n[ 02/02/2018 14:12:03 IN MARKET: Long Kraken / Short Bitfinex ]\r\n   Bitfinex: \t8,579.70 / 8,596.10\r\n   OKCoin: \t9,298.77 / 9,413.43\r\n   Kraken: \t8,660.00 / 8,676.70\r\n   QuadrigaCX: \t8,789.40 / 9,060.99\r\n   Exmo: \t9,511.59 / 9,521.00\r\n   ----------------------------\r\n   Kraken/Bitfinex:\t-0.74% [target -0.59%, min -0.88%, max  5.62%]   trailing -0.77%  0/0\r\n<Bitfinex> Looking for a limit price to fill 0.004457 BTC...\r\n<Bitfinex> order book: 18.173468@$8,580.00\r\n\r\n[ EXIT FOUND ]\r\n   Date & Time:       02/02/2018 14:12:03\r\n   Duration:          8,017.42 minutes\r\n   Price Long:        10,344.00 (target)\r\n   Price Short:       8,580.00 (target)\r\n   Spread:            -0.74%\r\n   ---------------------------\r\n   Target Perf Long:  -9.03% (fees incl.)\r\n   Target Perf Short: 24.34% (fees incl.)\r\n   ---------------------------\r\n\r\nBTC exposure on Kraken: 0.004493\r\nBTC exposure on Bitfinex: -0.004457\r\n\r\n<Kraken> Trying to send a \"sell\" limit order: 0.004493 @ $10,344.00...\r\n<Kraken> Done (transaction ID: OQ3KQ3-YJSWY-J6YM6W)\r\n\r\n<Bitfinex> Trying to send a \"buy\" limit order: 0.004457@$8,580.00...\r\n<Bitfinex> Done (order ID: 7832837831)\r\n\r\nWaiting for the two orders to be filled...\r\n{\"OQ3KQ3-YJSWY-J6YM6W\": {\"refid\": null, \"vol\": \"0.00449300\", \"userref\": 0, \"status\": \"open\", \"opentm\": 1517577134.7216001, \"starttm\": 0, \"price\": \"0.00000\", \"expiretm\": 0, \"descr\": {\"pair\": \"XBTUSD\", \"price2\": \"0\", \"type\": \"sell\", \"ordertype\": \"limit\", \"price\": \"10344.0\", \"close\": \"\", \"order\": \"sell 0.00449300 XBTUSD @ limit 10344.0\", \"leverage\": \"none\"}, \"limitprice\": \"0.00000\", \"vol_exec\": \"0.00000000\", \"oflags\": \"fciq\", \"cost\": \"0.00000\", \"fee\": \"0.00000\", \"misc\": \"\", \"stopprice\": \"0.00000\"}}\r\n<Kraken> Order OQ3KQ3-YJSWY-J6YM6W still exists!\r\nLong order on Kraken still open...\r\n```"},"comment":{"url":"https://api.github.com/repos/butor/blackbird/issues/comments/365885101","html_url":"https://github.com/butor/blackbird/issues/386#issuecomment-365885101","issue_url":"https://api.github.com/repos/butor/blackbird/issues/386","id":365885101,"user":{"login":"CCKRK","id":22842404,"avatar_url":"https://avatars0.githubusercontent.com/u/22842404?v=4","gravatar_id":"","url":"https://api.github.com/users/CCKRK","html_url":"https://github.com/CCKRK","followers_url":"https://api.github.com/users/CCKRK/followers","following_url":"https://api.github.com/users/CCKRK/following{/other_user}","gists_url":"https://api.github.com/users/CCKRK/gists{/gist_id}","starred_url":"https://api.github.com/users/CCKRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCKRK/subscriptions","organizations_url":"https://api.github.com/users/CCKRK/orgs","repos_url":"https://api.github.com/users/CCKRK/repos","events_url":"https://api.github.com/users/CCKRK/events{/privacy}","received_events_url":"https://api.github.com/users/CCKRK/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T10:25:30Z","updated_at":"2018-02-15T10:25:30Z","author_association":"COLLABORATOR","body":"Have you updated your code? #408 should have fixed this, note that you can still differ by a little bit from the bid/ask depending on your size and the orderbook factor"}}
{"actor":{"display_login":"CCKRK"}}