public async Task <HaasonlineClientResponse <MadHatterBot> > SetupMadHatterBot(string botGuid, string botName, string accountGuid, string primaryCoin, string secondaryCoin, string contractName, decimal leverage, EnumBotTradeAmount amountType,
                                                                                       decimal tradeAmount, decimal fee, string templateGuid, string position, int interval, bool consensusmode, bool disableAfterStopLoss, bool includeIncompleteInterval, EnumFundsPosition mappedBuySignal, EnumFundsPosition mappedSellSignal)
        {
            return(await ExecuteAsync <MadHatterBot>("/SetupMadHatterBot", new Dictionary <string, string>()
            {
                { "botName", botName },
                { "botGuid", botGuid },
                { "accountGuid", accountGuid },
                { "primaryCoin", primaryCoin },
                { "secondaryCoin", secondaryCoin },
                { "contractName", contractName },
                { "leverage", leverage.ToString(CultureInfo.InvariantCulture) },
                { "templateGuid", templateGuid },
                { "position", position },
                { "fee", fee.ToString(CultureInfo.InvariantCulture) },

                { "tradeAmountType", amountType.ToString() },
                { "tradeAmount", tradeAmount.ToString(CultureInfo.InvariantCulture) },
                { "useTwoSignals", consensusmode.ToString() },
                { "disableAfterStopLoss", disableAfterStopLoss.ToString(CultureInfo.InvariantCulture) },
                { "interval", interval.ToString(CultureInfo.InvariantCulture) },
                { "includeIncompleteInterval", includeIncompleteInterval.ToString() },
                { "mappedBuySignal", mappedBuySignal.ToString() },
                { "mappedSellSignal", mappedSellSignal.ToString() },
            }));
        }
 public async Task <HaasonlineClientResponse <BaseCustomBot> > SetupPingPongBot(string botGuid, string botName, string accountGuid, string primaryCoin, string secondaryCoin, string contractName, decimal leverage, EnumBotTradeAmount amountType, decimal tradeAmount, string templateGuid, decimal fee, string position)
 {
     return(await ExecuteAsync <BaseCustomBot>("/SetupPingPongBot", new Dictionary <string, string>()
     {
         { "botGuid", botGuid },
         { "botName", botName },
         { "accountGuid", accountGuid },
         { "primaryCoin", primaryCoin },
         { "secondaryCoin", secondaryCoin },
         { "contractName", contractName },
         { "leverage", leverage.ToString(CultureInfo.InvariantCulture) },
         { "tradeAmountType", amountType.ToString() },
         { "tradeAmount", tradeAmount.ToString(CultureInfo.InvariantCulture) },
         { "templateGuid", templateGuid },
         { "position", position },
         { "fee", fee.ToString(CultureInfo.InvariantCulture) },
     }));
 }
 public async Task <HaasonlineClientResponse <IntelliAliceBot> > SetupIntellibotAlice(string botGuid, string botName, string accountGuid, string primaryCoin, string secondaryCoin, string contractName, EnumBotTradeAmount amountType, decimal tradeAmount, string templateGuid, decimal fee, decimal leverage, string position, EnumLeverageStopLossType stopLossType, decimal stopLoss, decimal takeProfit)
 {
     return(await ExecuteAsync <IntelliAliceBot>("/SetupIntellibotAlice", new Dictionary <string, string>()
     {
         { "botGuid", botGuid },
         { "botName", botName },
         { "accountGuid", accountGuid },
         { "primaryCoin", primaryCoin },
         { "secondaryCoin", secondaryCoin },
         { "contractName", contractName },
         { "leverage", leverage.ToString(CultureInfo.InvariantCulture) },
         { "tradeAmountType", amountType.ToString() },
         { "tradeAmount", tradeAmount.ToString(CultureInfo.InvariantCulture) },
         { "position", position },
         { "templateGuid", templateGuid },
         { "fee", fee.ToString(CultureInfo.InvariantCulture) },
         { "stopLossType", stopLossType.ToString() },
         { "stopLoss", stopLoss.ToString(CultureInfo.InvariantCulture) },
         { "takeProfit", takeProfit.ToString(CultureInfo.InvariantCulture) },
     }));
 }
 public async Task <HaasonlineClientResponse <EmailBot> > SetupEmailBot(string botGuid, string botName, string accountGuid, string primaryCoin, string secondaryCoin, string contractName, decimal leverage, EnumBotTradeAmount amountType, decimal tradeAmount, decimal fee, string templateGuid, string position, List <EmailBotAction> actions, decimal stopLoss, decimal minChangeToBuy, decimal minChangeToSell)
 {
     return(await ExecuteAsync <EmailBot>("/SetupEmailBot", new Dictionary <string, string>()
     {
         { "botGuid", botGuid },
         { "botName", botName },
         { "accountGuid", accountGuid },
         { "primaryCoin", primaryCoin },
         { "secondaryCoin", secondaryCoin },
         { "contractName", contractName },
         { "position", position },
         { "templateGuid", templateGuid },
         { "fee", fee.ToString(CultureInfo.InvariantCulture) },
         { "leverage", leverage.ToString(CultureInfo.InvariantCulture) },
         { "tradeAmountType", amountType.ToString() },
         { "tradeAmount", tradeAmount.ToString(CultureInfo.InvariantCulture) },
         { "stopLoss", stopLoss.ToString(CultureInfo.InvariantCulture) },
         { "minChangeToBuy", minChangeToBuy.ToString(CultureInfo.InvariantCulture) },
         { "minChangeToSell", minChangeToSell.ToString(CultureInfo.InvariantCulture) },
         { "emails", JsonConvert.SerializeObject(actions) },
     }));
 }