public async Task <HaasonlineClientResponse <TradeBot> > SwitchCoinPositions(string botGuid, EnumCoinsPosition position) { return(await ExecuteAsync <TradeBot>("/SwitchTradeBotCoinPositions", new Dictionary <string, string> { { "botGuid", botGuid }, { "coinPosition", position.ToString() }, })); }
public async Task <HaasonlineClientResponse <TradeBot> > SetupSpotBotTradeAmount(string botGuid, EnumCoinsPosition coinPosition, decimal tradeAmount, decimal lastBuyPrice, decimal lastSellPrice, string buyTemplateId, string sellTemplateId, bool highSpeedEnabled, bool allIn, int orderTimeout, int templateTimeout, bool maxTradeAmount, EnumLimitOrderPriceType limitOrderType, bool useHiddenOrders, decimal fee) { return(await ExecuteAsync <TradeBot>("/SetupSpotBotTradeAmount", new Dictionary <string, string> { { "botGuid", botGuid }, { "coinPosition", coinPosition.ToString() }, { "tradeAmount", tradeAmount.ToString(CultureInfo.InvariantCulture) }, { "lastBuyPrice", lastBuyPrice.ToString(CultureInfo.InvariantCulture) }, { "lastSellPrice", lastSellPrice.ToString(CultureInfo.InvariantCulture) }, { "buyTemplateId", buyTemplateId }, { "sellTemplateId", sellTemplateId }, { "highSpeedEnabled", highSpeedEnabled.ToString() }, { "allIn", allIn.ToString() }, { "orderTimeout", orderTimeout.ToString() }, { "templateTimeout", templateTimeout.ToString() }, { "maxTradeAmount", maxTradeAmount.ToString() }, { "limitOrderType", limitOrderType.ToString() }, { "useHiddenOrders", useHiddenOrders.ToString() }, { "fee", fee.ToString(CultureInfo.InvariantCulture) }, })); }