Commit 3b3540a
committed
fix: Align current price to tick size in get_current_price()
- Apply tick alignment when getting price from tick data
- Bar close prices are already aligned from previous fix
- Ensures get_current_price() always returns tick-aligned values
This fixes the issue where current price could be misaligned (e.g., $23,927.62)
when sourced from raw tick data.1 parent 858e490 commit 3b3540a
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
| 240 | + | |
239 | 241 | | |
240 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
241 | 247 | | |
242 | 248 | | |
243 | 249 | | |
| |||
0 commit comments