public async Task <HaasonlineClientResponse <List <Market> > > GetPriceMarkets(EnumPriceSource priceSource) { return(await ExecuteAsync <List <Market> >("/GetPriceMarkets", new Dictionary <string, string> { { "priceSourceName", priceSource.ToString() } }, authorize : false)); }
public async Task <HaasonlineClientResponse <Orderbook> > GetOrderbook(EnumPriceSource priceSource, string primairyCoin, string secondairyCoin, string contractName) { return(await ExecuteAsync <Orderbook>("/GetOrderbook", new Dictionary <string, string> { { "priceSourceName", priceSource.ToString() }, { "primaryCoin", primairyCoin }, { "secondaryCoin", secondairyCoin }, { "contractName", contractName } }, authorize : false)); }
public async Task <HaasonlineClientResponse <TradeContainer> > GetLastTrades(EnumPriceSource priceSource, string primairyCoin, string secondairyCoin, string contractName) { return(await ExecuteAsync <TradeContainer>("/GetLastTrades", new Dictionary <string, string> { { "priceSourceName", priceSource.ToString() }, { "primaryCoin", primairyCoin }, { "secondaryCoin", secondairyCoin }, { "contractName", contractName }, }, authorize : false)); }
public async Task <HaasonlineClientResponse <List <PriceTick> > > GetHistory(EnumPriceSource priceSource, string primairyCoin, string secondairyCoin, string contractName, int interval, int depth) { return(await ExecuteAsync <List <PriceTick> >("/GetHistory", new Dictionary <string, string> { { "priceSourceName", priceSource.ToString() }, { "primaryCoin", primairyCoin }, { "secondaryCoin", secondairyCoin }, { "contractName", contractName }, { "interval", interval.ToString() }, { "depth", depth.ToString() }, }, authorize : false)); }
public async Task <HaasonlineClientResponse <TradeBot> > SetupSafety(string botGuid, string elementGuid, EnumPriceSource priceSource, string primairyCoin, string secondairyCoin, string contractName, EnumFundsPosition buySignal, EnumFundsPosition sellSignal) { return(await ExecuteAsync <TradeBot>("/SetupTradeBotSafety", new Dictionary <string, string> { { "botGuid", botGuid }, { "elementGuid", elementGuid }, { "priceSourceName", priceSource.ToString() }, { "primaryCoin", primairyCoin }, { "secondaryCoin", secondairyCoin }, { "contractName", contractName }, { "mappedBuySignal", buySignal.ToString() }, { "mappedSellSignal", sellSignal.ToString() }, })); }
public async Task <HaasonlineClientResponse <TradeBot> > SetupIndicator(string botGuid, string elementGuid, EnumPriceSource priceSource, string primairyCoin, string secondairyCoin, string contractName, int interval, EnumPriceChartType chartType, int delay) { return(await ExecuteAsync <TradeBot>("/SetupTradeBotIndicator", new Dictionary <string, string> { { "botGuid", botGuid }, { "elementGuid", elementGuid }, { "priceSourceName", priceSource.ToString() }, { "primaryCoin", primairyCoin }, { "secondaryCoin", secondairyCoin }, { "contractName", contractName }, { "interval", interval.ToString(CultureInfo.InvariantCulture) }, { "delay", delay.ToString() }, { "priceChartType", chartType.ToString() }, })); }