Skip to content

Commit 724318c

Browse files
committed
test(krakenfutures): Add canceled order test
1 parent 37dbaae commit 724318c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

tests/exchange_online/conftest.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)