def withdraw(self, currency, amount, address): URL = "/api2/1/private/withdraw" params = {'currency': currency, 'amount': amount, 'address': address} return httpPost(self.__url, URL, params, self.__apiKey, self.__secretKey)
def mytradeHistory(self, currencyPair, orderNumber): URL = "/api2/1/private/tradeHistory" params = {'currencyPair': currencyPair, 'orderNumber': orderNumber} return httpPost(self.__url, URL, params, self.__apiKey, self.__secretKey)
def getOrder(self, orderNumber, currencyPair): URL = "/api2/1/private/getOrder" params = {'orderNumber': orderNumber, 'currencyPair': currencyPair} return httpPost(self.__url, URL, params, self.__apikey, self.__secretkey)
def openOrders(self): URL = "/api2/1/private/openOrders" params = {} return httpPost(self.__url, URL, params, self.__apiKey, self.__secretKey)
def cancelAllOrders(self, type, currencyPair): URL = "/api2/1/private/cancelAllOrders" params = {'type': type, 'currencyPair': currencyPair} return httpPost(self.__url, URL, params, self.__apiKey, self.__secretKey)