This Pull Request introduces the implementation of various methods to gather and manage market data from different supported exchanges using CCXT. The service retrieves market data through REST APIs or WebSockets from these exchanges. The following methods are implemented to handle fetching and subscribing to market data:
Summary of changes
Implemented getTickers method: Fetches tickers for specified symbols from a given exchange.
Implemented getOHLCVData method: Fetches OHLCV data for a specified symbol from a given exchange.
Implemented getSupportedPairs method: Fetches supported trading pairs from exchanges.
Implemented watchOrderBook method: Subscribes to order book updates for a specified symbol from a given exchange.
Implemented watchOHLCV method: Subscribes to OHLCV data updates for a specified symbol from a given exchange.
Implemented watchTicker method: Subscribes to ticker updates for a specified symbol from a given exchange.
Implemented watchTickers method: Subscribes to ticker updates for multiple symbols from a given exchange.
Implemented isSubscribed method: Checks if a subscription is active for the given parameters.
Implemented unsubscribeOrderBook method: Unsubscribes from order book updates for a specified symbol.
Implemented getTickerPrice method: Fetches the latest ticker price for a specified symbol from a given exchange.
Implemented getMultipleTickerPrices method: Fetches ticker prices for multiple symbols across multiple exchanges.
Implemented getSupportedSymbols method: Fetches supported symbols from a given exchange.
Implemented unsubscribeData method: Unsubscribes from data updates for the given parameters.
Added unit tests: Ensured that all methods function correctly and handle edge cases as expected.
Documentation: Updated documentation to reflect the new methods and their usage.
Description
This Pull Request introduces the implementation of various methods to gather and manage market data from different supported exchanges using CCXT. The service retrieves market data through REST APIs or WebSockets from these exchanges. The following methods are implemented to handle fetching and subscribing to market data:
Summary of changes
getTickers
method: Fetches tickers for specified symbols from a given exchange.getOHLCVData
method: Fetches OHLCV data for a specified symbol from a given exchange.getSupportedPairs
method: Fetches supported trading pairs from exchanges.watchOrderBook
method: Subscribes to order book updates for a specified symbol from a given exchange.watchOHLCV
method: Subscribes to OHLCV data updates for a specified symbol from a given exchange.watchTicker
method: Subscribes to ticker updates for a specified symbol from a given exchange.watchTickers
method: Subscribes to ticker updates for multiple symbols from a given exchange.isSubscribed
method: Checks if a subscription is active for the given parameters.unsubscribeOrderBook
method: Unsubscribes from order book updates for a specified symbol.getTickerPrice
method: Fetches the latest ticker price for a specified symbol from a given exchange.getMultipleTickerPrices
method: Fetches ticker prices for multiple symbols across multiple exchanges.getSupportedSymbols
method: Fetches supported symbols from a given exchange.unsubscribeData
method: Unsubscribes from data updates for the given parameters.Related issues
Fixes #7