Commit fca0c05
committed
Adjust sellable quantity check to use
- Ensure `ord_psbl_qty` is prioritized over `balance_qty` to avoid overestimating sellable quantities.
- Add new tests to handle scenarios with zero sellable quantities, pending orders, split orders, and missing stocks in KIS accounts.ord_psbl_qty from KIS account; add tests for overseas sell scenarios1 parent b2a9e1d commit fca0c05
File tree
2 files changed
+394
-0
lines changed- app/services
- tests
2 files changed
+394
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
395 | 408 | | |
396 | 409 | | |
397 | 410 | | |
| |||
0 commit comments