IndicatorAPI

IndicatorAPI is the API provided by Haasbot to the Script Indicator's. The IndicatorAPI can be used to retrieve extra info, for example historical price info.

Interface

public interface IIndicatorAPI
{
PriceInstrument GetPriceInstrument(string priceSourcePlatform,string primaryCurrencyCode, string secondaryCurrencyCode, uint priceIntervalInSeconds);
List<string> GetSupportedPriceSources();
}

Methods

GetPriceInstrument

Get historical price info from any supported currency pair on any supported platform. The result contains an array of values for Asks, Bids, High, Low and Volume and timestamps. There arrays can be used as input for the TA-Lib functions.

GetSupportedPriceSources

Get a list of all supported price sources (platforms) which can be used in the GetPriceInstrument method.