Esempio n. 1
0
 def get_withdraw_record(self, currency):
     dict = {
         "accesskey": str(self.access_key),
         'currency': currency,
         'method': 'getWithdrawRecord'
     }
     url = self.host + '/getWithdrawRecord'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)
Esempio n. 2
0
 def get_user_address(self, currency):
     dict = {
         "accesskey": str(self.access_key),
         'currency': currency,
         'method': 'getUserAddress'
     }
     url = self.host + '/getUserAddress'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)
Esempio n. 3
0
 def get_oder(self, currency, id):
     dict = {
         "accesskey": str(self.access_key),
         'currency': currency,
         'id': id,
         'method': 'getOrder'
     }
     url = self.host + '/getOrder'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)
Esempio n. 4
0
 def get_orders_ignore_tradeType(self, currency, pageIndex, pageSize):
     dict = {
         "accesskey": str(self.access_key),
         'currency': currency,
         'pageIndex': pageIndex,
         'pageSize': pageSize,
         'method': 'getOrdersIgnoreTradeType'
     }
     url = self.host + '/getOrdersIgnoreTradeType'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)
Esempio n. 5
0
 def get_charge_record(self, currency, pageIndex, pageSize):
     dict = {
         "accesskey": str(self.access_key),
         'currency': currency,
         'pageIndex': pageIndex,
         'pageSize': pageSize,
         'method': 'getChargeRecord'
     }
     url = self.host + '/getChargeRecord'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)
Esempio n. 6
0
 def request_order(self, currency, price, amount, tradeType):
     dict = {
         "accesskey": str(self.access_key),
         "currency": currency,
         "price": price,
         "amount": amount,
         "tradeType": tradeType,
         "method": "order"
     }
     url = self.host + '/order'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)
Esempio n. 7
0
 def withdraw(self, currency, fees, itransfer, receiveAdrr, sagePwd):
     dict = {
         "accesskey": str(self.access_key),
         'currency': currency,
         'fees': fees,
         'itransfer': itransfer,
         'receiveAdrr': receiveAdrr,
         'sagePwd': sagePwd,
         'method': 'withdraw'
     }
     url = self.host + '/withdraw'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)
Esempio n. 8
0
 def get_account_info(self):
     dict = {"method": "getAccountInfo", "accesskey": str(self.access_key)}
     url = self.host + '/getAccountInfo'
     signature = self.zb_signature(dict)
     payload = self.add_sign_retime(dict, signature, self.milliseconds())
     return request_call.zb_proxy_call(url, payload)