@currencycore/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +73 -0
  3. package/dist/apis/CurrencyCoreApi.d.ts +297 -0
  4. package/dist/apis/CurrencyCoreApi.js +827 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +19 -0
  7. package/dist/client.d.ts +21 -0
  8. package/dist/client.js +23 -0
  9. package/dist/esm/apis/CurrencyCoreApi.d.ts +297 -0
  10. package/dist/esm/apis/CurrencyCoreApi.js +823 -0
  11. package/dist/esm/apis/index.d.ts +1 -0
  12. package/dist/esm/apis/index.js +3 -0
  13. package/dist/esm/client.d.ts +21 -0
  14. package/dist/esm/client.js +20 -0
  15. package/dist/esm/index.d.ts +4 -0
  16. package/dist/esm/index.js +8 -0
  17. package/dist/esm/models/AiResponse.d.ts +50 -0
  18. package/dist/esm/models/AiResponse.js +53 -0
  19. package/dist/esm/models/ApiError.d.ts +33 -0
  20. package/dist/esm/models/ApiError.js +44 -0
  21. package/dist/esm/models/ApiErrorError.d.ts +44 -0
  22. package/dist/esm/models/ApiErrorError.js +49 -0
  23. package/dist/esm/models/ConvertResponse.d.ts +77 -0
  24. package/dist/esm/models/ConvertResponse.js +64 -0
  25. package/dist/esm/models/ConvertResponseResultsInner.d.ts +57 -0
  26. package/dist/esm/models/ConvertResponseResultsInner.js +56 -0
  27. package/dist/esm/models/ConvertResponseResultsInnerPpp.d.ts +62 -0
  28. package/dist/esm/models/ConvertResponseResultsInnerPpp.js +63 -0
  29. package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf.d.ts +56 -0
  30. package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf.js +59 -0
  31. package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf1.d.ts +32 -0
  32. package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf1.js +43 -0
  33. package/dist/esm/models/CorrelationResponse.d.ts +51 -0
  34. package/dist/esm/models/CorrelationResponse.js +56 -0
  35. package/dist/esm/models/CorrelationResponseResultsInner.d.ts +50 -0
  36. package/dist/esm/models/CorrelationResponseResultsInner.js +53 -0
  37. package/dist/esm/models/CountriesResponseInner.d.ts +44 -0
  38. package/dist/esm/models/CountriesResponseInner.js +49 -0
  39. package/dist/esm/models/CurrenciesResponseInner.d.ts +50 -0
  40. package/dist/esm/models/CurrenciesResponseInner.js +55 -0
  41. package/dist/esm/models/DrawdownResponse.d.ts +93 -0
  42. package/dist/esm/models/DrawdownResponse.js +85 -0
  43. package/dist/esm/models/DrawdownResponseResultsInner.d.ts +68 -0
  44. package/dist/esm/models/DrawdownResponseResultsInner.js +57 -0
  45. package/dist/esm/models/HistoryAnalysisResponse.d.ts +117 -0
  46. package/dist/esm/models/HistoryAnalysisResponse.js +102 -0
  47. package/dist/esm/models/HistoryAnalysisResponseResultsInner.d.ts +95 -0
  48. package/dist/esm/models/HistoryAnalysisResponseResultsInner.js +76 -0
  49. package/dist/esm/models/HistoryAnalysisResponseResultsInnerStats.d.ts +44 -0
  50. package/dist/esm/models/HistoryAnalysisResponseResultsInnerStats.js +51 -0
  51. package/dist/esm/models/HistoryResponse.d.ts +74 -0
  52. package/dist/esm/models/HistoryResponse.js +72 -0
  53. package/dist/esm/models/MeanReversionResponse.d.ts +65 -0
  54. package/dist/esm/models/MeanReversionResponse.js +65 -0
  55. package/dist/esm/models/MeanReversionResponseResultsInner.d.ts +62 -0
  56. package/dist/esm/models/MeanReversionResponseResultsInner.js +61 -0
  57. package/dist/esm/models/PppAnalysisResponse.d.ts +79 -0
  58. package/dist/esm/models/PppAnalysisResponse.js +76 -0
  59. package/dist/esm/models/PppAnalysisResponseResultsInner.d.ts +89 -0
  60. package/dist/esm/models/PppAnalysisResponseResultsInner.js +74 -0
  61. package/dist/esm/models/RatesByBaseResponse.d.ts +67 -0
  62. package/dist/esm/models/RatesByBaseResponse.js +58 -0
  63. package/dist/esm/models/RatesByBaseResponsePpp.d.ts +46 -0
  64. package/dist/esm/models/RatesByBaseResponsePpp.js +51 -0
  65. package/dist/esm/models/RatesResponse.d.ts +67 -0
  66. package/dist/esm/models/RatesResponse.js +63 -0
  67. package/dist/esm/models/SafeHavenResponse.d.ts +72 -0
  68. package/dist/esm/models/SafeHavenResponse.js +70 -0
  69. package/dist/esm/models/SafeHavenResponseCrisis.d.ts +44 -0
  70. package/dist/esm/models/SafeHavenResponseCrisis.js +51 -0
  71. package/dist/esm/models/SafeHavenResponseResultsInner.d.ts +62 -0
  72. package/dist/esm/models/SafeHavenResponseResultsInner.js +61 -0
  73. package/dist/esm/models/VolatilityResponse.d.ts +106 -0
  74. package/dist/esm/models/VolatilityResponse.js +97 -0
  75. package/dist/esm/models/VolatilityResponseResultsInner.d.ts +50 -0
  76. package/dist/esm/models/VolatilityResponseResultsInner.js +53 -0
  77. package/dist/esm/models/index.d.ts +1322 -0
  78. package/dist/esm/models/index.js +123 -0
  79. package/dist/esm/runtime.d.ts +184 -0
  80. package/dist/esm/runtime.js +345 -0
  81. package/dist/index.d.ts +4 -0
  82. package/dist/index.js +24 -0
  83. package/dist/models/AiResponse.d.ts +50 -0
  84. package/dist/models/AiResponse.js +60 -0
  85. package/dist/models/ApiError.d.ts +33 -0
  86. package/dist/models/ApiError.js +51 -0
  87. package/dist/models/ApiErrorError.d.ts +44 -0
  88. package/dist/models/ApiErrorError.js +56 -0
  89. package/dist/models/ConvertResponse.d.ts +77 -0
  90. package/dist/models/ConvertResponse.js +71 -0
  91. package/dist/models/ConvertResponseResultsInner.d.ts +57 -0
  92. package/dist/models/ConvertResponseResultsInner.js +63 -0
  93. package/dist/models/ConvertResponseResultsInnerPpp.d.ts +62 -0
  94. package/dist/models/ConvertResponseResultsInnerPpp.js +70 -0
  95. package/dist/models/ConvertResponseResultsInnerPppAnyOf.d.ts +56 -0
  96. package/dist/models/ConvertResponseResultsInnerPppAnyOf.js +66 -0
  97. package/dist/models/ConvertResponseResultsInnerPppAnyOf1.d.ts +32 -0
  98. package/dist/models/ConvertResponseResultsInnerPppAnyOf1.js +50 -0
  99. package/dist/models/CorrelationResponse.d.ts +51 -0
  100. package/dist/models/CorrelationResponse.js +63 -0
  101. package/dist/models/CorrelationResponseResultsInner.d.ts +50 -0
  102. package/dist/models/CorrelationResponseResultsInner.js +60 -0
  103. package/dist/models/CountriesResponseInner.d.ts +44 -0
  104. package/dist/models/CountriesResponseInner.js +56 -0
  105. package/dist/models/CurrenciesResponseInner.d.ts +50 -0
  106. package/dist/models/CurrenciesResponseInner.js +62 -0
  107. package/dist/models/DrawdownResponse.d.ts +93 -0
  108. package/dist/models/DrawdownResponse.js +93 -0
  109. package/dist/models/DrawdownResponseResultsInner.d.ts +68 -0
  110. package/dist/models/DrawdownResponseResultsInner.js +64 -0
  111. package/dist/models/HistoryAnalysisResponse.d.ts +117 -0
  112. package/dist/models/HistoryAnalysisResponse.js +110 -0
  113. package/dist/models/HistoryAnalysisResponseResultsInner.d.ts +95 -0
  114. package/dist/models/HistoryAnalysisResponseResultsInner.js +83 -0
  115. package/dist/models/HistoryAnalysisResponseResultsInnerStats.d.ts +44 -0
  116. package/dist/models/HistoryAnalysisResponseResultsInnerStats.js +58 -0
  117. package/dist/models/HistoryResponse.d.ts +74 -0
  118. package/dist/models/HistoryResponse.js +80 -0
  119. package/dist/models/MeanReversionResponse.d.ts +65 -0
  120. package/dist/models/MeanReversionResponse.js +73 -0
  121. package/dist/models/MeanReversionResponseResultsInner.d.ts +62 -0
  122. package/dist/models/MeanReversionResponseResultsInner.js +68 -0
  123. package/dist/models/PppAnalysisResponse.d.ts +79 -0
  124. package/dist/models/PppAnalysisResponse.js +84 -0
  125. package/dist/models/PppAnalysisResponseResultsInner.d.ts +89 -0
  126. package/dist/models/PppAnalysisResponseResultsInner.js +81 -0
  127. package/dist/models/RatesByBaseResponse.d.ts +67 -0
  128. package/dist/models/RatesByBaseResponse.js +65 -0
  129. package/dist/models/RatesByBaseResponsePpp.d.ts +46 -0
  130. package/dist/models/RatesByBaseResponsePpp.js +58 -0
  131. package/dist/models/RatesResponse.d.ts +67 -0
  132. package/dist/models/RatesResponse.js +71 -0
  133. package/dist/models/SafeHavenResponse.d.ts +72 -0
  134. package/dist/models/SafeHavenResponse.js +78 -0
  135. package/dist/models/SafeHavenResponseCrisis.d.ts +44 -0
  136. package/dist/models/SafeHavenResponseCrisis.js +58 -0
  137. package/dist/models/SafeHavenResponseResultsInner.d.ts +62 -0
  138. package/dist/models/SafeHavenResponseResultsInner.js +68 -0
  139. package/dist/models/VolatilityResponse.d.ts +106 -0
  140. package/dist/models/VolatilityResponse.js +105 -0
  141. package/dist/models/VolatilityResponseResultsInner.d.ts +50 -0
  142. package/dist/models/VolatilityResponseResultsInner.js +60 -0
  143. package/dist/models/index.d.ts +1322 -0
  144. package/dist/models/index.js +126 -0
  145. package/dist/runtime.d.ts +184 -0
  146. package/dist/runtime.js +361 -0
  147. package/package.json +42 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CurrencyCore
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # CurrencyCore SDK for TypeScript
2
+
3
+ Official client for the [CurrencyCore](https://currency-core.com) API — currency
4
+ conversion, FX rates, PPP, and analytics. Runs in Node.js, the browser, and
5
+ React Native (uses the global `fetch`).
6
+
7
+ Generated from the CurrencyCore OpenAPI 3.1 spec with
8
+ [OpenAPI Generator](https://openapi-generator.tech) (`typescript-fetch`), plus a
9
+ thin hand-written `createClient` helper for API-key and version handling.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npm install @currencycore/sdk
15
+ ```
16
+
17
+ ## Quickstart
18
+
19
+ ```ts
20
+ import { createClient } from '@currencycore/sdk';
21
+
22
+ const api = createClient({ apiKey: 'cc_live_...' }); // or set CURRENCYCORE_API_KEY
23
+ const res = await api.convert({ from: 'USD', to: 'EUR', amount: 100 });
24
+ console.log(res.results[0]);
25
+ ```
26
+
27
+ Public reference endpoints need no key:
28
+
29
+ ```ts
30
+ const api = createClient();
31
+ const currencies = await api.currencies();
32
+ ```
33
+
34
+ ## API key
35
+
36
+ `createClient` resolves the key as `options.apiKey` → `CURRENCYCORE_API_KEY`.
37
+ In the browser or React Native, pass it explicitly — **never ship a secret key
38
+ in a client bundle**. Proxy requests through your backend or use a short-lived
39
+ token.
40
+
41
+ ## API version
42
+
43
+ The base URL is `https://api.currency-core.com/{version}` (default `v1`):
44
+
45
+ ```ts
46
+ createClient({ version: 'v1' });
47
+ createClient({ baseUrl: 'https://api.currency-core.com/v1' }); // full override
48
+ ```
49
+
50
+ ## Low-level client
51
+
52
+ ```ts
53
+ import { CurrencyCoreApi, Configuration } from '@currencycore/sdk';
54
+
55
+ const api = new CurrencyCoreApi(
56
+ new Configuration({ basePath: 'https://api.currency-core.com/v1', accessToken: 'cc_live_...' }),
57
+ );
58
+ ```
59
+
60
+ ## Regenerate
61
+
62
+ The committed `openapi.json` is the source of truth. After updating it:
63
+
64
+ ```bash
65
+ npm run generate && npm run build
66
+ ```
67
+
68
+ Hand-written files (`package.json`, `src/index.ts`, `src/client.ts`, this README)
69
+ are protected by `.openapi-generator-ignore`.
70
+
71
+ ## License
72
+
73
+ MIT
@@ -0,0 +1,297 @@
1
+ /**
2
+ * CurrencyCore API
3
+ * Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { AiResponse, ConvertResponse, CorrelationResponse, CountriesResponseInner, CurrenciesResponseInner, DrawdownResponse, HistoryAnalysisResponse, HistoryResponse, MeanReversionResponse, PppAnalysisResponse, RatesByBaseResponse, RatesResponse, SafeHavenResponse, VolatilityResponse } from '../models/index';
14
+ export interface AiRequest {
15
+ q: string;
16
+ }
17
+ export interface ConvertRequest {
18
+ from: string;
19
+ to: string;
20
+ amount?: number;
21
+ ppp?: boolean;
22
+ date?: string;
23
+ }
24
+ export interface CorrelationRequest {
25
+ currencies: string;
26
+ base?: string;
27
+ from?: string;
28
+ to?: string;
29
+ }
30
+ export interface DrawdownRequest {
31
+ currency?: string;
32
+ base?: string;
33
+ from?: string;
34
+ to?: string;
35
+ sort?: string;
36
+ universe?: string;
37
+ limit?: number;
38
+ }
39
+ export interface HistoryRequest {
40
+ currency: string;
41
+ from?: string;
42
+ to?: string;
43
+ base?: string;
44
+ interval?: string;
45
+ }
46
+ export interface HistoryAnalysisRequest {
47
+ base?: string;
48
+ currencies?: string;
49
+ from?: string;
50
+ to?: string;
51
+ period?: string;
52
+ sort?: string;
53
+ assetClass?: string;
54
+ limit?: number;
55
+ interval?: string;
56
+ stats?: boolean;
57
+ }
58
+ export interface MeanReversionRequest {
59
+ currencies?: string;
60
+ base?: string;
61
+ from?: string;
62
+ to?: string;
63
+ limit?: number;
64
+ }
65
+ export interface PppAnalysisRequest {
66
+ countries?: string;
67
+ from?: string;
68
+ to?: string;
69
+ period?: string;
70
+ sort?: string;
71
+ limit?: number;
72
+ stats?: boolean;
73
+ }
74
+ export interface RatesRequest {
75
+ date?: string;
76
+ }
77
+ export interface RatesByBaseRequest {
78
+ base: string;
79
+ date?: string;
80
+ }
81
+ export interface SafeHavenRequest {
82
+ currencies?: string;
83
+ base?: string;
84
+ from?: string;
85
+ to?: string;
86
+ limit?: number;
87
+ }
88
+ export interface VolatilityRequest {
89
+ currency?: string;
90
+ base?: string;
91
+ from?: string;
92
+ to?: string;
93
+ sort?: string;
94
+ universe?: string;
95
+ limit?: number;
96
+ }
97
+ /**
98
+ *
99
+ */
100
+ export declare class CurrencyCoreApi extends runtime.BaseAPI {
101
+ /**
102
+ * Creates request options for ai without sending the request
103
+ */
104
+ aiRequestOpts(requestParameters: AiRequest): Promise<runtime.RequestOpts>;
105
+ /**
106
+ * Ask a natural-language currency question; the model answers using live rates.
107
+ * AI
108
+ */
109
+ aiRaw(requestParameters: AiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiResponse>>;
110
+ /**
111
+ * Ask a natural-language currency question; the model answers using live rates.
112
+ * AI
113
+ */
114
+ ai(requestParameters: AiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiResponse>;
115
+ /**
116
+ * Creates request options for convert without sending the request
117
+ */
118
+ convertRequestOpts(requestParameters: ConvertRequest): Promise<runtime.RequestOpts>;
119
+ /**
120
+ * Convert an amount between currencies, optionally PPP-adjusted.
121
+ * Convert
122
+ */
123
+ convertRaw(requestParameters: ConvertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConvertResponse>>;
124
+ /**
125
+ * Convert an amount between currencies, optionally PPP-adjusted.
126
+ * Convert
127
+ */
128
+ convert(requestParameters: ConvertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConvertResponse>;
129
+ /**
130
+ * Creates request options for correlation without sending the request
131
+ */
132
+ correlationRequestOpts(requestParameters: CorrelationRequest): Promise<runtime.RequestOpts>;
133
+ /**
134
+ * Correlation of each currency\'s daily returns with a base currency\'s, over a window. Growth plan or higher.
135
+ * Correlation
136
+ */
137
+ correlationRaw(requestParameters: CorrelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CorrelationResponse>>;
138
+ /**
139
+ * Correlation of each currency\'s daily returns with a base currency\'s, over a window. Growth plan or higher.
140
+ * Correlation
141
+ */
142
+ correlation(requestParameters: CorrelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CorrelationResponse>;
143
+ /**
144
+ * Creates request options for countries without sending the request
145
+ */
146
+ countriesRequestOpts(): Promise<runtime.RequestOpts>;
147
+ /**
148
+ * The supported countries and their official currencies. Public, no key needed.
149
+ * Countries
150
+ */
151
+ countriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CountriesResponseInner>>>;
152
+ /**
153
+ * The supported countries and their official currencies. Public, no key needed.
154
+ * Countries
155
+ */
156
+ countries(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CountriesResponseInner>>;
157
+ /**
158
+ * Creates request options for currencies without sending the request
159
+ */
160
+ currenciesRequestOpts(): Promise<runtime.RequestOpts>;
161
+ /**
162
+ * The full list of supported ISO 4217 currencies. Use it to resolve a name or symbol to its code, or to check whether a currency is supported (so a missing one fails clearly, not silently). Public, no key needed.
163
+ * Currencies
164
+ */
165
+ currenciesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CurrenciesResponseInner>>>;
166
+ /**
167
+ * The full list of supported ISO 4217 currencies. Use it to resolve a name or symbol to its code, or to check whether a currency is supported (so a missing one fails clearly, not silently). Public, no key needed.
168
+ * Currencies
169
+ */
170
+ currencies(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CurrenciesResponseInner>>;
171
+ /**
172
+ * Creates request options for drawdown without sending the request
173
+ */
174
+ drawdownRequestOpts(requestParameters: DrawdownRequest): Promise<runtime.RequestOpts>;
175
+ /**
176
+ * Maximum peak-to-trough decline vs a base (with peak/trough/recovery), or a drawdown ranking. Growth plan or higher.
177
+ * Drawdown
178
+ */
179
+ drawdownRaw(requestParameters: DrawdownRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DrawdownResponse>>;
180
+ /**
181
+ * Maximum peak-to-trough decline vs a base (with peak/trough/recovery), or a drawdown ranking. Growth plan or higher.
182
+ * Drawdown
183
+ */
184
+ drawdown(requestParameters?: DrawdownRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DrawdownResponse>;
185
+ /**
186
+ * Creates request options for history without sending the request
187
+ */
188
+ historyRequestOpts(requestParameters: HistoryRequest): Promise<runtime.RequestOpts>;
189
+ /**
190
+ * A single currency\'s daily rate time series over a date range. Growth plan or higher.
191
+ * History
192
+ */
193
+ historyRaw(requestParameters: HistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HistoryResponse>>;
194
+ /**
195
+ * A single currency\'s daily rate time series over a date range. Growth plan or higher.
196
+ * History
197
+ */
198
+ history(requestParameters: HistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HistoryResponse>;
199
+ /**
200
+ * Creates request options for historyAnalysis without sending the request
201
+ */
202
+ historyAnalysisRequestOpts(requestParameters: HistoryAnalysisRequest): Promise<runtime.RequestOpts>;
203
+ /**
204
+ * Trends, comparisons & \'movers\': % change, strength, and min/max/avg over a window. Growth plan or higher.
205
+ * History analysis
206
+ */
207
+ historyAnalysisRaw(requestParameters: HistoryAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HistoryAnalysisResponse>>;
208
+ /**
209
+ * Trends, comparisons & \'movers\': % change, strength, and min/max/avg over a window. Growth plan or higher.
210
+ * History analysis
211
+ */
212
+ historyAnalysis(requestParameters?: HistoryAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HistoryAnalysisResponse>;
213
+ /**
214
+ * Creates request options for meanReversion without sending the request
215
+ */
216
+ meanReversionRequestOpts(requestParameters: MeanReversionRequest): Promise<runtime.RequestOpts>;
217
+ /**
218
+ * Ranks currencies by how strongly they revert to their mean (crossing frequency + reversion half-life). Growth plan or higher.
219
+ * Mean reversion
220
+ */
221
+ meanReversionRaw(requestParameters: MeanReversionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeanReversionResponse>>;
222
+ /**
223
+ * Ranks currencies by how strongly they revert to their mean (crossing frequency + reversion half-life). Growth plan or higher.
224
+ * Mean reversion
225
+ */
226
+ meanReversion(requestParameters?: MeanReversionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeanReversionResponse>;
227
+ /**
228
+ * Creates request options for pppAnalysis without sending the request
229
+ */
230
+ pppAnalysisRequestOpts(requestParameters: PppAnalysisRequest): Promise<runtime.RequestOpts>;
231
+ /**
232
+ * PPP over time: how a country\'s purchasing-power-parity factor changed, comparing countries, or \'movers\'. Growth plan or higher.
233
+ * PPP analysis
234
+ */
235
+ pppAnalysisRaw(requestParameters: PppAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PppAnalysisResponse>>;
236
+ /**
237
+ * PPP over time: how a country\'s purchasing-power-parity factor changed, comparing countries, or \'movers\'. Growth plan or higher.
238
+ * PPP analysis
239
+ */
240
+ pppAnalysis(requestParameters?: PppAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PppAnalysisResponse>;
241
+ /**
242
+ * Creates request options for rates without sending the request
243
+ */
244
+ ratesRequestOpts(requestParameters: RatesRequest): Promise<runtime.RequestOpts>;
245
+ /**
246
+ * The full exchange-rate snapshot for a date (USD base).
247
+ * Rates
248
+ */
249
+ ratesRaw(requestParameters: RatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RatesResponse>>;
250
+ /**
251
+ * The full exchange-rate snapshot for a date (USD base).
252
+ * Rates
253
+ */
254
+ rates(requestParameters?: RatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RatesResponse>;
255
+ /**
256
+ * Creates request options for ratesByBase without sending the request
257
+ */
258
+ ratesByBaseRequestOpts(requestParameters: RatesByBaseRequest): Promise<runtime.RequestOpts>;
259
+ /**
260
+ * The same snapshot re-expressed against any base currency.
261
+ * Rates by base
262
+ */
263
+ ratesByBaseRaw(requestParameters: RatesByBaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RatesByBaseResponse>>;
264
+ /**
265
+ * The same snapshot re-expressed against any base currency.
266
+ * Rates by base
267
+ */
268
+ ratesByBase(requestParameters: RatesByBaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RatesByBaseResponse>;
269
+ /**
270
+ * Creates request options for safeHaven without sending the request
271
+ */
272
+ safeHavenRequestOpts(requestParameters: SafeHavenRequest): Promise<runtime.RequestOpts>;
273
+ /**
274
+ * Ranks currencies by a composite safe-haven score (low volatility + shallow drawdown + 2008-crisis resilience). Growth plan or higher.
275
+ * Safe haven
276
+ */
277
+ safeHavenRaw(requestParameters: SafeHavenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SafeHavenResponse>>;
278
+ /**
279
+ * Ranks currencies by a composite safe-haven score (low volatility + shallow drawdown + 2008-crisis resilience). Growth plan or higher.
280
+ * Safe haven
281
+ */
282
+ safeHaven(requestParameters?: SafeHavenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SafeHavenResponse>;
283
+ /**
284
+ * Creates request options for volatility without sending the request
285
+ */
286
+ volatilityRequestOpts(requestParameters: VolatilityRequest): Promise<runtime.RequestOpts>;
287
+ /**
288
+ * Annualized volatility of a currency vs a base, or a stability ranking of the liquid currencies. Growth plan or higher.
289
+ * Volatility
290
+ */
291
+ volatilityRaw(requestParameters: VolatilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VolatilityResponse>>;
292
+ /**
293
+ * Annualized volatility of a currency vs a base, or a stability ranking of the liquid currencies. Growth plan or higher.
294
+ * Volatility
295
+ */
296
+ volatility(requestParameters?: VolatilityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VolatilityResponse>;
297
+ }