@@ -991,7 +991,6 @@ public function testCreateHfMarginOrder(Order $api)
991991 $ this ->assertArrayHasKey ('orderId ' , $ order );
992992 }
993993
994-
995994 /**
996995 * @dataProvider apiProvider
997996 * @param Order $api
@@ -1000,10 +999,10 @@ public function testCreateHfMarginOrder(Order $api)
1000999 * @throws \KuCoin\SDK\Exceptions\HttpException
10011000 * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
10021001 */
1003- public function testMarginHfCancel (Order $ api )
1002+ public function testCancelMarginHfOrder (Order $ api )
10041003 {
10051004 $ order = $ this ->createMarginHf ($ api );
1006- $ result = $ api ->marginHfCancel ($ order ['orderId ' ], $ order ['symbol ' ]);
1005+ $ result = $ api ->cancelMarginHfOrder ($ order ['orderId ' ], $ order ['symbol ' ]);
10071006 $ this ->assertInternalType ('array ' , $ result );
10081007 $ this ->assertArrayHasKey ('orderId ' , $ result );
10091008 }
@@ -1016,10 +1015,10 @@ public function testMarginHfCancel(Order $api)
10161015 * @throws \KuCoin\SDK\Exceptions\HttpException
10171016 * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
10181017 */
1019- public function testMarginHfCancelByClientOid (Order $ api )
1018+ public function testCancelMarginHfOrderByClientOid (Order $ api )
10201019 {
10211020 $ order = $ this ->createMarginHf ($ api );
1022- $ result = $ api ->marginHfCancelByClientOid ($ order ['clientOid ' ], $ order ['symbol ' ]);
1021+ $ result = $ api ->cancelMarginHfOrderByClientOid ($ order ['clientOid ' ], $ order ['symbol ' ]);
10231022 $ this ->assertInternalType ('array ' , $ result );
10241023 $ this ->assertArrayHasKey ('clientOid ' , $ result );
10251024 }
@@ -1158,7 +1157,7 @@ public function testGetMarginHfDetail(Order $api)
11581157 $ this ->assertArrayHasKey ('createdAt ' , $ detail );
11591158 $ this ->assertArrayHasKey ('lastUpdatedAt ' , $ detail );
11601159 $ this ->assertArrayHasKey ('tradeType ' , $ detail );
1161- $ api ->marginHfCancel ($ order ['orderId ' ], $ order ['symbol ' ]);
1160+ $ api ->cancelMarginHfOrder ($ order ['orderId ' ], $ order ['symbol ' ]);
11621161 }
11631162
11641163 /**
@@ -1201,7 +1200,7 @@ public function testGetMarginHfDetailByClientOid(Order $api)
12011200 $ this ->assertArrayHasKey ('createdAt ' , $ detail );
12021201 $ this ->assertArrayHasKey ('lastUpdatedAt ' , $ detail );
12031202 $ this ->assertArrayHasKey ('tradeType ' , $ detail );
1204- $ api ->marginHfCancel ($ order ['orderId ' ], $ order ['symbol ' ]);
1203+ $ api ->cancelMarginHfOrder ($ order ['orderId ' ], $ order ['symbol ' ]);
12051204 }
12061205
12071206 /**
@@ -1212,11 +1211,11 @@ public function testGetMarginHfDetailByClientOid(Order $api)
12121211 * @throws \KuCoin\SDK\Exceptions\HttpException
12131212 * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
12141213 */
1215- public function testMarginHfCancelAll (Order $ api )
1214+ public function testCancelAllMarginHfOrder (Order $ api )
12161215 {
12171216 $ symbol = 'DOT-USDT ' ;
12181217 $ tradeType = 'MARGIN_TRADE ' ;
1219- $ result = $ api ->marginHfCancelAll ($ symbol , $ tradeType );
1218+ $ result = $ api ->cancelAllMarginHfOrder ($ symbol , $ tradeType );
12201219 $ this ->assertEquals ('success ' , $ result );
12211220 }
12221221
@@ -1276,7 +1275,7 @@ protected function createMarginHf(Order $api)
12761275 * @throws \KuCoin\SDK\Exceptions\HttpException
12771276 * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
12781277 */
1279- public function testCreateTest (Order $ api )
1278+ public function testCreateTestOrder (Order $ api )
12801279 {
12811280 $ clientOid = uniqid ();
12821281 $ order = [
@@ -1289,7 +1288,7 @@ public function testCreateTest(Order $api)
12891288 'size ' => 0.001 ,
12901289 ];
12911290
1292- $ data = $ api ->createTest ($ order );
1291+ $ data = $ api ->createTestOrder ($ order );
12931292 $ this ->assertInternalType ('array ' , $ data );
12941293 $ this ->assertArrayHasKey ('orderId ' , $ data );
12951294 }
@@ -1302,7 +1301,7 @@ public function testCreateTest(Order $api)
13021301 * @throws \KuCoin\SDK\Exceptions\HttpException
13031302 * @throws \KuCoin\SDK\Exceptions\InvalidApiUriException
13041303 */
1305- public function testHfCreateTest (Order $ api )
1304+ public function testCreateHfTestOrder (Order $ api )
13061305 {
13071306 $ order = [
13081307 'clientOid ' => uniqid (),
@@ -1313,7 +1312,7 @@ public function testHfCreateTest(Order $api)
13131312 'price ' => 100 ,
13141313 'size ' => 1 ,
13151314 ];
1316- $ data = $ api ->hfCreateTest ($ order );
1315+ $ data = $ api ->createHfTestOrder ($ order );
13171316 $ this ->assertInternalType ('array ' , $ data );
13181317 $ this ->assertArrayHasKey ('orderId ' , $ data );
13191318 }
0 commit comments