Skip to content

Commit

Permalink
Orderbook current limit request (#186)
Browse files Browse the repository at this point in the history
* orerbook/current: limit => limit_levels

* version 3.2.4

* apikey

---------

Co-authored-by: kgrudzien <k.grudzien@eot.pl>
  • Loading branch information
kgrudzien and kgrudzien authored Jun 25, 2024
1 parent cbfe5a4 commit fa8a978
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Company>COINAPI LTD</Company>
<Copyright>COINAPI LTD or its affiliates</Copyright>
<Version>3.2.3</Version>
<Version>3.2.4</Version>
<UserSecretsId>17704ec2-7050-452e-99b5-0eddf76dea5d</UserSecretsId>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions data-api/csharp-rest/CoinAPI.REST.V1/CoinApiRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ public Task<Orderbook> Orderbooks_current_data_symbolAsync(string symbolId)
var url = CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId);
return GetData<Orderbook>(url);
}
public Task<Orderbook> Orderbooks_current_data_symbolAsync(string symbolId, int limit)
public Task<Orderbook> 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<Orderbook>(url);
}
public Task<List<Orderbook>> Orderbooks_last_dataAsync(string symbolId, int limit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public Task<EndpointCheckResult<Orderbook>> Orderbooks_current_data_symbolAsync(
{
return HandleCheck(CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId), _coinApi.Orderbooks_current_data_symbolAsync(symbolId));
}
public Task<EndpointCheckResult<Orderbook>> Orderbooks_current_data_symbolAsync(string symbolId, int limit)
public Task<EndpointCheckResult<Orderbook>> Orderbooks_current_data_symbolAsync(string symbolId, int limit_levels)
{
return HandleCheck(CoinApiEndpointUrls.Orderbooks_CurrentSymbol(symbolId, 10), _coinApi.Orderbooks_current_data_symbolAsync(symbolId, 10));
}
Expand Down

0 comments on commit fa8a978

Please sign in to comment.