Efficiently retrieve and manage financial candlestick data with caching, REST API, and WebSocket support.
Go to file
rob 958168b3c9 Fix stale data served for limit-only requests
Add freshness check to _detect_gaps() in all cache layers (memory,
database, async_database). For limit-only requests (no start/end),
verify the most recent candle is within 2 intervals of current time.
If stale, flag as a gap so fresh data is fetched from exchange.

This fixes the issue where EDM served hours-old cached data instead
of fetching current candles when clients requested "latest N candles".

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-03 14:34:31 -04:00
src/exchange_data_manager Fix stale data served for limit-only requests 2026-03-03 14:34:31 -04:00
tests Fix stale data served for limit-only requests 2026-03-03 14:34:31 -04:00
.gitignore Implement M1, M2, M3 milestones - full exchange data manager 2026-03-03 04:05:30 -04:00
CLAUDE.md Implement M1, M2, M3 milestones - full exchange data manager 2026-03-03 04:05:30 -04:00
Dockerfile Implement M1, M2, M3 milestones - full exchange data manager 2026-03-03 04:05:30 -04:00
README.md Initial project setup 2026-03-02 22:45:06 -04:00
config.yaml Implement M1, M2, M3 milestones - full exchange data manager 2026-03-03 04:05:30 -04:00
docker-compose.yml Implement M1, M2, M3 milestones - full exchange data manager 2026-03-03 04:05:30 -04:00
pyproject.toml Implement M1, M2, M3 milestones - full exchange data manager 2026-03-03 04:05:30 -04:00

README.md

Exchange Data Manager

Efficiently retrieve and manage financial candlestick data with caching, REST API, and WebSocket support.

Installation

pip install -e .

Usage

TODO: Add usage instructions

Documentation

Full documentation is available at: https://pages.brrd.tech/rob/exchange-data-manager/

Development

# Clone the repository
git clone https://gitea.brrd.tech/rob/exchange-data-manager.git
cd exchange-data-manager

# Create virtual environment
python -m venv .venv
source .venv/bin/activate

# Install for development
pip install -e ".[dev]"

# Run tests
pytest

License

TODO: Add license