@@ -88,14 +88,15 @@ public function getHolds($accountId, array $pagination = [])
8888
8989 /**
9090 * Inner transfer
91- * @param string $clientOid
92- * @param string $payAccountId
93- * @param string $recAccountId
94- * @param float $amount
91+ * @param string $clientOid Request ID
92+ * @param string $payAccountId Account ID of payer
93+ * @param string $recAccountId Account ID of receiver
94+ * @param string $amount Transfer amount, a quantity that exceeds the precision of the currency
9595 * @return array
9696 * @throws \KuCoin\SDK\Exceptions\BusinessException
9797 * @throws \KuCoin\SDK\Exceptions\HttpException
9898 * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
99+ * @deprecated This interface was discontinued on August 29, 2019. Please use the transfer v2 interface provided below.
99100 */
100101 public function innerTransfer ($ clientOid , $ payAccountId , $ recAccountId , $ amount )
101102 {
@@ -107,6 +108,29 @@ public function innerTransfer($clientOid, $payAccountId, $recAccountId, $amount)
107108 return $ response ->getApiData ();
108109 }
109110
111+ /**
112+ * Inner transfer V2, recommended for use on June 5, 2019
113+ * @param string $clientOid Request ID
114+ * @param string $currency Currency
115+ * @param string $from The account type of payer main or trade
116+ * @param string $to The account type of payee main or trade
117+ * @param string $amount Transfer amount, a quantity that exceeds the precision of the currency
118+ * @return array
119+ * @throws \KuCoin\SDK\Exceptions\BusinessException
120+ * @throws \KuCoin\SDK\Exceptions\HttpException
121+ * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
122+ * @deprecated This interface was discontinued on August 29, 2019. Please use the transfer v2 interface provided below.
123+ */
124+ public function innerTransferV2 ($ clientOid , $ currency , $ from , $ to , $ amount )
125+ {
126+ $ response = $ this ->call (
127+ Request::METHOD_POST ,
128+ '/api/v2/accounts/inner-transfer ' ,
129+ compact ('clientOid ' , 'currency ' , 'from ' , 'to ' , 'amount ' )
130+ );
131+ return $ response ->getApiData ();
132+ }
133+
110134 /**
111135 * Get user info of all sub-accounts
112136 * @return array
0 commit comments