The paper selector exposed two different rejection reports for one
order. Exercise the console and EMS paths with the same request.
Tests cover,
- Submit a paper buy and a buy for a foreign Kraken alias. Check
both reports against the configured alias. Send a foreign cancel
with an otherwise valid order ID and require zero WS sends.
- Feed an unexpected list, an online greeting and a multiline
rejection through the private socket. Check the quoted frame
type, the INFO greeting and the escaped reason in both the
WARNING and the exception.
- Check the operation, pair and reqid in the order-send log.
Deliver a rejected edit and verify the console quotes the action
and exchange text while EMS receives the original reason.
- Include a synthetic token in the rejected frame and check that
neither the log nor the exception echoes it.
(this patch was generated in some part by `Codex` using
`GPT-6` (`OpenAI`))
A chart with both private subscriptions active exercises the
happy path. Reproduce stale sessions and interleaved orders offline
so the provider fixes have a repeatable target.
Tests cover,
- Open the trade dialog with valid, missing and malformed account
settings. Send orders for the configured alias and a foreign one.
- Script replies for `ownTrades` and `openOrders`. Check renewal,
missing acks, repeated rejection and the token on the next order.
Count submissions to catch a replay.
- Keep two pairs active. Edit and cancel A, ack B first, then
repeat A's open update. Check the pair on an acknowledged edit
and require one cancel addressed to A's Kraken txid.
On the replay at `cc9f827f`, 7 cases pass and 13 reproduce bugs.
The suite uses synthetic tokens and in-process EMS and WS peers.
(this patch was generated in some part by `Codex` using
`GPT-6` (`OpenAI`))