Skip to content

fix(trading): enforce risk guard before trades#44

Merged
AKKI0511 merged 3 commits intoadd-real-time-position-manager-with-risk-controlsfrom
add-risk-guard-enforcement-in-open_position
Sep 5, 2025
Merged

fix(trading): enforce risk guard before trades#44
AKKI0511 merged 3 commits intoadd-real-time-position-manager-with-risk-controlsfrom
add-risk-guard-enforcement-in-open_position

Conversation

@AKKI0511
Copy link
Owner

@AKKI0511 AKKI0511 commented Sep 4, 2025

Summary

  • check RiskManager guards before mutating positions and cash
  • scale trade quantities with get_position_size_multiplier
  • add tests for risk guard halting and size multiplier

Testing

  • pre-commit run --all-files
  • poetry run pytest -q

https://chatgpt.com/codex/tasks/task_e_68ba1ed93c90832a81e75e860bfe4d73

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

@AKKI0511 AKKI0511 merged commit cd0b7ad into add-real-time-position-manager-with-risk-controls Sep 5, 2025
1 check passed
@AKKI0511 AKKI0511 deleted the add-risk-guard-enforcement-in-open_position branch September 5, 2025 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant