Skip to content

Commit 9b11194

Browse files
committed
Auto-generate SDK for CoinAPI Market Data API REST Historical
1 parent 28b8e85 commit 9b11194

File tree

297 files changed

+1820
-7810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+1820
-7810
lines changed

coinapi/market-data-api-rest/sdk/ada/src/client/-clients.adb

Lines changed: 28 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -292,50 +292,6 @@ package body .Clients is
292292
.Models.Deserialize (Reply, "", Result);
293293
end V_1Exchanges_Icons_Size_Get;
294294

295-
-- List of active symbols for the exchange
296-
procedure V_1Symbols_Exchange_Id_Get
297-
(Client : in out Client_Type;
298-
Exchange_Id : in Swagger.UString;
299-
Filter_Symbol_Id : in Swagger.Nullable_UString;
300-
Filter_Asset_Id : in Swagger.Nullable_UString;
301-
Result : out .Models.V1Symbol_Type_Vectors.Vector) is
302-
URI : Swagger.Clients.URI_Type;
303-
Reply : Swagger.Value_Type;
304-
begin
305-
Client.Set_Accept (Media_List_1);
306-
307-
308-
URI.Add_Param ("filter_symbol_id", Filter_Symbol_Id);
309-
URI.Add_Param ("filter_asset_id", Filter_Asset_Id);
310-
URI.Set_Path ("/v1/symbols/{exchange_id}");
311-
URI.Set_Path_Param ("exchange_id", Exchange_Id);
312-
Client.Call (Swagger.Clients.GET, URI, Reply);
313-
.Models.Deserialize (Reply, "", Result);
314-
end V_1Symbols_Exchange_Id_Get;
315-
316-
-- List all historical symbols for an exchange.
317-
-- This endpoint provides access to symbols that are no longer actively traded or listed on a given exchange.
318-
-- The data is provided with pagination support.
319-
procedure V_1Symbols_Exchange_Id_History_Get
320-
(Client : in out Client_Type;
321-
Exchange_Id : in Swagger.UString;
322-
Page : in Swagger.Nullable_Integer;
323-
Limit : in Swagger.Nullable_Integer;
324-
Result : out .Models.V1Symbol_Type_Vectors.Vector) is
325-
URI : Swagger.Clients.URI_Type;
326-
Reply : Swagger.Value_Type;
327-
begin
328-
Client.Set_Accept (Media_List_1);
329-
330-
331-
URI.Add_Param ("page", Page);
332-
URI.Add_Param ("limit", Limit);
333-
URI.Set_Path ("/v1/symbols/{exchange_id}/history");
334-
URI.Set_Path_Param ("exchange_id", Exchange_Id);
335-
Client.Call (Swagger.Clients.GET, URI, Reply);
336-
.Models.Deserialize (Reply, "", Result);
337-
end V_1Symbols_Exchange_Id_History_Get;
338-
339295
-- List all active symbols
340296
-- Retrieves all currently active (listed) symbols, with optional filtering.
341297
--
@@ -418,10 +374,10 @@ package body .Clients is
418374
-- contract_unit | Contact size *(eg. 10 BTC if `contract_unit` = `10` and `contract_unit_asset` = `BTC`)*
419375
-- contract_unit_asset | Identifier of the asset used to denominate the contract unit
420376
-- contract_id | Identifier of contract by the exchange
421-
procedure V_1Symbols_Get
377+
procedure V_1Symbols_Exchange_Id_Active_Get
422378
(Client : in out Client_Type;
379+
Exchange_Id : in Swagger.UString;
423380
Filter_Symbol_Id : in Swagger.Nullable_UString;
424-
Filter_Exchange_Id : in Swagger.Nullable_UString;
425381
Filter_Asset_Id : in Swagger.Nullable_UString;
426382
Result : out .Models.V1Symbol_Type_Vectors.Vector) is
427383
URI : Swagger.Clients.URI_Type;
@@ -431,12 +387,35 @@ package body .Clients is
431387

432388

433389
URI.Add_Param ("filter_symbol_id", Filter_Symbol_Id);
434-
URI.Add_Param ("filter_exchange_id", Filter_Exchange_Id);
435390
URI.Add_Param ("filter_asset_id", Filter_Asset_Id);
436-
URI.Set_Path ("/v1/symbols");
391+
URI.Set_Path ("/v1/symbols/{exchange_id}/active");
392+
URI.Set_Path_Param ("exchange_id", Exchange_Id);
393+
Client.Call (Swagger.Clients.GET, URI, Reply);
394+
.Models.Deserialize (Reply, "", Result);
395+
end V_1Symbols_Exchange_Id_Active_Get;
396+
397+
-- List all historical symbols for an exchange.
398+
-- This endpoint provides access to symbols that are no longer actively traded or listed on a given exchange.
399+
-- The data is provided with pagination support.
400+
procedure V_1Symbols_Exchange_Id_History_Get
401+
(Client : in out Client_Type;
402+
Exchange_Id : in Swagger.UString;
403+
Page : in Swagger.Nullable_Integer;
404+
Limit : in Swagger.Nullable_Integer;
405+
Result : out .Models.V1Symbol_Type_Vectors.Vector) is
406+
URI : Swagger.Clients.URI_Type;
407+
Reply : Swagger.Value_Type;
408+
begin
409+
Client.Set_Accept (Media_List_1);
410+
411+
412+
URI.Add_Param ("page", Page);
413+
URI.Add_Param ("limit", Limit);
414+
URI.Set_Path ("/v1/symbols/{exchange_id}/history");
415+
URI.Set_Path_Param ("exchange_id", Exchange_Id);
437416
Client.Call (Swagger.Clients.GET, URI, Reply);
438417
.Models.Deserialize (Reply, "", Result);
439-
end V_1Symbols_Get;
418+
end V_1Symbols_Exchange_Id_History_Get;
440419

441420
-- List active symbol mapping for the exchange
442421
procedure V_1Symbols_Map_Exchange_Id_Get
@@ -947,7 +926,6 @@ package body .Clients is
947926
Time_Start : in Swagger.Nullable_UString;
948927
Time_End : in Swagger.Nullable_UString;
949928
Limit : in Swagger.Nullable_Integer;
950-
Include_Empty_Items : in Swagger.Nullable_Boolean;
951929
Result : out .Models.V1TimeseriesItem_Type_Vectors.Vector) is
952930
URI : Swagger.Clients.URI_Type;
953931
Reply : Swagger.Value_Type;
@@ -959,7 +937,6 @@ package body .Clients is
959937
URI.Add_Param ("time_start", Time_Start);
960938
URI.Add_Param ("time_end", Time_End);
961939
URI.Add_Param ("limit", Limit);
962-
URI.Add_Param ("include_empty_items", Include_Empty_Items);
963940
URI.Set_Path ("/v1/ohlcv/{symbol_id}/history");
964941
URI.Set_Path_Param ("symbol_id", Symbol_Id);
965942
Client.Call (Swagger.Clients.GET, URI, Reply);

coinapi/market-data-api-rest/sdk/ada/src/client/-clients.ads

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -141,24 +141,6 @@ package .Clients is
141141
Size : in Integer;
142142
Result : out .Models.V1Icon_Type_Vectors.Vector);
143143

144-
-- List of active symbols for the exchange
145-
procedure V_1Symbols_Exchange_Id_Get
146-
(Client : in out Client_Type;
147-
Exchange_Id : in Swagger.UString;
148-
Filter_Symbol_Id : in Swagger.Nullable_UString;
149-
Filter_Asset_Id : in Swagger.Nullable_UString;
150-
Result : out .Models.V1Symbol_Type_Vectors.Vector);
151-
152-
-- List all historical symbols for an exchange.
153-
-- This endpoint provides access to symbols that are no longer actively traded or listed on a given exchange.
154-
-- The data is provided with pagination support.
155-
procedure V_1Symbols_Exchange_Id_History_Get
156-
(Client : in out Client_Type;
157-
Exchange_Id : in Swagger.UString;
158-
Page : in Swagger.Nullable_Integer;
159-
Limit : in Swagger.Nullable_Integer;
160-
Result : out .Models.V1Symbol_Type_Vectors.Vector);
161-
162144
-- List all active symbols
163145
-- Retrieves all currently active (listed) symbols, with optional filtering.
164146
--
@@ -241,13 +223,23 @@ package .Clients is
241223
-- contract_unit | Contact size *(eg. 10 BTC if `contract_unit` = `10` and `contract_unit_asset` = `BTC`)*
242224
-- contract_unit_asset | Identifier of the asset used to denominate the contract unit
243225
-- contract_id | Identifier of contract by the exchange
244-
procedure V_1Symbols_Get
226+
procedure V_1Symbols_Exchange_Id_Active_Get
245227
(Client : in out Client_Type;
228+
Exchange_Id : in Swagger.UString;
246229
Filter_Symbol_Id : in Swagger.Nullable_UString;
247-
Filter_Exchange_Id : in Swagger.Nullable_UString;
248230
Filter_Asset_Id : in Swagger.Nullable_UString;
249231
Result : out .Models.V1Symbol_Type_Vectors.Vector);
250232

233+
-- List all historical symbols for an exchange.
234+
-- This endpoint provides access to symbols that are no longer actively traded or listed on a given exchange.
235+
-- The data is provided with pagination support.
236+
procedure V_1Symbols_Exchange_Id_History_Get
237+
(Client : in out Client_Type;
238+
Exchange_Id : in Swagger.UString;
239+
Page : in Swagger.Nullable_Integer;
240+
Limit : in Swagger.Nullable_Integer;
241+
Result : out .Models.V1Symbol_Type_Vectors.Vector);
242+
251243
-- List active symbol mapping for the exchange
252244
procedure V_1Symbols_Map_Exchange_Id_Get
253245
(Client : in out Client_Type;
@@ -473,7 +465,6 @@ package .Clients is
473465
Time_Start : in Swagger.Nullable_UString;
474466
Time_End : in Swagger.Nullable_UString;
475467
Limit : in Swagger.Nullable_Integer;
476-
Include_Empty_Items : in Swagger.Nullable_Boolean;
477468
Result : out .Models.V1TimeseriesItem_Type_Vectors.Vector);
478469

479470
-- Latest data

coinapi/market-data-api-rest/sdk/android/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ Class | Method | HTTP request | Description
9797
*MetadataApi* | [**v1ExchangesExchangeIdGet**](docs/MetadataApi.md#v1ExchangesExchangeIdGet) | **GET** /v1/exchanges/{exchange_id} | List all exchanges by exchange_id
9898
*MetadataApi* | [**v1ExchangesGet**](docs/MetadataApi.md#v1ExchangesGet) | **GET** /v1/exchanges | List all exchanges
9999
*MetadataApi* | [**v1ExchangesIconsSizeGet**](docs/MetadataApi.md#v1ExchangesIconsSizeGet) | **GET** /v1/exchanges/icons/{size} | List of icons for the exchanges
100-
*MetadataApi* | [**v1SymbolsExchangeIdGet**](docs/MetadataApi.md#v1SymbolsExchangeIdGet) | **GET** /v1/symbols/{exchange_id} | List of active symbols for the exchange
100+
*MetadataApi* | [**v1SymbolsExchangeIdActiveGet**](docs/MetadataApi.md#v1SymbolsExchangeIdActiveGet) | **GET** /v1/symbols/{exchange_id}/active | List all active symbols
101101
*MetadataApi* | [**v1SymbolsExchangeIdHistoryGet**](docs/MetadataApi.md#v1SymbolsExchangeIdHistoryGet) | **GET** /v1/symbols/{exchange_id}/history | List all historical symbols for an exchange.
102-
*MetadataApi* | [**v1SymbolsGet**](docs/MetadataApi.md#v1SymbolsGet) | **GET** /v1/symbols | List all active symbols
103102
*MetadataApi* | [**v1SymbolsMapExchangeIdGet**](docs/MetadataApi.md#v1SymbolsMapExchangeIdGet) | **GET** /v1/symbols/map/{exchange_id} | List active symbol mapping for the exchange
104103
*MetricsV1Api* | [**v1MetricsAssetCurrentGet**](docs/MetricsV1Api.md#v1MetricsAssetCurrentGet) | **GET** /v1/metrics/asset/current | Current metrics for given asset
105104
*MetricsV1Api* | [**v1MetricsAssetHistoryGet**](docs/MetricsV1Api.md#v1MetricsAssetHistoryGet) | **GET** /v1/metrics/asset/history | Historical metrics for asset

0 commit comments

Comments
 (0)