public interface IScriptBotAPI
/// Get all available price sources
List<string> GetAllPriceSources();
/// Get all active price sources
List<string> GetEnabledPriceSources();
/// Get all markets of a specific price source.
/// <param name="pricesourceName"></param>
/// Returns the short name of the markets
List<string> GetPriceMarkets(string pricesourceName);
/// Get open, high, low, close, asks, bids and volume data of a specific market.
/// <param name="pricesourceName">Price source as returned by GetEnabledPriceSources()</param>
/// <param name="primaryCurrency">Primary currency as returned by GetPriceMarkets()</param>
/// <param name="secondaryCurrency">Secondary currency as returned by GetPriceMarkets()</param>
/// <param name="contractName">Contract name as returned by GetPriceMarkets(). Leave blank if the markets hasn't got a contract name.</param>
/// <param name="interval">The interval of the ticks.</param>
/// <param name="ticksBack"></param>
IPriceInstrument GetPriceInstrument(string pricesourceName, string primaryCurrency, string secondaryCurrency, string contractName, int interval, int ticksBack);
/// Get the last known price of a specific market.
/// <param name="pricesourceName">Price source as returned by GetEnabledPriceSources()</param>
/// <param name="primaryCurrency">Primary currency as returned by GetPriceMarkets()</param>
/// <param name="secondaryCurrency">Secondary currency as returned by GetPriceMarkets()</param>
/// <param name="contractName">Contract name as returned by GetPriceMarkets(). Leave blank if the markets hasn't got a contract name.</param>
/// <returns>PriceTick with current price data</returns>
PriceTick GetPriceTick(string pricesourceName, string primaryCurrency, string secondaryCurrency, string contractName);
/// Get the last known minute price of a specific market.
/// <param name="pricesourceName">Prices ource as returned by GetEnabledPriceSources()</param>
/// <param name="primaryCurrency">Primary currency as returned by GetPriceMarkets()</param>
/// <param name="secondaryCurrency">Secondary currency as returned by GetPriceMarkets()</param>
/// <param name="contractName">Contract name as returned by GetPriceMarkets(). Leave blank if the markets hasn't got a contract name.</param>
/// <returns>PriceTick with current minute price data</returns>
PriceTick GetMinutePriceTick(string pricesourceName, string primaryCurrency, string secondaryCurrency, string contractName);
/// <param name="orderId">Open Order ID as returned by the place order calls</param>
void CancelOrder(string orderId);
/// <param name="amount">Amount of the order</param>
/// <param name="price">Price of the orders</param>
/// <returns>Order ID</returns>
string PlaceBuyOrder(decimal amount, decimal price);
/// <param name="amount">Amount of the order</param>
/// <param name="price">Price of the order</param>
/// <returns>Order ID</returns>
string PlaceSellOrder(decimal amount, decimal price);
/// Place an order to go long.
/// <param name="amount">Amount of the order</param>
/// <param name="price">Price of the order</param>
/// <returns>Order ID</returns>
string PlaceGoLongOrder(decimal amount, decimal price);
/// Place an order to exit a long.
/// <param name="amount">Amount of the order</param>
/// <param name="price">Price of the order</param>
/// <returns>Order ID</returns>
string PlaceExitLongOrder(decimal amount, decimal price);
/// Place an order to go short.
/// <param name="amount">Amount of the order</param>
/// <param name="price">Price of the order</param>
/// <returns>Order ID</returns>
string PlaceGoShortOrder(decimal amount, decimal price);
/// Place an order to exit a short.
/// <param name="amount">Amount of the order</param>
/// <param name="price">Price of the order</param>
/// <returns>Order ID</returns>
string PlaceExitShortOrder(decimal amount, decimal price);
/// Returns the status of the order
/// <param name="orderId">Open Order ID as returned by the place order calls</param>
enumScriptOrderStatus GetOrderStatus(string orderId);
/// Switch the bot's position to bought without executing an order.
void SetCoinPositionToBought();
/// Switch the bot's position to sold without executing an order.
void SetCoinPositionToSold();
/// Switch the bot's position to no position without executing an order.
void SetCoinPositionToNoPosition();
/// Switch the bot's position to a long without executing an order.
void SetCoinPositionToLong();
/// Switch the bot's position to a short without executing an order.
void SetCoinPositionToShort();
/// Show a trade amount error in the UI. The error will reset every update.
void SignalWalletAlert();
public enum enumScriptOrderStatus