Skip to content

Commit 444e4cb

Browse files
committed
Auto-generate SDK for FinFeedAPI Currencies API REST Realtime
1 parent 4b9ced0 commit 444e4cb

File tree

195 files changed

+1800
-644
lines changed

Some content is hidden

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

195 files changed

+1800
-644
lines changed

finfeedapi/currencies-api-rest-realtime/sdk/ada/src/client/-clients.adb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ package body .Clients is
2626

2727

2828
-- Get specific rate
29-
-- Retrieves the exchange rate for a specific base and quote asset at a given time or the current rate.
30-
--
31-
-- :::info
32-
-- 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.
29+
-- Retrieves the exchange rate for a specific base and quote asset at a given time or the current rate.
30+
--
31+
-- :::info
32+
-- 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.
3333
-- :::
3434
procedure Get_Specific_Rate
3535
(Client : in out Client_Type;
@@ -50,14 +50,14 @@ package body .Clients is
5050
end Get_Specific_Rate;
5151

5252
-- Get all current rates
53-
-- Get the current exchange rate between requested asset and all other assets.
54-
--
55-
-- :::info
56-
-- 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.
57-
-- :::
58-
--
59-
-- :::info
60-
-- You can invert the rates by using Y = 1 / X equation, for example BTC/USD = 1 / (USD/BTC);
53+
-- Get the current exchange rate between requested asset and all other assets.
54+
--
55+
-- :::info
56+
-- 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.
57+
-- :::
58+
--
59+
-- :::info
60+
-- You can invert the rates by using Y = 1 / X equation, for example BTC/USD = 1 / (USD/BTC);
6161
-- :::
6262
procedure V_1Exchangerate_Asset_Id_Base_Get
6363
(Client : in out Client_Type;
@@ -97,14 +97,14 @@ package body .Clients is
9797
end V_1Assets_Asset_Id_Get;
9898

9999
-- List all assets
100-
-- Retrieves all assets.
101-
--
102-
-- :::info
103-
-- Our asset identifiers are aligned with the ISO 4217 currency codes standard only for fiat money (government or law regulated currency).
104-
-- :::
105-
--
106-
-- :::info
107-
-- Properties of the output are providing aggregated information from across all symbols related to the specific asset. If you need to calculate your aggregation (e.g., limiting only the particular type of symbols), you should use /v1/symbols endpoint as a data source.
100+
-- Retrieves all assets.
101+
--
102+
-- :::info
103+
-- Our asset identifiers are aligned with the ISO 4217 currency codes standard only for fiat money (government or law regulated currency).
104+
-- :::
105+
--
106+
-- :::info
107+
-- Properties of the output are providing aggregated information from across all symbols related to the specific asset. If you need to calculate your aggregation (e.g., limiting only the particular type of symbols), you should use /v1/symbols endpoint as a data source.
108108
-- :::
109109
procedure V_1Assets_Get
110110
(Client : in out Client_Type;

finfeedapi/currencies-api-rest-realtime/sdk/ada/src/client/-clients.ads

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ package .Clients is
1616
type Client_Type is new Swagger.Clients.Client_Type with null record;
1717

1818
-- Get specific rate
19-
-- Retrieves the exchange rate for a specific base and quote asset at a given time or the current rate.
20-
--
21-
-- :::info
22-
-- 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.
19+
-- Retrieves the exchange rate for a specific base and quote asset at a given time or the current rate.
20+
--
21+
-- :::info
22+
-- 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.
2323
-- :::
2424
procedure Get_Specific_Rate
2525
(Client : in out Client_Type;
@@ -28,14 +28,14 @@ package .Clients is
2828
Result : out .Models.V1ExchangeRate_Type);
2929

3030
-- Get all current rates
31-
-- Get the current exchange rate between requested asset and all other assets.
32-
--
33-
-- :::info
34-
-- 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.
35-
-- :::
36-
--
37-
-- :::info
38-
-- You can invert the rates by using Y = 1 / X equation, for example BTC/USD = 1 / (USD/BTC);
31+
-- Get the current exchange rate between requested asset and all other assets.
32+
--
33+
-- :::info
34+
-- 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.
35+
-- :::
36+
--
37+
-- :::info
38+
-- You can invert the rates by using Y = 1 / X equation, for example BTC/USD = 1 / (USD/BTC);
3939
-- :::
4040
procedure V_1Exchangerate_Asset_Id_Base_Get
4141
(Client : in out Client_Type;
@@ -51,14 +51,14 @@ package .Clients is
5151
Result : out .Models.V1Asset_Type_Vectors.Vector);
5252

5353
-- List all assets
54-
-- Retrieves all assets.
55-
--
56-
-- :::info
57-
-- Our asset identifiers are aligned with the ISO 4217 currency codes standard only for fiat money (government or law regulated currency).
58-
-- :::
59-
--
60-
-- :::info
61-
-- Properties of the output are providing aggregated information from across all symbols related to the specific asset. If you need to calculate your aggregation (e.g., limiting only the particular type of symbols), you should use /v1/symbols endpoint as a data source.
54+
-- Retrieves all assets.
55+
--
56+
-- :::info
57+
-- Our asset identifiers are aligned with the ISO 4217 currency codes standard only for fiat money (government or law regulated currency).
58+
-- :::
59+
--
60+
-- :::info
61+
-- Properties of the output are providing aggregated information from across all symbols related to the specific asset. If you need to calculate your aggregation (e.g., limiting only the particular type of symbols), you should use /v1/symbols endpoint as a data source.
6262
-- :::
6363
procedure V_1Assets_Get
6464
(Client : in out Client_Type;

finfeedapi/currencies-api-rest-realtime/sdk/android/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ Authentication schemes defined for the API:
111111
- **API key parameter name**: Authorization
112112
- **Location**: HTTP header
113113

114+
### JWT
115+
116+
- **Type**: API key
117+
118+
- **API key parameter name**: Authorization
119+
- **Location**: HTTP header
120+
114121

115122
## Recommendation
116123

finfeedapi/currencies-api-rest-realtime/sdk/android/docs/ExchangeRatesApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515
1616
Get specific rate
1717

18-
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. :::
18+
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. :::
1919

2020
### Example
2121

@@ -49,7 +49,7 @@ Name | Type | Description | Notes
4949

5050
### Authorization
5151

52-
[APIKey](../README.md#APIKey)
52+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
5353

5454
### HTTP request headers
5555

@@ -63,7 +63,7 @@ Name | Type | Description | Notes
6363
6464
Get all current rates
6565

66-
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); :::
66+
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); :::
6767

6868
### Example
6969

@@ -99,7 +99,7 @@ Name | Type | Description | Notes
9999

100100
### Authorization
101101

102-
[APIKey](../README.md#APIKey)
102+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
103103

104104
### HTTP request headers
105105

finfeedapi/currencies-api-rest-realtime/sdk/android/docs/MetadataApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Name | Type | Description | Notes
4646

4747
### Authorization
4848

49-
[APIKey](../README.md#APIKey)
49+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
5050

5151
### HTTP request headers
5252

@@ -60,7 +60,7 @@ Name | Type | Description | Notes
6060
6161
List all assets
6262

63-
Retrieves all assets. :::info Our asset identifiers are aligned with the ISO 4217 currency codes standard only for fiat money (government or law regulated currency). ::: :::info Properties of the output are providing aggregated information from across all symbols related to the specific asset. If you need to calculate your aggregation (e.g., limiting only the particular type of symbols), you should use /v1/symbols endpoint as a data source. :::
63+
Retrieves all assets. :::info Our asset identifiers are aligned with the ISO 4217 currency codes standard only for fiat money (government or law regulated currency). ::: :::info Properties of the output are providing aggregated information from across all symbols related to the specific asset. If you need to calculate your aggregation (e.g., limiting only the particular type of symbols), you should use /v1/symbols endpoint as a data source. :::
6464

6565
### Example
6666

@@ -92,7 +92,7 @@ Name | Type | Description | Notes
9292

9393
### Authorization
9494

95-
[APIKey](../README.md#APIKey)
95+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
9696

9797
### HTTP request headers
9898

@@ -138,7 +138,7 @@ Name | Type | Description | Notes
138138

139139
### Authorization
140140

141-
[APIKey](../README.md#APIKey)
141+
[APIKey](../README.md#APIKey), [JWT](../README.md#JWT)
142142

143143
### HTTP request headers
144144

finfeedapi/currencies-api-rest-realtime/sdk/android/src/main/java/org/openapitools/client/ApiInvoker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public static void initializeInstance(Cache cache, Network network, int threadPo
204204
// Setup authentications (key: authentication name, value: authentication).
205205
INSTANCE.authentications = new HashMap<String, Authentication>();
206206
INSTANCE.authentications.put("APIKey", new ApiKeyAuth("header", "Authorization"));
207+
INSTANCE.authentications.put("JWT", new ApiKeyAuth("header", "Authorization"));
207208
// Prevent the authentications from being modified.
208209
INSTANCE.authentications = Collections.unmodifiableMap(INSTANCE.authentications);
209210
}

finfeedapi/currencies-api-rest-realtime/sdk/android/src/main/java/org/openapitools/client/api/ExchangeRatesApi.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public String getBasePath() {
5858

5959
/**
6060
* Get specific rate
61-
* 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. :::
61+
* 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. :::
6262
* @param assetIdBase Requested exchange rate base asset identifier (from the Metadata -&gt; Assets)
6363
* @param assetIdQuote Requested exchange rate quote asset identifier (from the Metadata -&gt; Assets)
6464
* @return V1ExchangeRate
@@ -98,7 +98,7 @@ public V1ExchangeRate getSpecificRate (String assetIdBase, String assetIdQuote)
9898
// normal form params
9999
}
100100

101-
String[] authNames = new String[] { "APIKey" };
101+
String[] authNames = new String[] { "APIKey", "JWT" };
102102

103103
try {
104104
String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames);
@@ -126,7 +126,7 @@ public V1ExchangeRate getSpecificRate (String assetIdBase, String assetIdQuote)
126126

127127
/**
128128
* Get specific rate
129-
* 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. :::
129+
* 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. :::
130130
* @param assetIdBase Requested exchange rate base asset identifier (from the Metadata -&gt; Assets) * @param assetIdQuote Requested exchange rate quote asset identifier (from the Metadata -&gt; Assets)
131131
*/
132132
public void getSpecificRate (String assetIdBase, String assetIdQuote, final Response.Listener<V1ExchangeRate> responseListener, final Response.ErrorListener errorListener) {
@@ -171,7 +171,7 @@ public void getSpecificRate (String assetIdBase, String assetIdQuote, final Resp
171171
// normal form params
172172
}
173173

174-
String[] authNames = new String[] { "APIKey" };
174+
String[] authNames = new String[] { "APIKey", "JWT" };
175175

176176
try {
177177
apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames,
@@ -196,7 +196,7 @@ public void onErrorResponse(VolleyError error) {
196196
}
197197
/**
198198
* Get all current rates
199-
* 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 &#x3D; 1 / X equation, for example BTC/USD &#x3D; 1 / (USD/BTC); :::
199+
* 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 &#x3D; 1 / X equation, for example BTC/USD &#x3D; 1 / (USD/BTC); :::
200200
* @param assetIdBase Requested exchange rates base asset identifier (from the Metadata -&gt; Assets)
201201
* @param filterAssetId Comma or semicolon delimited asset identifiers used to filter response (optional)
202202
* @param invert True will invert all the rates (optional, if true then rates will be calculated as &#x60;rate &#x3D; 1 / actual_rate&#x60; eg. &#x60;USD/BTC&#x60; as &#x60;BTC/USD&#x60;)
@@ -234,7 +234,7 @@ public V1ExchangeRates v1ExchangerateAssetIdBaseGet (String assetIdBase, String
234234
// normal form params
235235
}
236236

237-
String[] authNames = new String[] { "APIKey" };
237+
String[] authNames = new String[] { "APIKey", "JWT" };
238238

239239
try {
240240
String localVarResponse = apiInvoker.invokeAPI (basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames);
@@ -262,7 +262,7 @@ public V1ExchangeRates v1ExchangerateAssetIdBaseGet (String assetIdBase, String
262262

263263
/**
264264
* Get all current rates
265-
* 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 &#x3D; 1 / X equation, for example BTC/USD &#x3D; 1 / (USD/BTC); :::
265+
* 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 &#x3D; 1 / X equation, for example BTC/USD &#x3D; 1 / (USD/BTC); :::
266266
* @param assetIdBase Requested exchange rates base asset identifier (from the Metadata -&gt; Assets) * @param filterAssetId Comma or semicolon delimited asset identifiers used to filter response (optional) * @param invert True will invert all the rates (optional, if true then rates will be calculated as &#x60;rate &#x3D; 1 / actual_rate&#x60; eg. &#x60;USD/BTC&#x60; as &#x60;BTC/USD&#x60;)
267267
*/
268268
public void v1ExchangerateAssetIdBaseGet (String assetIdBase, String filterAssetId, Boolean invert, final Response.Listener<V1ExchangeRates> responseListener, final Response.ErrorListener errorListener) {
@@ -304,7 +304,7 @@ public void v1ExchangerateAssetIdBaseGet (String assetIdBase, String filterAsset
304304
// normal form params
305305
}
306306

307-
String[] authNames = new String[] { "APIKey" };
307+
String[] authNames = new String[] { "APIKey", "JWT" };
308308

309309
try {
310310
apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType, authNames,

0 commit comments

Comments
 (0)