Skip to content

RiskEngine incorrectly denies quote_quantity=True orders #2628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
DeevsDeevs opened this issue May 13, 2025 · 1 comment
Closed
4 tasks done

RiskEngine incorrectly denies quote_quantity=True orders #2628

DeevsDeevs opened this issue May 13, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DeevsDeevs
Copy link
Contributor

Bug Report

Confirmation

Before opening a bug report, please confirm:

  • I’ve re-read the relevant sections of the documentation.
  • I’ve searched existing issues and discussions to avoid duplicates.
  • I’ve reviewed or skimmed the source code (or examples) to confirm the behavior isn’t by design.
  • I’ve confirmed the issue is reproducible with the latest version of nautilus_trader.

Expected Behavior

RiskEngine should use already converted quote to base before any checks.

Actual Behavior

When quote_quantity=True, RiskEngine still check expected free balance as if quantity is in base currency.

Steps to Reproduce the Problem

  1. Setup LiveNode
  2. Set balance to n USDT
  3. Try submit order for BTCUSDT-SPOT with minimal order size and quote_quantity=True
  4. Enjoy denied orders by RiskEngine

Specifications

  • Python version: 3.12
  • nautilus_trader version: 1.218
@DeevsDeevs DeevsDeevs added the bug Something isn't working label May 13, 2025
@cjdsellers cjdsellers self-assigned this May 15, 2025
@cjdsellers cjdsellers moved this to In progress in NautilusTrader Kanban Board May 15, 2025
@cjdsellers
Copy link
Member

Hi @DeevsDeevs

Thanks for the report, this is now fixed from aa84613.

@cjdsellers cjdsellers moved this from In progress to Done in NautilusTrader Kanban Board May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants