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

Was this helpful?

  1. Examples
  2. Script Bots

ScriptBotAPI

PreviousScript BotsNextScriptBotContext

Last updated 6 years ago

Was this helpful?

ScriptBotAPI is the API provided by to the 's. The ScriptBotAPI can be used to create and cancel orders or retrieve extra information not available in the .

Interface

public interface IScriptBotAPI
   {
       public Guid CreateLimitOrder(string exchangePlatform, string primaryCurrencyCode, string secondaryCurrencyCode, 
              OrderType type, decimal amount, decimal price, int timeoutInMinutes = 15);
       public Guid CreateMarketOrder(string exchangePlatform, string primaryCurrencyCode, string secondaryCurrencyCode, 
              OrderType type, decimal amount, int timeoutInMinutes = 15);
       public bool CancelOrder(string exchangePlatform, string primaryCurrencyCode, string secondaryCurrencyCode, string orderID);
       public decimal GetAvailableBalance(string exchangePlatform, string currencyCode);
   }
Haasbot
Script Bot
ScriptBotContext