LogoLogo
Back to HaasOnline.comSwitch to Trade Platform
2.x
2.x
  • Welcome
  • Examples
    • Script Bots
      • ScriptBotAPI
      • ScriptBotContext
      • ScriptBotScriptBase
    • Script Indicators
      • IndicatorAPI
      • IndicatorContext
      • IndicatorScriptBase
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Ask on Telegram
    • Submit support ticket
Powered by GitBook
On this page
  • Interface
  • Methods
  • GetPriceInstrument
  • GetSupportedPriceSources

Was this helpful?

  1. Examples
  2. Script Indicators

IndicatorAPI

PreviousScript IndicatorsNextIndicatorContext

Last updated 6 years ago

Was this helpful?

IndicatorAPI is the API provided by to the '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 functions.

GetSupportedPriceSources

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

Haasbot
Script Indicator
TA-Lib