Exemple #1
0
 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 },
     }));
 }
Exemple #2
0
 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 },
     }));
 }
Exemple #3
0
 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) },
     }));
 }
Exemple #4
0
 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));
 }
Exemple #5
0
 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));
 }