From fa8a978a9130189ada22e61cfe53b80f8af853de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Grudzie=C5=84?= Date: Tue, 25 Jun 2024 16:54:48 +0200 Subject: [PATCH] Orderbook current limit request (#186) * orerbook/current: limit => limit_levels * version 3.2.4 * apikey --------- Co-authored-by: kgrudzien --- data-api/csharp-rest/CoinAPI.REST.V1/CoinAPI.REST.V1.csproj | 2 +- data-api/csharp-rest/CoinAPI.REST.V1/CoinApiEndpointUrls.cs | 2 +- data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs | 4 ++-- .../csharp-rest/CoinAPI.REST.V1/CoinApiRestEndpointsTester.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data-api/csharp-rest/CoinAPI.REST.V1/CoinAPI.REST.V1.csproj b/data-api/csharp-rest/CoinAPI.REST.V1/CoinAPI.REST.V1.csproj index 4ae630774..14994c14b 100644 --- a/data-api/csharp-rest/CoinAPI.REST.V1/CoinAPI.REST.V1.csproj +++ b/data-api/csharp-rest/CoinAPI.REST.V1/CoinAPI.REST.V1.csproj @@ -16,7 +16,7 @@ LICENSE COINAPI LTD COINAPI LTD or its affiliates - 3.2.3 + 3.2.4 17704ec2-7050-452e-99b5-0eddf76dea5d diff --git a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiEndpointUrls.cs b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiEndpointUrls.cs index 4fe1d798a..451897a2f 100644 --- a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiEndpointUrls.cs +++ b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiEndpointUrls.cs @@ -42,7 +42,7 @@ public static class CoinApiEndpointUrls public static string Quotes_HistoricalData(string symbolId, string start, int limit) => string.Format("/v1/quotes/{0}/history?time_start={1}&limit={2}", symbolId, start, limit); public static string Orderbooks_CurrentFilteredBitstamp() => "/v1/orderbooks/current?filter_symbol_id=BITSTAMP"; public static string Orderbooks_CurrentSymbol(string symbolId) => string.Format("/v1/orderbooks/{0}/current", symbolId); - public static string Orderbooks_CurrentSymbol(string symbolId, int limit) => string.Format("/v1/orderbooks/{0}/current?limit={1}", symbolId, limit); + public static string Orderbooks_CurrentSymbol(string symbolId, int limit_levels) => string.Format("/v1/orderbooks/{0}/current?limit_levels={1}", symbolId, limit_levels); public static string Orderbooks_LatestData(string symbolId, int limit) => string.Format("/v1/orderbooks/{0}/latest?limit={1}", symbolId, limit); public static string Orderbooks_LatestData(string symbolId) => string.Format("/v1/orderbooks/{0}/latest", symbolId); public static string Orderbooks_HistoricalData(string symbolId, string start, string end, int limit) => string.Format("/v1/orderbooks/{0}/history?time_start={1}&time_end={2}&limit={3}", symbolId, start, end, limit); diff --git a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs index e77cc846f..3a595756f 100644 --- a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs +++ b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs @@ -301,9 +301,9 @@ public Task Orderbooks_current_data_symbolAsync(string symbolId) var url = CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId); return GetData(url); } - public Task Orderbooks_current_data_symbolAsync(string symbolId, int limit) + public Task Orderbooks_current_data_symbolAsync(string symbolId, int limit_levels) { - var url = CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId, limit); + var url = CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId, limit_levels); return GetData(url); } public Task> Orderbooks_last_dataAsync(string symbolId, int limit) diff --git a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestEndpointsTester.cs b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestEndpointsTester.cs index 0a67a7977..b10dee89d 100644 --- a/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestEndpointsTester.cs +++ b/data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestEndpointsTester.cs @@ -126,7 +126,7 @@ public Task> Orderbooks_current_data_symbolAsync( { return HandleCheck(CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId), _coinApi.Orderbooks_current_data_symbolAsync(symbolId)); } - public Task> Orderbooks_current_data_symbolAsync(string symbolId, int limit) + public Task> Orderbooks_current_data_symbolAsync(string symbolId, int limit_levels) { return HandleCheck(CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId, 10), _coinApi.Orderbooks_current_data_symbolAsync(symbolId, 10)); }