Skip to content

Commit 9409957

Browse files
committed
Auto-generate SDK for CoinAPI Market Data API REST Historical
1 parent 24fb25d commit 9409957

File tree

1,941 files changed

+28208
-39176
lines changed

Some content is hidden

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

1,941 files changed

+28208
-39176
lines changed

coinapi/market-data-api-rest/sdk/ada/defaultpackage.gpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- REST API
1+
-- CoinAPI Market Data REST API
22
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
33
-- The version of the OpenAPI document: 1.0.0
44
--

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- ------------ EDIT NOTE ------------
2-
-- REST API
2+
-- CoinAPI Market Data REST API
33
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
-- This file was generated with openapi-generator. You can modify it to implement
55
-- the client. After you modify this file, you should add the following line

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- REST API
1+
-- CoinAPI Market Data REST API
22
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
33
-- ------------ EDIT NOTE ------------
44
-- This file was generated with openapi-generator. You can modify it to implement

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

Lines changed: 225 additions & 236 deletions
Large diffs are not rendered by default.

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

Lines changed: 203 additions & 206 deletions
Large diffs are not rendered by default.

coinapi/market-data-api-rest/sdk/ada/src/model/-models.adb

Lines changed: 1 addition & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- REST API
1+
-- CoinAPI Market Data REST API
22
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
33
--
44
-- The version of the OpenAPI document: v1
@@ -339,102 +339,6 @@ package body .Models is
339339
end loop;
340340
end Deserialize;
341341

342-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
343-
Name : in String;
344-
Value : in .Models.V1ExternalAsset_Type) is
345-
begin
346-
Into.Start_Entity (Name);
347-
Into.Write_Entity ("asset_id", Value.Asset_Id);
348-
Into.Write_Entity ("description", Value.Description);
349-
Into.Write_Entity ("asset_type", Value.Asset_Type);
350-
Into.End_Entity (Name);
351-
end Serialize;
352-
353-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
354-
Name : in String;
355-
Value : in V1ExternalAsset_Type_Vectors.Vector) is
356-
begin
357-
Into.Start_Array (Name);
358-
for Item of Value loop
359-
Serialize (Into, "", Item);
360-
end loop;
361-
Into.End_Array (Name);
362-
end Serialize;
363-
364-
procedure Deserialize (From : in Swagger.Value_Type;
365-
Name : in String;
366-
Value : out .Models.V1ExternalAsset_Type) is
367-
Object : Swagger.Value_Type;
368-
begin
369-
Swagger.Streams.Deserialize (From, Name, Object);
370-
Swagger.Streams.Deserialize (Object, "asset_id", Value.Asset_Id);
371-
Swagger.Streams.Deserialize (Object, "description", Value.Description);
372-
Swagger.Streams.Deserialize (Object, "asset_type", Value.Asset_Type);
373-
end Deserialize;
374-
375-
procedure Deserialize (From : in Swagger.Value_Type;
376-
Name : in String;
377-
Value : in out V1ExternalAsset_Type_Vectors.Vector) is
378-
List : Swagger.Value_Array_Type;
379-
Item : .Models.V1ExternalAsset_Type;
380-
begin
381-
Value.Clear;
382-
Swagger.Streams.Deserialize (From, Name, List);
383-
for Data of List loop
384-
Deserialize (Data, "", Item);
385-
Value.Append (Item);
386-
end loop;
387-
end Deserialize;
388-
389-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
390-
Name : in String;
391-
Value : in .Models.V1ExternalExchange_Type) is
392-
begin
393-
Into.Start_Entity (Name);
394-
Into.Write_Entity ("exchange_id", Value.Exchange_Id);
395-
Into.Write_Entity ("external_name", Value.External_Name);
396-
Into.Write_Entity ("description", Value.Description);
397-
Into.Write_Entity ("source_id", Value.Source_Id);
398-
Into.End_Entity (Name);
399-
end Serialize;
400-
401-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
402-
Name : in String;
403-
Value : in V1ExternalExchange_Type_Vectors.Vector) is
404-
begin
405-
Into.Start_Array (Name);
406-
for Item of Value loop
407-
Serialize (Into, "", Item);
408-
end loop;
409-
Into.End_Array (Name);
410-
end Serialize;
411-
412-
procedure Deserialize (From : in Swagger.Value_Type;
413-
Name : in String;
414-
Value : out .Models.V1ExternalExchange_Type) is
415-
Object : Swagger.Value_Type;
416-
begin
417-
Swagger.Streams.Deserialize (From, Name, Object);
418-
Swagger.Streams.Deserialize (Object, "exchange_id", Value.Exchange_Id);
419-
Swagger.Streams.Deserialize (Object, "external_name", Value.External_Name);
420-
Swagger.Streams.Deserialize (Object, "description", Value.Description);
421-
Swagger.Streams.Deserialize (Object, "source_id", Value.Source_Id);
422-
end Deserialize;
423-
424-
procedure Deserialize (From : in Swagger.Value_Type;
425-
Name : in String;
426-
Value : in out V1ExternalExchange_Type_Vectors.Vector) is
427-
List : Swagger.Value_Array_Type;
428-
Item : .Models.V1ExternalExchange_Type;
429-
begin
430-
Value.Clear;
431-
Swagger.Streams.Deserialize (From, Name, List);
432-
for Data of List loop
433-
Deserialize (Data, "", Item);
434-
Value.Append (Item);
435-
end loop;
436-
end Deserialize;
437-
438342
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
439343
Name : in String;
440344
Value : in .Models.V1GeneralData_Type) is

coinapi/market-data-api-rest/sdk/ada/src/model/-models.ads

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- REST API
1+
-- CoinAPI Market Data REST API
22
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
33
--
44
-- The version of the OpenAPI document: v1
@@ -191,61 +191,6 @@ package .Models is
191191

192192

193193

194-
type V1ExternalAsset_Type is
195-
record
196-
Asset_Id : Swagger.Nullable_UString;
197-
Description : Swagger.Nullable_UString;
198-
Asset_Type : Swagger.Nullable_UString;
199-
end record;
200-
201-
202-
package V1ExternalAsset_Type_Vectors is
203-
new Ada.Containers.Vectors (Index_Type => Positive,
204-
Element_Type => .Models.V1ExternalAsset_Type);
205-
206-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
207-
Name : in String;
208-
Value : in .Models.V1ExternalAsset_Type);
209-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
210-
Name : in String;
211-
Value : in V1ExternalAsset_Type_Vectors.Vector);
212-
procedure Deserialize (From : in Swagger.Value_Type;
213-
Name : in String;
214-
Value : out .Models.V1ExternalAsset_Type);
215-
procedure Deserialize (From : in Swagger.Value_Type;
216-
Name : in String;
217-
Value : in out V1ExternalAsset_Type_Vectors.Vector);
218-
219-
220-
221-
type V1ExternalExchange_Type is
222-
record
223-
Exchange_Id : Swagger.Nullable_UString;
224-
External_Name : Swagger.Nullable_UString;
225-
Description : Swagger.Nullable_UString;
226-
Source_Id : Swagger.Nullable_UString;
227-
end record;
228-
229-
230-
package V1ExternalExchange_Type_Vectors is
231-
new Ada.Containers.Vectors (Index_Type => Positive,
232-
Element_Type => .Models.V1ExternalExchange_Type);
233-
234-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
235-
Name : in String;
236-
Value : in .Models.V1ExternalExchange_Type);
237-
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
238-
Name : in String;
239-
Value : in V1ExternalExchange_Type_Vectors.Vector);
240-
procedure Deserialize (From : in Swagger.Value_Type;
241-
Name : in String;
242-
Value : out .Models.V1ExternalExchange_Type);
243-
procedure Deserialize (From : in Swagger.Value_Type;
244-
Name : in String;
245-
Value : in out V1ExternalExchange_Type_Vectors.Vector);
246-
247-
248-
249194
type V1GeneralData_Type is
250195
record
251196
Entry_Time : Swagger.Nullable_Date;

coinapi/market-data-api-rest/sdk/android/.openapi-generator/FILES

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ docs/V1ExchangeRate.md
2323
docs/V1ExchangeRates.md
2424
docs/V1ExchangeRatesRate.md
2525
docs/V1ExchangeRatesTimeseriesItem.md
26-
docs/V1ExternalAsset.md
27-
docs/V1ExternalExchange.md
2826
docs/V1GeneralData.md
2927
docs/V1Icon.md
3028
docs/V1LastTrade.md
@@ -78,8 +76,6 @@ src/main/java/org/openapitools/client/model/V1ExchangeRate.java
7876
src/main/java/org/openapitools/client/model/V1ExchangeRates.java
7977
src/main/java/org/openapitools/client/model/V1ExchangeRatesRate.java
8078
src/main/java/org/openapitools/client/model/V1ExchangeRatesTimeseriesItem.java
81-
src/main/java/org/openapitools/client/model/V1ExternalAsset.java
82-
src/main/java/org/openapitools/client/model/V1ExternalExchange.java
8379
src/main/java/org/openapitools/client/model/V1GeneralData.java
8480
src/main/java/org/openapitools/client/model/V1Icon.java
8581
src/main/java/org/openapitools/client/model/V1LastTrade.java

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,18 @@ Class | Method | HTTP request | Description
8989
*ExchangeRatesApi* | [**v1ExchangerateAssetIdBaseAssetIdQuoteHistoryGet**](docs/ExchangeRatesApi.md#v1ExchangerateAssetIdBaseAssetIdQuoteHistoryGet) | **GET** /v1/exchangerate/{asset_id_base}/{asset_id_quote}/history | Timeseries data
9090
*ExchangeRatesApi* | [**v1ExchangerateAssetIdBaseGet**](docs/ExchangeRatesApi.md#v1ExchangerateAssetIdBaseGet) | **GET** /v1/exchangerate/{asset_id_base} | Get all current rates
9191
*ExchangeRatesApi* | [**v1ExchangerateHistoryPeriodsGet**](docs/ExchangeRatesApi.md#v1ExchangerateHistoryPeriodsGet) | **GET** /v1/exchangerate/history/periods | Timeseries periods
92-
*ExternalMetricsApi* | [**v1ExternalmetricsAssetHistoryGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsAssetHistoryGet) | **GET** /v1/externalmetrics/asset/history | Historical metrics for the asset from external sources
92+
*ExternalMetricsApi* | [**v1ExternalmetricsAssetHistoryGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsAssetHistoryGet) | **GET** /v1/externalmetrics/asset/history | Historical metrics for the asset
9393
*ExternalMetricsApi* | [**v1ExternalmetricsAssetListingGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsAssetListingGet) | **GET** /v1/externalmetrics/asset/listing | Listing of metrics available for specific asset
94-
*ExternalMetricsApi* | [**v1ExternalmetricsAssetsGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsAssetsGet) | **GET** /v1/externalmetrics/assets | Listing of all supported external assets
95-
*ExternalMetricsApi* | [**v1ExternalmetricsChainHistoryGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsChainHistoryGet) | **GET** /v1/externalmetrics/chain/history | Historical metrics for the chain from external sources
94+
*ExternalMetricsApi* | [**v1ExternalmetricsChainHistoryGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsChainHistoryGet) | **GET** /v1/externalmetrics/chain/history | Historical metrics for the chain
9695
*ExternalMetricsApi* | [**v1ExternalmetricsChainListingGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsChainListingGet) | **GET** /v1/externalmetrics/chain/listing | Listing of metrics available for specific chain
97-
*ExternalMetricsApi* | [**v1ExternalmetricsChainsGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsChainsGet) | **GET** /v1/externalmetrics/chains | Listing of all supported external chains
98-
*ExternalMetricsApi* | [**v1ExternalmetricsExchangeHistoryGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsExchangeHistoryGet) | **GET** /v1/externalmetrics/exchange/history | Historical metrics for the exchange from both external and internal sources
99-
*ExternalMetricsApi* | [**v1ExternalmetricsExchangeListingGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsExchangeListingGet) | **GET** /v1/externalmetrics/exchange/listing | Listing of metrics available for specific exchange (both external and generic)
100-
*ExternalMetricsApi* | [**v1ExternalmetricsExchangesGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsExchangesGet) | **GET** /v1/externalmetrics/exchanges | Listing of all supported external exchanges
101-
*ExternalMetricsApi* | [**v1ExternalmetricsListingGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsListingGet) | **GET** /v1/externalmetrics/listing | Listing of all supported metrics (both external and generic)
96+
*ExternalMetricsApi* | [**v1ExternalmetricsExchangeHistoryGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsExchangeHistoryGet) | **GET** /v1/externalmetrics/exchange/history | Historical metrics for the exchange
97+
*ExternalMetricsApi* | [**v1ExternalmetricsExchangeListingGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsExchangeListingGet) | **GET** /v1/externalmetrics/exchange/listing | Listing of metrics available for specific exchange
98+
*ExternalMetricsApi* | [**v1ExternalmetricsListingGet**](docs/ExternalMetricsApi.md#v1ExternalmetricsListingGet) | **GET** /v1/externalmetrics/listing | Listing of all supported metrics
10299
*MetadataApi* | [**v1AssetsAssetIdGet**](docs/MetadataApi.md#v1AssetsAssetIdGet) | **GET** /v1/assets/{asset_id} | List all assets by asset ID
103100
*MetadataApi* | [**v1AssetsGet**](docs/MetadataApi.md#v1AssetsGet) | **GET** /v1/assets | List all assets
104101
*MetadataApi* | [**v1AssetsIconsSizeGet**](docs/MetadataApi.md#v1AssetsIconsSizeGet) | **GET** /v1/assets/icons/{size} | List all asset icons
102+
*MetadataApi* | [**v1ChainsChainIdGet**](docs/MetadataApi.md#v1ChainsChainIdGet) | **GET** /v1/chains/{chain_id} | List all chains by chain ID
103+
*MetadataApi* | [**v1ChainsGet**](docs/MetadataApi.md#v1ChainsGet) | **GET** /v1/chains | List all blockchain chains
105104
*MetadataApi* | [**v1ExchangesExchangeIdGet**](docs/MetadataApi.md#v1ExchangesExchangeIdGet) | **GET** /v1/exchanges/{exchange_id} | List all exchanges by exchange_id
106105
*MetadataApi* | [**v1ExchangesGet**](docs/MetadataApi.md#v1ExchangesGet) | **GET** /v1/exchanges | List all exchanges
107106
*MetadataApi* | [**v1ExchangesIconsSizeGet**](docs/MetadataApi.md#v1ExchangesIconsSizeGet) | **GET** /v1/exchanges/icons/{size} | List of icons for the exchanges
@@ -152,8 +151,6 @@ Class | Method | HTTP request | Description
152151
- [V1ExchangeRates](docs/V1ExchangeRates.md)
153152
- [V1ExchangeRatesRate](docs/V1ExchangeRatesRate.md)
154153
- [V1ExchangeRatesTimeseriesItem](docs/V1ExchangeRatesTimeseriesItem.md)
155-
- [V1ExternalAsset](docs/V1ExternalAsset.md)
156-
- [V1ExternalExchange](docs/V1ExternalExchange.md)
157154
- [V1GeneralData](docs/V1GeneralData.md)
158155
- [V1Icon](docs/V1Icon.md)
159156
- [V1LastTrade](docs/V1LastTrade.md)
@@ -176,13 +173,17 @@ Class | Method | HTTP request | Description
176173
## Documentation for Authorization
177174

178175
Authentication schemes defined for the API:
179-
### ApiKey
176+
### APIKey
180177

181178
- **Type**: API key
182179

183-
- **API key parameter name**: X-CoinAPI-Key
180+
- **API key parameter name**: Authorization
184181
- **Location**: HTTP header
185182

183+
### JWT
184+
185+
- **Type**: HTTP Bearer Token authentication (JWT)
186+
186187

187188
## Recommendation
188189

coinapi/market-data-api-rest/sdk/android/docs/ExchangeRatesApi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Method | HTTP request | Description
1717
1818
Get specific rate
1919

20-
Retrieves the exchange rate for a specific base and quote asset at a given time or the current rate. :::info If you are using an exchange rate for mission-critical operations, then for best reliability, you should measure the difference between current time and the time returned from the response to ensure that value of the difference between those meets your internal requirements. :::
20+
Retrieves the exchange rate for a specific base and quote asset at a given time or the current rate. :::info If you are using an exchange rate for mission-critical operations, then for best reliability, you should measure the difference between current time and the time returned from the response to ensure that value of the difference between those meets your internal requirements. :::
2121

2222
### Example
2323

@@ -53,7 +53,7 @@ Name | Type | Description | Notes
5353

5454
### Authorization
5555

56-
[ApiKey](../README.md#ApiKey)
56+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
5757

5858
### HTTP request headers
5959

@@ -109,7 +109,7 @@ Name | Type | Description | Notes
109109

110110
### Authorization
111111

112-
[ApiKey](../README.md#ApiKey)
112+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
113113

114114
### HTTP request headers
115115

@@ -123,7 +123,7 @@ Name | Type | Description | Notes
123123
124124
Get all current rates
125125

126-
Get the current exchange rate between requested asset and all other assets. :::info If you are using an exchange rate for mission-critical operations, then for best reliability, you should measure the difference between current time and the time returned from the response to ensure that value of the difference between those meets your internal requirements. ::: :::info You can invert the rates by using Y = 1 / X equation, for example BTC/USD = 1 / (USD/BTC); :::
126+
Get the current exchange rate between requested asset and all other assets. :::info If you are using an exchange rate for mission-critical operations, then for best reliability, you should measure the difference between current time and the time returned from the response to ensure that value of the difference between those meets your internal requirements. ::: :::info You can invert the rates by using Y = 1 / X equation, for example BTC/USD = 1 / (USD/BTC); :::
127127

128128
### Example
129129

@@ -161,7 +161,7 @@ Name | Type | Description | Notes
161161

162162
### Authorization
163163

164-
[ApiKey](../README.md#ApiKey)
164+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
165165

166166
### HTTP request headers
167167

@@ -175,7 +175,7 @@ Name | Type | Description | Notes
175175
176176
Timeseries periods
177177

178-
You can also obtain historical exchange rates of any asset pair, grouped into time periods. Get full list of supported time periods available for requesting exchange rates historical timeseries data. ## Timeseries periods Time unit | Period identifiers --- | --- Second | 1SEC, 2SEC, 3SEC, 4SEC, 5SEC, 6SEC, 10SEC, 15SEC, 20SEC, 30SEC Minute | 1MIN, 2MIN, 3MIN, 4MIN, 5MIN, 6MIN, 10MIN, 15MIN, 20MIN, 30MIN Hour | 1HRS, 2HRS, 3HRS, 4HRS, 6HRS, 8HRS, 12HRS Day | 1DAY, 2DAY, 3DAY, 5DAY, 7DAY, 10DAY
178+
You can also obtain historical exchange rates of any asset pair, grouped into time periods. Get full list of supported time periods available for requesting exchange rates historical timeseries data. ## Timeseries periods Time unit | Period identifiers --- | --- Second | 1SEC, 2SEC, 3SEC, 4SEC, 5SEC, 6SEC, 10SEC, 15SEC, 20SEC, 30SEC Minute | 1MIN, 2MIN, 3MIN, 4MIN, 5MIN, 6MIN, 10MIN, 15MIN, 20MIN, 30MIN Hour | 1HRS, 2HRS, 3HRS, 4HRS, 6HRS, 8HRS, 12HRS Day | 1DAY, 2DAY, 3DAY, 5DAY, 7DAY, 10DAY
179179

180180
### Example
181181

@@ -203,7 +203,7 @@ This endpoint does not need any parameter.
203203

204204
### Authorization
205205

206-
[ApiKey](../README.md#ApiKey)
206+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
207207

208208
### HTTP request headers
209209

0 commit comments

Comments
 (0)