2019-08-19 02:30:31 +00:00
|
|
|
class Subaccount():
|
|
|
|
def __init__(self, base):
|
2019-09-03 18:28:49 +00:00
|
|
|
self.method = ""
|
2019-08-19 02:30:31 +00:00
|
|
|
self.base = base
|
|
|
|
|
2019-09-03 18:28:49 +00:00
|
|
|
def create(self, params={}):
|
|
|
|
self.method = "createSubAccount"
|
|
|
|
return self.base.request(self.method, params=params)
|
|
|
|
|
|
|
|
def delete(self, params={}):
|
|
|
|
self.method = "delSubAccount"
|
|
|
|
return self.base.request(self.method, params=params)
|
|
|
|
|
2019-08-19 02:30:31 +00:00
|
|
|
def fetch(self, params={}):
|
2019-09-03 18:28:49 +00:00
|
|
|
self.method = "getSubAccounts"
|
2019-09-03 20:21:52 +00:00
|
|
|
return self.base.request(self.method, params=params)
|
|
|
|
|
|
|
|
def set(self, params={}):
|
|
|
|
self.method = "setSubAccount"
|
2019-08-19 02:30:31 +00:00
|
|
|
return self.base.request(self.method, params=params)
|