Skip to content

docs(fx): explain how to find an unpark's park when two parks look identical - #425

Merged
GeiserX merged 1 commit into
mainfrom
docs/fx-trace-park-origin
Nov 1, 2026
Merged

GeiserX merged 1 commit into
mainfrom
docs/fx-trace-park-origin

Conversation

@GeiserX

@GeiserX GeiserX commented Nov 1, 2026

Copy link
Copy Markdown
Owner

The FX trace docs merged in #423 said the park row an unpark comes from can be found by positionKey and lotAcquireDate. That is not always true. Two lots of the same date parked in the same position give two park rows with the same values, so those two fields cannot tell which one an unpark returned. CodeRabbit flagged this on the final head of #423, minutes before the merge.

Fix: the doc now says to look among the park rows of the same currency and positionKey, and to match by order and by quantityFcy. The engine returns a position's parked slices in the order they were parked: it appends them at src/engine/fx-fifo.ts:1412 and takes them from the front at :1480-1503.

Docs only. The docs (strict) check validates the build.

…entical

Two lots of the same date parked in one position give two park rows with the same positionKey and lotAcquireDate, so those fields alone cannot pick the source of an unpark. Parked slices of a position are returned in the order they were parked, so the doc now says to match by that order and by quantityFcy.
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between fd3f558 and 52d9706.

Files selected for processing: 1
  • docs/traza-fx.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@GeiserX
GeiserX merged commit 60ecec0 into main Nov 1, 2026
8 checks passed
@GeiserX
GeiserX deleted the docs/fx-trace-park-origin branch November 1, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant