Skip to content

fix(data): preserve K-line price precision - #224

Merged
brokermr810 merged 1 commit into
OpenByteInc:mainfrom
mameikagou:fix/kline-price-precision
Aug 27, 2026
Merged

fix(data): preserve K-line price precision#224
brokermr810 merged 1 commit into
OpenByteInc:mainfrom
mameikagou:fix/kline-price-precision

Conversation

@mameikagou

Copy link
Copy Markdown
Contributor

Summary

Fixes #218. Preserve provider OHLC precision instead of rounding every K-line price to four decimals.

Changes

  • keep normalized OHLC values as floats without fixed-decimal rounding
  • add regression coverage for low-priced instruments while retaining timestamp and volume behavior

Test plan

  • 54 related pytest tests pass
  • Ruff checks pass on changed files

API documentation

Not applicable; no routes or schemas changed.

@brokermr810
brokermr810 merged commit b59352b into OpenByteInc:main Aug 27, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

format_kline truncates K-line prices to 4 decimals regardless of exchange tick size

2 participants