File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments