ScriptBotAPI

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

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);
   }

Last updated