public async Task <HaasonlineClientResponse <T> > CloneBotSimple <T>(EnumCustomBotType botType, string botGuid, string botName, string accountGuid) where T : BaseCustomBot { return(await ExecuteAsync <T>("/CloneCustomBotSimple", new Dictionary <string, string> { { "botGuid", botGuid }, { "botName", botName }, { "accountGuid", accountGuid }, })); }
public async Task <HaasonlineClientResponse <T> > NewBot <T>(EnumCustomBotType botType, string name, string accountGuid, string primairyCoin, string secondairyCoin, string contractName) { return(await ExecuteAsync <T>("/NewCustomBot", new Dictionary <string, string> { { "botType", botType.ToString() }, { "botName", name }, { "accountGuid", accountGuid }, { "primaryCoin", primairyCoin }, { "secondaryCoin", secondairyCoin }, { "contractName", contractName }, })); }
public async Task <HaasonlineClientResponse <T> > CloneBot <T>(EnumCustomBotType botType, string botGuid, string botName, string accountGuid, string primairyCoin, string secondairyCoin, string contractName, decimal leverage) where T : BaseCustomBot { return(await ExecuteAsync <T>("/CloneCustomBot", new Dictionary <string, string> { { "botGuid", botGuid }, { "botName", botName }, { "accountGuid", accountGuid }, { "primaryCoin", primairyCoin }, { "secondaryCoin", secondairyCoin }, { "contractName", contractName }, { "leverage", leverage.ToString(CultureInfo.InvariantCulture) }, })); }
public async Task <HaasonlineClientResponse <JObject> > NewBot(EnumCustomBotType botType, string name, string accountGuid, Market market) { return(await NewBot <JObject>(botType, name, accountGuid, market.PrimaryCurrency, market.SecondaryCurrency, market.ContractName)); }
public async Task <HaasonlineClientResponse <JObject> > NewBot(EnumCustomBotType botType, string name, string accountGuid, string primairyCoin, string secondairyCoin, string contractName) { return(await NewBot <JObject>(botType, name, accountGuid, primairyCoin, secondairyCoin, contractName)); }