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 position, List <EmailBotAction> actions, EnumLeverageStopLossType stopLossType, 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 }, { "fee", fee.ToString(CultureInfo.InvariantCulture) }, { "leverage", leverage.ToString(CultureInfo.InvariantCulture) }, { "tradeAmountType", amountType.ToString() }, { "tradeAmount", tradeAmount.ToString(CultureInfo.InvariantCulture) }, { "stopLoss", stopLoss.ToString(CultureInfo.InvariantCulture) }, { "stopLossType", stopLossType.ToString() }, { "minChangeToBuy", minChangeToBuy.ToString(CultureInfo.InvariantCulture) }, { "minChangeToSell", minChangeToSell.ToString(CultureInfo.InvariantCulture) }, { "emails", JsonConvert.SerializeObject(actions) }, })); }