Skip to content

Commit

Permalink
Merge pull request #62 from hhxsv5/master
Browse files Browse the repository at this point in the history
Add InnerTransfer tests
  • Loading branch information
hhxsv5 authored Jun 11, 2019
2 parents e2d313d + b64c3f9 commit e65d0e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PrivateApi/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ public function innerTransfer($clientOid, $payAccountId, $recAccountId, $amount)
* @throws \KuCoin\SDK\Exceptions\BusinessException
* @throws \KuCoin\SDK\Exceptions\HttpException
* @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
* @deprecated This interface was discontinued on August 29, 2019. Please use the transfer v2 interface provided below.
*/
public function innerTransferV2($clientOid, $currency, $from, $to, $amount)
{
Expand Down
13 changes: 13 additions & 0 deletions tests/AccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,19 @@ public function testInnerTransfer(Account $api)
}
}

/**
* @dataProvider apiProvider
* @param Account $api
* @throws BusinessException
* @throws \KuCoin\SDK\Exceptions\HttpException
* @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
*/
public function testInnerTransferV2(Account $api)
{
$order = $api->innerTransferV2(uniqid(), 'KCS', 'main', 'trade', '2');
$this->assertArrayHasKey('orderId', $order);
}

/**
* @dataProvider apiProvider
* @param Account $api
Expand Down

0 comments on commit e65d0e8

Please sign in to comment.