Esempio n. 1
0
 def depositsWithdrawals(self, start, end):
     URL = "/api2/1/private/depositsWithdrawals"
     params = {'start': start, 'end': end}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)
Esempio n. 2
0
 def sell(self, currencyPair, rate, amount):
     URL = "/api2/1/private/sell"
     params = {'currencyPair': currencyPair, 'rate': rate, 'amount': amount}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)
Esempio n. 3
0
 def balances(self):
     URL = "/api2/1/private/balances"
     param = {}
     return httpPost(self.__trade_url, URL, param, self.__apiKey,
                     self.__secretKey)
Esempio n. 4
0
 def depositAddres(self, param):
     URL = "/api2/1/private/depositAddress"
     params = {'currency': param}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)
Esempio n. 5
0
 def withdraw(self, currency, amount, address):
     URL = "/api2/1/private/withdraw"
     params = {'currency': currency, 'amount': amount, 'address': address}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)
Esempio n. 6
0
 def mytradeHistory(self, currencyPair, orderNumber):
     URL = "/api2/1/private/tradeHistory"
     params = {'currencyPair': currencyPair, 'orderNumber': orderNumber}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)
Esempio n. 7
0
 def openOrders(self):
     URL = "/api2/1/private/openOrders"
     params = {}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)
Esempio n. 8
0
 def getOrder(self, orderNumber, currencyPair):
     URL = "/api2/1/private/getOrder"
     params = {'orderNumber': orderNumber, 'currencyPair': currencyPair}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)
Esempio n. 9
0
 def cancelAllOrders(self, type, currencyPair):
     URL = "/api2/1/private/cancelAllOrders"
     params = {'type': type, 'currencyPair': currencyPair}
     return httpPost(self.__trade_url, URL, params, self.__apiKey,
                     self.__secretKey)