@@ -1456,7 +1456,7 @@ def transfer_funds(
14561456 amount ).currency (currency ).type (type ).build ()
14571457 return self ._post (endpoint = 'sub-account/transfer' , params = params )['result' ]
14581458
1459- def transfer_to_super_account (String amount , String currency ) -> str :
1459+ def transfer_to_super_account (self , amount : str , currency : str ) -> str :
14601460 """Creates and commits a transfer from a subaccount to its super account
14611461
14621462 Call is being sent by a subaccount
@@ -1473,29 +1473,32 @@ def transfer_to_super_account(String amount, String currency) ->str:
14731473 :param currency: the currency to transfer
14741474 :return: The transaction id of the tranfer
14751475 """
1476- pass
1477-
1478-
1479- def transfer_to_another_subaccount (String subAccountId , String amount , String currency )
1480-
1481- """Creates and commits a transfer between the user (subaccount) and another
1482- subaccount.
1483-
1484- Call is being sent by a subaccount
1485-
1486- Created but not committed transfer will reserve pending amount on the sender
1487- wallet affecting their ability to withdraw or transfer crypto to another
1488- account. Incomplete withdrawals affect subaccount transfers the same way
1489-
1490- Requires the "Withdraw cryptocurrencies" API key Access Right
1491-
1492- https://api.exchange.cryptomkt.com/#transfer-to-super-account
1493-
1494- :param amount: the amount of currency to transfer
1495- :param currency: the currency to transfer
1496- :return: The transaction id of the tranfer
1497- """
1498-
1476+ params = args .DictBuilder ().amount (amount ).currency (currency ).build ()
1477+ return self ._post (endpoint = 'sub-account/transfer/sub-to-super' , params = params )['result' ]
1478+
1479+
1480+ def transfer_to_another_subaccount (sub_account_id : str , amount : str , currency : str )-> str :
1481+ """Creates and commits a transfer between the user (subaccount) and another
1482+ subaccount.
1483+
1484+ Call is being sent by a subaccount
1485+
1486+ Created but not committed transfer will reserve pending amount on the sender
1487+ wallet affecting their ability to withdraw or transfer crypto to another
1488+ account. Incomplete withdrawals affect subaccount transfers the same way
1489+
1490+ Requires the "Withdraw cryptocurrencies" API key Access Right
1491+
1492+ https://api.exchange.cryptomkt.com/#transfer-to-super-account
1493+
1494+ :param sub_account_id: Identifier of a subaccount
1495+ :param amount: the amount of currency to transfer
1496+ :param currency: the currency to transfer
1497+ :return: The transaction id of the tranfer
1498+ """
1499+ params = args .DictBuilder ().sub_account_id (sub_account_id ).amount (
1500+ amount ).currency (currency ).build ()
1501+ return self ._post (endpoint = 'sub-account/transfer/sub-to-sub' , params = params )['result' ]
14991502
15001503
15011504 def get_ACL_settings (self , sub_account_ids : List [str ]) -> List [ACLSettings ]:
0 commit comments