ExecID (17) is the one order entry sends on the same report, so a client reading both feeds can match the two reports. Order status answers (ExecType (150)=I) are not sent.
For an overview of the US Perps APIs and how to connect, see the US Perps guides.
Protocol
Messages
Session layer (either direction)
Execution (Kraken → client)
Every message starts with the standard header and ends with the standard trailer.
Recovery
On reconnect, the session resumes from the last report Kraken sent, not from the last report you received. A report Kraken sent that you did not receive is not sent again on its own: ask for it with a ResendRequest. If you ask for every gap with a ResendRequest, delivery is at least once: Execution Reports can be delivered again after a reconnect. Some of them carryPossResend (97)=Y, but not every report that is delivered again is tagged.
What the client should do:
- De-duplicate Execution Reports by
ExecID (17): a report delivered again has the same ExecID as the first. A report withPossResend (97)=Ymay be one you have already processed, and so may one without it. - Send a ResendRequest (
35=2) when you detect a gap inMsgSeqNum (34). - Do not log on with
ResetSeqNumFlag (141)=Youtside the daily reset (22:00 UTC). Kraken then discards the reports a ResendRequest would replay, so reports sent but not yet received are lost.
Related
US Perps API overview
How order entry, market data and drop copy fit together.
Unified FIX v2
FIX 4.4 order entry for US Perps.
SBE market data
Binary market data: instruments, L3 book, trades and status.
US Perps connectivity
Connectivity and colocation documents.