feat: add CCXTTickerDataProvider for TICKER data sources (#350)#395
Merged
Conversation
Adds a new CCXTTickerDataProvider that handles DataType.TICKER data sources using CCXT's fetch_ticker API. This resolves the 'No data provider found' error when strategies request ticker data. Changes: - New CCXTTickerDataProvider class in infrastructure/data_providers/ccxt.py - Registered as default data provider alongside CCXTOHLCVDataProvider - Exported from all package __init__.py levels - 15 unit tests with mocked CCXT calls Closes #350
Replace the CI-only skip with a fully mocked CCXT exchange so the download test reads from local CSV data in tests/resources/test_data/ohlcv instead of making network calls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
CCXTTickerDataProviderthat handlesDataType.TICKERdata sources using CCXT'sfetch_tickerAPI. Previously, requesting ticker data would fail with "No data provider found for ticker" because only OHLCV providers existed.Changes
CCXTTickerDataProviderclass ininfrastructure/data_providers/ccxt.pyhas_data(): Validates symbol exists on the exchange via CCXTget_data(): Fetches real-time ticker (bid, ask, last, volume, etc.) viaexchange.fetch_ticker()copy(): Creates a configured instance from aDataSourceCCXTOHLCVDataProvideringet_default_data_providers()__init__.pylevels so users canfrom investing_algorithm_framework import CCXTTickerDataProviderCloses #350