Skip to main content

Using OHLCV realtime market data

You can register multiple OHLCV data sources accross different timeframes and exchanges.
Using multiple OHLCV data sources can help you build more complex signals. As an example in the crypto market, usually when BTC goes up/down, the altcoins follow that trend. By using multiple OHLCV data sources, you can build a signal that takes into account the BTC price movement and the altcoin price movement.
Here is an example that demonstrates how to use the SDK to register to multiple OHLCV data sources:

Register the OHLCV data sources in the init function of your signal:

Use the OHLCV data in the getSignalInfo function of your signal:

Full example class