Commit e4bb79a
committed
Add
- Introduce `_fetch_missing_prices` to query and update current prices for stocks without pricing data using the KIS API.
- Ensure proper handling for cases without holdings or zero quantity stocks.
- Add extensive test coverage for `_fetch_missing_prices`, including successful updates, API errors, and skip logic for already priced stocks.
- Expand tests for MergedPortfolioService methods to include integration scenarios and edge cases._fetch_missing_prices method and expand MergedPortfolioService test coverage1 parent 4f18cce commit e4bb79a
File tree
2 files changed
+683
-0
lines changed- app/services
- tests
2 files changed
+683
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
259 | 289 | | |
260 | 290 | | |
261 | 291 | | |
| |||
323 | 353 | | |
324 | 354 | | |
325 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
326 | 365 | | |
327 | 366 | | |
328 | 367 | | |
| |||
0 commit comments