public Task <IceRequestResult> CreateOrderAsync(IceSymbolPair symbolPair, OrderType type, DecimalCast amount, DecimalCast price) { var data = new IceCreateOrder { Amount = amount, Price = price, Type = type }; return(_client.ApiUtility.Post <IceRequestResult>($"/order/{symbolPair.Name}", data)); }
public Task <List <IceOrderTransaction> > GetOrderHistoryAsync(IceSymbolPair symbolPair = null) { var route = symbolPair == null ? $"/order/history" : $"/order/history/{symbolPair.Name}"; return(_client.ApiUtility.Get <List <IceOrderTransaction> >(route)); }
public List <IceOrderTransaction> GetOrderHistory(IceSymbolPair symbolPair = null) => GetOrderHistoryAsync(symbolPair).Result;
public async Task <decimal> GetSuggestedPriceAsync(IceSymbolPair symbolPair) { return(await _client.ApiUtility.Get <decimal>($"/pairs/suggestedprice/{symbolPair.Name}", false)); }
public IceRequestResult CreateOrder(IceSymbolPair symbolPair, OrderType type, DecimalCast amount, DecimalCast price) => CreateOrderAsync(symbolPair, type, amount, price).Result;
public async Task <IceOrderTransaction[]> GetHistoryAsync(IceSymbolPair symbolPair) { return(await _client.ApiUtility.Get <IceOrderTransaction[]>($"/history/{symbolPair.Name}", false)); }
public decimal GetSuggestedPrice(IceSymbolPair symbolPair) => GetSuggestedPriceAsync(symbolPair).Result;
public IceOrderTransaction[] GetHistory(IceSymbolPair symbolPair) => GetHistoryAsync(symbolPair).Result;
public async Task <IceDepth> GetDepthAsync(IceSymbolPair symbolPair) { return(await _client.ApiUtility.Get <IceDepthRaw>($"/depth/{symbolPair.Name}", false)); }
public IceDepth GetDepth(IceSymbolPair symbolPair) => GetDepthAsync(symbolPair).Result;
public Task <IceTicker> GetTickerAsync(IceSymbolPair symbolPair) { return(_client.ApiUtility.Get <IceTicker>($"/ticker/{symbolPair.Name}", false)); }
public IceTicker GetTicker(IceSymbolPair symbolPair) => GetTickerAsync(symbolPair).Result;