@@ -9,75 +9,75 @@ def __init__(self, access_key: str, secret_key: str, host=HOST_SPOT):
99 self .__secret_key = secret_key
1010 self .__host = host
1111
12- def set_deduct_mode (self , params : dict = None ) -> json :
12+ def set_deduct_mode (self , params : dict ) -> json :
1313 path = "/v2/sub-user/deduct-mode"
1414 return post (self .__host , path , self .__access_key , self .__secret_key , params )
1515
16- def get_api_key_info (self , params : dict = None ) -> json :
16+ def get_api_key_info (self , params : dict ) -> json :
1717 path = "/v2/user/api-key"
1818 return get (self .__host , path , params , self .__access_key , self .__secret_key )
1919
2020 def get_uid (self ) -> json :
2121 path = "/v2/user/uid"
2222 return get (self .__host , path , None , self .__access_key , self .__secret_key )
2323
24- def create (self , params : dict = None ) -> json :
24+ def create (self , params : dict ) -> json :
2525 path = "/v2/sub-user/creation"
2626 return post (self .__host , path , self .__access_key , self .__secret_key , params )
2727
2828 def get_sub_user_list (self , params : dict = None ) -> json :
2929 path = "/v2/sub-user/user-list"
3030 return get (self .__host , path , params , self .__access_key , self .__secret_key )
3131
32- def management (self , params : dict = None ) -> json :
32+ def management (self , params : dict ) -> json :
3333 path = "/v2/sub-user/management"
3434 return post (self .__host , path , self .__access_key , self .__secret_key , params )
3535
36- def get_state (self , params : dict = None ) -> json :
36+ def get_state (self , params : dict ) -> json :
3737 path = "/v2/sub-user/user-state"
3838 return get (self .__host , path , params , self .__access_key , self .__secret_key )
3939
40- def set_tradable (self , params : dict = None ) -> json :
40+ def set_tradable (self , params : dict ) -> json :
4141 path = "/v2/sub-user/tradable-market"
4242 return post (self .__host , path , self .__access_key , self .__secret_key , params )
4343
44- def set_transferability (self , params : dict = None ) -> json :
44+ def set_transferability (self , params : dict ) -> json :
4545 path = "/v2/sub-user/transferability"
4646 return post (self .__host , path , self .__access_key , self .__secret_key , params )
4747
48- def get_account_list (self , params : dict = None ) -> json :
48+ def get_account_list (self , params : dict ) -> json :
4949 path = "/v2/sub-user/account-list"
5050 return get (self .__host , path , params , self .__access_key , self .__secret_key )
5151
52- def generate_api_key (self , params : dict = None ) -> json :
52+ def generate_api_key (self , params : dict ) -> json :
5353 path = "/v2/sub-user/api-key-generation"
5454 return post (self .__host , path , self .__access_key , self .__secret_key , params )
5555
56- def modify_api_key (self , params : dict = None ) -> json :
56+ def modify_api_key (self , params : dict ) -> json :
5757 path = "/v2/sub-user/api-key-modification"
5858 return post (self .__host , path , self .__access_key , self .__secret_key , params )
5959
60- def delete_api_key (self , params : dict = None ) -> json :
60+ def delete_api_key (self , params : dict ) -> json :
6161 path = "/v2/sub-user/api-key-deletion"
6262 return post (self .__host , path , self .__access_key , self .__secret_key , params )
6363
64- def transfer (self , params : dict = None ) -> json :
64+ def transfer (self , params : dict ) -> json :
6565 path = "/v1/subuser/transfer"
6666 return post (self .__host , path , self .__access_key , self .__secret_key , params )
6767
68- def get_deposit_address (self , params : dict = None ) -> json :
68+ def get_deposit_address (self , params : dict ) -> json :
6969 path = "/v2/sub-user/deposit-address"
7070 return get (self .__host , path , params , self .__access_key , self .__secret_key )
7171
72- def get_deposit (self , params : dict = None ) -> json :
72+ def get_deposit (self , params : dict ) -> json :
7373 path = "/v2/sub-user/query-deposit"
7474 return get (self .__host , path , params , self .__access_key , self .__secret_key )
7575
7676 def get_aggregate_balance (self ) -> json :
7777 path = "/v1/subuser/aggregate-balance"
7878 return get (self .__host , path , None , self .__access_key , self .__secret_key )
7979
80- def get_balance (self , params : dict = None ) -> json :
80+ def get_balance (self , params : dict ) -> json :
8181 sub_uid = params ['sub-uid' ]
8282 path = "/v1/account/accounts/{}" .format (sub_uid )
8383 return get (self .__host , path , params , self .__access_key , self .__secret_key )
0 commit comments