{"action":"created","issue":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/3221","repository_url":"https://api.github.com/repos/ccxt/ccxt","labels_url":"https://api.github.com/repos/ccxt/ccxt/issues/3221/labels{/name}","comments_url":"https://api.github.com/repos/ccxt/ccxt/issues/3221/comments","events_url":"https://api.github.com/repos/ccxt/ccxt/issues/3221/events","html_url":"https://github.com/ccxt/ccxt/issues/3221","id":334937179,"node_id":"MDU6SXNzdWUzMzQ5MzcxNzk=","number":3221,"title":"minimum amount limits are too low as listed","user":{"login":"benediamond","id":30356252,"node_id":"MDQ6VXNlcjMwMzU2MjUy","avatar_url":"https://avatars1.githubusercontent.com/u/30356252?v=4","gravatar_id":"","url":"https://api.github.com/users/benediamond","html_url":"https://github.com/benediamond","followers_url":"https://api.github.com/users/benediamond/followers","following_url":"https://api.github.com/users/benediamond/following{/other_user}","gists_url":"https://api.github.com/users/benediamond/gists{/gist_id}","starred_url":"https://api.github.com/users/benediamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benediamond/subscriptions","organizations_url":"https://api.github.com/users/benediamond/orgs","repos_url":"https://api.github.com/users/benediamond/repos","events_url":"https://api.github.com/users/benediamond/events{/privacy}","received_events_url":"https://api.github.com/users/benediamond/received_events","type":"User","site_admin":false},"labels":[{"id":604886966,"node_id":"MDU6TGFiZWw2MDQ4ODY5NjY=","url":"https://api.github.com/repos/ccxt/ccxt/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"kroitor","id":1294454,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","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,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","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":3,"created_at":"2018-06-22T16:12:49Z","updated_at":"2018-08-16T17:14:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"hi @kroitor, on bibox and huobipro, the listed limits are often too small. For example,\r\n```python\r\n>>> huobi.markets['WAX/ETH']['limits']\r\n{'amount': {'min': 0.0001, 'max': 10000.0}, 'price': {'min': 1e-06, 'max': None}, 'cost': {'min': 0, 'max': None}}\r\n```\r\nand yet,\r\n```python\r\n>>> huobi.create_limit_buy_order('WAX/ETH', 0.01, 0.000238)\r\n{'info': {'status': 'ok', 'data': '6336531606'}, 'id': '6336531606', 'timestamp': 1529683491146, 'datetime': '2018-06-22T16:04:51.146Z', 'lastTradeTimestamp': None, 'status': None, 'symbol': 'WAX/ETH', 'type': 'limit', 'side': 'buy', 'price': 0.000238, 'amount': 0.01, 'filled': None, 'remaining': None, 'cost': None, 'trades': None, 'fee': None}\r\n>>> huobi.create_limit_buy_order('WAX/ETH', 0.009, 0.000238)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python3.6/site-packages/ccxt/base/exchange.py\", line 1313, in create_limit_buy_order\r\n    return self.create_order(symbol, 'limit', 'buy', *args)\r\n  File \"/usr/local/lib/python3.6/site-packages/ccxt/huobipro.py\", line 586, in create_order\r\n    response = getattr(self, method)(self.extend(order, params))\r\n  File \"/usr/local/lib/python3.6/site-packages/ccxt/base/exchange.py\", line 308, in request\r\n    return self.fetch2(path, api, method, params, headers, body)\r\n  File \"/usr/local/lib/python3.6/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 \"/usr/local/lib/python3.6/site-packages/ccxt/base/exchange.py\", line 385, in fetch\r\n    self.handle_errors(response.status_code, response.reason, url, method, None, self.last_http_response)\r\n  File \"/usr/local/lib/python3.6/site-packages/ccxt/huobipro.py\", line 719, in handle_errors\r\n    raise exceptions[code](feedback)\r\nccxt.base.errors.InvalidOrder: huobipro {\"status\":\"error\",\"err-code\":\"order-limitorder-amount-min-error\",\"err-msg\":\"limit order amount error, min: `0.01`\",\"data\":null}\r\n```\r\nI'm not sure if there is a good fix other than hardcoding. This limit appears to exist for various currencies though, and something similar happens on Bibox. Perhaps we can use this place to collect examples, before changing the code?"},"comment":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/comments/413619167","html_url":"https://github.com/ccxt/ccxt/issues/3221#issuecomment-413619167","issue_url":"https://api.github.com/repos/ccxt/ccxt/issues/3221","id":413619167,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzYxOTE2Nw==","user":{"login":"bohdanz1997","id":16783277,"node_id":"MDQ6VXNlcjE2NzgzMjc3","avatar_url":"https://avatars3.githubusercontent.com/u/16783277?v=4","gravatar_id":"","url":"https://api.github.com/users/bohdanz1997","html_url":"https://github.com/bohdanz1997","followers_url":"https://api.github.com/users/bohdanz1997/followers","following_url":"https://api.github.com/users/bohdanz1997/following{/other_user}","gists_url":"https://api.github.com/users/bohdanz1997/gists{/gist_id}","starred_url":"https://api.github.com/users/bohdanz1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bohdanz1997/subscriptions","organizations_url":"https://api.github.com/users/bohdanz1997/orgs","repos_url":"https://api.github.com/users/bohdanz1997/repos","events_url":"https://api.github.com/users/bohdanz1997/events{/privacy}","received_events_url":"https://api.github.com/users/bohdanz1997/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T17:14:18Z","updated_at":"2018-08-16T17:14:18Z","author_association":"NONE","body":"@kroitor thx, i will be waiting with trepidation, this release:grinning:"}}
{"actor":{"display_login":"bohdanz1997"}}