Contains the concatinated configuration from the config.yml and strategy.yml files
Adds a calculation to the bulk construct. As standard, you may add 20 calculations to a construct, but if your plan supports multiple constructs, you can fetch data accross multiple assets pairs / timeframes in one request.
this.addCalculation("rsi", "BTC/USDT", "1h", "rsi_1h"); // Construct 1
this.addCalculation("ema", "BTC/USDT", "1h", "ema_1h", { period: 20 }); // Construct 1
this.addCalculation("macd", "BTC/USDT", "4h", "macd_4h"); // Construct 2
this.addCalculation("ema", "ETH/USDT", "1d", "ema_1d", { period: 200 }, "bybit"); // Construct 3 + Override default exchange
The indicator to calculate
The symbol to calculate the indicator for
The interval to calculate the indicator for
Your own unique ID of the calculation. This is used to identify the calculation in the result.
The parameters to pass to the calculation
The exchange to calculate the indicator for, defaults to what's defined in the system config
This class is a wrapper for the Taapi NPM client. It is used to interact with the Taapi API, making it a little easier to use with this framework.