Skip to content

Commit d6dc0f5

Browse files
authored
test: testFuturesCancelOpenAlgoOrders added
1 parent 708aacb commit d6dc0f5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/BinanceStaticTests.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,24 @@ public function testFuturesCancelOpenOrders()
21892189

21902190
}
21912191

2192+
public function futuresCancelOpenAlgoOrders()
2193+
{
2194+
try {
2195+
$this->binance->futuresCancelOpenAlgoOrders($this->symbol, [ 'recvWindow' => $this->recvWindow ]);
2196+
} catch (\Throwable $e) {
2197+
2198+
}
2199+
$endpoint = "https://fapi.binance.com/fapi/v1/algoOpenOrders?";
2200+
$this->assertTrue(str_starts_with(self::$capturedUrl, $endpoint));
2201+
2202+
$queryString = substr(self::$capturedUrl, strlen($endpoint));
2203+
parse_str($queryString, $params);
2204+
2205+
$this->assertEquals($this->symbol, $params['symbol']);
2206+
$this->assertEquals($this->recvWindow, $params['recvWindow']);
2207+
2208+
}
2209+
21922210
public function testFuturesCountdownCancelAllOrders()
21932211
{
21942212
try {

0 commit comments

Comments
 (0)