{"action":"closed","issue":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/2482","repository_url":"https://api.github.com/repos/ccxt/ccxt","labels_url":"https://api.github.com/repos/ccxt/ccxt/issues/2482/labels{/name}","comments_url":"https://api.github.com/repos/ccxt/ccxt/issues/2482/comments","events_url":"https://api.github.com/repos/ccxt/ccxt/issues/2482/events","html_url":"https://github.com/ccxt/ccxt/issues/2482","id":312076278,"number":2482,"title":"exmo market_sell None Type continue","user":{"login":"doctord919","id":30530464,"avatar_url":"https://avatars3.githubusercontent.com/u/30530464?v=4","gravatar_id":"","url":"https://api.github.com/users/doctord919","html_url":"https://github.com/doctord919","followers_url":"https://api.github.com/users/doctord919/followers","following_url":"https://api.github.com/users/doctord919/following{/other_user}","gists_url":"https://api.github.com/users/doctord919/gists{/gist_id}","starred_url":"https://api.github.com/users/doctord919/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctord919/subscriptions","organizations_url":"https://api.github.com/users/doctord919/orgs","repos_url":"https://api.github.com/users/doctord919/repos","events_url":"https://api.github.com/users/doctord919/events{/privacy}","received_events_url":"https://api.github.com/users/doctord919/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","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":1,"created_at":"2018-04-06T18:38:39Z","updated_at":"2018-04-06T18:43:21Z","closed_at":"2018-04-06T18:43:20Z","author_association":"NONE","body":"and continue ...\r\nOS: Windows 8.1\r\nProgramming Language version: python 3.6.4\r\nCCXT version: 1.12.54\r\nExchange: exmo\r\nMethod: create_market_sell_order(), may be create_market_buy_order()\r\nProblems:\r\nNone type not float !!!\r\nrun create_market_sell_order() ...\r\nnext:\r\nexchange.py:\r\ndef create_market_sell_order(self, symbol, amount, params={}):\r\nreturn self.create_order(symbol, 'market', 'sell', amount, None, params) #None <- problems\r\nnext:\r\nexmo.py\r\ndef create_order(self, symbol, type, side, amount, price=None, params={}):\r\n...\r\n...\r\nrequest = {\r\n'pair': market['id'],\r\n'quantity': self.amount_to_string(symbol, amount),\r\n'price': self.price_to_precision(symbol, price), #<---- Problema!!! price = None !!!!\r\n'type': prefix + side,\r\n}\r\nnext Problem:\r\nexmo.py:\r\n    def create_order(self, symbol, type, side, amount, price=None, params={}):\r\n        self.load_markets()\r\n        prefix = (type + '_') if (type == 'market') else ''\r\n        market = self.market(symbol)\r\n        request = {\r\n            'pair': market['id'],\r\n            'quantity': self.amount_to_string(symbol, amount),\r\n            'type': prefix + side,\r\n        }\r\n        if type == 'market':\r\n            if price is None:\r\n                request['price'] = 0 <--- ok!!!\r\n        if price is not None:\r\n            request['price'] = self.price_to_precision(symbol, price) <---- ok!!!!!\r\n        response = self.privatePostOrderCreate(self.extend(request, params))\r\n        id = self.safe_string(response, 'order_id')\r\n        timestamp = self.milliseconds()\r\n        price = float(price) <----------- price is None !!!! a nuzhno 0 dlya market_sell !!!\r\n        amount = float(amount)\r\n        status = 'open'\r\n        order = {"}}
{"actor":{"display_login":"kroitor"}}