{"action":"created","issue":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/2287","repository_url":"https://api.github.com/repos/ccxt/ccxt","labels_url":"https://api.github.com/repos/ccxt/ccxt/issues/2287/labels{/name}","comments_url":"https://api.github.com/repos/ccxt/ccxt/issues/2287/comments","events_url":"https://api.github.com/repos/ccxt/ccxt/issues/2287/events","html_url":"https://github.com/ccxt/ccxt/issues/2287","id":306143194,"number":2287,"title":"createMarketBuyOrder precision error","user":{"login":"viacheslavvbogdanov","id":28448359,"avatar_url":"https://avatars2.githubusercontent.com/u/28448359?v=4","gravatar_id":"","url":"https://api.github.com/users/viacheslavvbogdanov","html_url":"https://github.com/viacheslavvbogdanov","followers_url":"https://api.github.com/users/viacheslavvbogdanov/followers","following_url":"https://api.github.com/users/viacheslavvbogdanov/following{/other_user}","gists_url":"https://api.github.com/users/viacheslavvbogdanov/gists{/gist_id}","starred_url":"https://api.github.com/users/viacheslavvbogdanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viacheslavvbogdanov/subscriptions","organizations_url":"https://api.github.com/users/viacheslavvbogdanov/orgs","repos_url":"https://api.github.com/users/viacheslavvbogdanov/repos","events_url":"https://api.github.com/users/viacheslavvbogdanov/events{/privacy}","received_events_url":"https://api.github.com/users/viacheslavvbogdanov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kroitor","id":1294454,"avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false},"assignees":[{"login":"kroitor","id":1294454,"avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-17T09:44:17Z","updated_at":"2018-03-17T09:51:13Z","closed_at":null,"author_association":"NONE","body":"I create order with amount 0.043 but at order amount and filled changed to                   \r\namount:    0.043000000000000003,\r\nfilled:    0.043000000000000003,\r\nand my order is rejected orderRejectReason: \"orderExceedsLimit\"\r\n(in market.limits.amount.min: 0.001, \r\nlooks like JS float precision error?\r\n\r\n- OS:fedora 23\r\n- Programming Language version:node v8.10.0\r\n- CCXT version:ccxt@1.11.116\r\n- Exchange:hitbtc/hitbtc2 may be other too\r\n- Method:createMarketBuyOrder\r\n\r\nOrder placed {        id:   \"1521279518566\",\r\n                    info: {           orderId: \"N/A\",\r\n                                latestOrderId: \"N/A\",\r\n                                  orderStatus: \"rejected\",\r\n                                       symbol: \"ETHUSD\",\r\n                                         side: \"buy\",\r\n                                     quantity:  43,\r\n                                         type: \"market\",\r\n                                  timeInForce: \"FOK\",\r\n                                 lastQuantity:  0,\r\n                                    lastPrice: \"\",\r\n                               leavesQuantity:  0,\r\n                                  cumQuantity:  0,\r\n                                 averagePrice: \"0\",\r\n                                      created:  1521279519557,\r\n                               execReportType: \"rejected\",\r\n                            orderRejectReason: \"orderExceedsLimit\" },\r\n               timestamp:    undefined,\r\n                datetime:    undefined,\r\n                  status:   \"rejected\",\r\n                  symbol:   \"ETH/USDT\",\r\n                    type:   \"market\",\r\n                    side:   \"buy\",\r\n                   price:    undefined,\r\n                    cost:    0,\r\n                  amount:    0.043000000000000003,\r\n                  filled:    0.043000000000000003,\r\n               remaining:    0,\r\n                     fee:    undefined                                }\r\n"},"comment":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/comments/373907969","html_url":"https://github.com/ccxt/ccxt/issues/2287#issuecomment-373907969","issue_url":"https://api.github.com/repos/ccxt/ccxt/issues/2287","id":373907969,"user":{"login":"kroitor","id":1294454,"avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T09:51:13Z","updated_at":"2018-03-17T09:51:13Z","author_association":"OWNER","body":"@viacheslavvbogdanov let's stick to one of them first, i propose to debug hitbtc v2 first."}}
{"actor":{"display_login":"kroitor"}}