Skip to content

Conversation

@rlarkdfus
Copy link
Contributor

Taoshi Pull Request

Support preliminary order filling logic on PTN

Description

[Provide a brief description of the changes introduced by this pull request.]

Related Issues (JIRA)

[Reference any related issues or tasks that this pull request addresses or closes.]

Checklist

  • I have tested my changes on testnet.
  • I have updated any necessary documentation.
  • I have added unit tests for my changes (if applicable).
  • If there are breaking changes for validators, I have (or will) notify the community in Discord of the release.

Reviewer Instructions

[Provide any specific instructions or areas you would like the reviewer to focus on.]

Definition of Done

  • Code has been reviewed.
  • All checks and tests pass.
  • Documentation is up to date.
  • Approved by at least one reviewer.

Checklist (for the reviewer)

  • Code follows project conventions.
  • Code is well-documented.
  • Changes are necessary and align with the project's goals.
  • No breaking changes introduced.

Optional: Deploy Notes

[Any instructions or notes related to deployment, if applicable.]

/cc @mention_reviewer

rlarkdfus and others added 17 commits August 14, 2025 22:10
(cherry picked from commit db9aeb8)
(cherry picked from commit b8a3b91)
(cherry picked from commit 3c1a1df)
(cherry picked from commit d4d0985)
(cherry picked from commit 6262463)
(cherry picked from commit c3c97b2)
The limit orders weren't being fetched correctly via the REST API when using
tier-100 API keys (real-time IPC mode) because modifications to lists inside
the IPC manager's shared dict weren't properly synchronized.

Changes:
- Create a copy of the orders list before modifying to avoid unintended changes
- Reassign the entire list back to the IPC dict after modifications
- Added clear comments emphasizing the importance of not modifying shared data
  until ready to write the final, validated result

This ensures proper synchronization across processes and makes limit orders
accessible via the REST API endpoint for tier-100 API keys, matching the
behavior of position data fetching.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

3 participants