File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -653,6 +653,38 @@ class TestExchangeOnlineSetup(TypedDict):
653653 "stopLossPrice" : None ,
654654 },
655655 },
656+ {
657+ # Canceled order
658+ "exchange_response" : {
659+ "order" : {
660+ "type" : "ORDER" ,
661+ "orderId" : "a159faef-6a0f-4651-bb78-xxfa4c71ac7e" ,
662+ "cliOrdId" : None ,
663+ "symbol" : "PF_XBTUSD" ,
664+ "side" : "buy" ,
665+ "quantity" : 0.0022 ,
666+ "filled" : 0 ,
667+ "limitPrice" : 68000 ,
668+ "reduceOnly" : False ,
669+ "timestamp" : "2026-03-21T07:32:21.555Z" ,
670+ "lastUpdateTimestamp" : "2026-03-21T07:32:21.555Z" ,
671+ },
672+ "status" : "CANCELLED" ,
673+ "updateReason" : "CANCELLED_BY_USER" ,
674+ "error" : None ,
675+ },
676+ "pair" : "BTC/USD:USD" ,
677+ "expected" : {
678+ "symbol" : "BTC/USD:USD" ,
679+ "id" : "a159faef-6a0f-4651-bb78-xxfa4c71ac7e" ,
680+ "timestamp" : 1774078341555 ,
681+ "datetime" : "2026-03-21T07:32:21.555Z" ,
682+ "price" : None ,
683+ "status" : "canceled" ,
684+ # TODO: filled should be 0, not None.
685+ "filled" : None ,
686+ },
687+ },
656688 ],
657689 },
658690}
You can’t perform that action at this time.
0 commit comments