@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.
- package/LICENSE +21 -0
- package/README.md +73 -0
- package/dist/apis/CurrencyCoreApi.d.ts +297 -0
- package/dist/apis/CurrencyCoreApi.js +827 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/client.d.ts +21 -0
- package/dist/client.js +23 -0
- package/dist/esm/apis/CurrencyCoreApi.d.ts +297 -0
- package/dist/esm/apis/CurrencyCoreApi.js +823 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/client.d.ts +21 -0
- package/dist/esm/client.js +20 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/models/AiResponse.d.ts +50 -0
- package/dist/esm/models/AiResponse.js +53 -0
- package/dist/esm/models/ApiError.d.ts +33 -0
- package/dist/esm/models/ApiError.js +44 -0
- package/dist/esm/models/ApiErrorError.d.ts +44 -0
- package/dist/esm/models/ApiErrorError.js +49 -0
- package/dist/esm/models/ConvertResponse.d.ts +77 -0
- package/dist/esm/models/ConvertResponse.js +64 -0
- package/dist/esm/models/ConvertResponseResultsInner.d.ts +57 -0
- package/dist/esm/models/ConvertResponseResultsInner.js +56 -0
- package/dist/esm/models/ConvertResponseResultsInnerPpp.d.ts +62 -0
- package/dist/esm/models/ConvertResponseResultsInnerPpp.js +63 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf.d.ts +56 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf.js +59 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf1.d.ts +32 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf1.js +43 -0
- package/dist/esm/models/CorrelationResponse.d.ts +51 -0
- package/dist/esm/models/CorrelationResponse.js +56 -0
- package/dist/esm/models/CorrelationResponseResultsInner.d.ts +50 -0
- package/dist/esm/models/CorrelationResponseResultsInner.js +53 -0
- package/dist/esm/models/CountriesResponseInner.d.ts +44 -0
- package/dist/esm/models/CountriesResponseInner.js +49 -0
- package/dist/esm/models/CurrenciesResponseInner.d.ts +50 -0
- package/dist/esm/models/CurrenciesResponseInner.js +55 -0
- package/dist/esm/models/DrawdownResponse.d.ts +93 -0
- package/dist/esm/models/DrawdownResponse.js +85 -0
- package/dist/esm/models/DrawdownResponseResultsInner.d.ts +68 -0
- package/dist/esm/models/DrawdownResponseResultsInner.js +57 -0
- package/dist/esm/models/HistoryAnalysisResponse.d.ts +117 -0
- package/dist/esm/models/HistoryAnalysisResponse.js +102 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInner.d.ts +95 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInner.js +76 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInnerStats.d.ts +44 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInnerStats.js +51 -0
- package/dist/esm/models/HistoryResponse.d.ts +74 -0
- package/dist/esm/models/HistoryResponse.js +72 -0
- package/dist/esm/models/MeanReversionResponse.d.ts +65 -0
- package/dist/esm/models/MeanReversionResponse.js +65 -0
- package/dist/esm/models/MeanReversionResponseResultsInner.d.ts +62 -0
- package/dist/esm/models/MeanReversionResponseResultsInner.js +61 -0
- package/dist/esm/models/PppAnalysisResponse.d.ts +79 -0
- package/dist/esm/models/PppAnalysisResponse.js +76 -0
- package/dist/esm/models/PppAnalysisResponseResultsInner.d.ts +89 -0
- package/dist/esm/models/PppAnalysisResponseResultsInner.js +74 -0
- package/dist/esm/models/RatesByBaseResponse.d.ts +67 -0
- package/dist/esm/models/RatesByBaseResponse.js +58 -0
- package/dist/esm/models/RatesByBaseResponsePpp.d.ts +46 -0
- package/dist/esm/models/RatesByBaseResponsePpp.js +51 -0
- package/dist/esm/models/RatesResponse.d.ts +67 -0
- package/dist/esm/models/RatesResponse.js +63 -0
- package/dist/esm/models/SafeHavenResponse.d.ts +72 -0
- package/dist/esm/models/SafeHavenResponse.js +70 -0
- package/dist/esm/models/SafeHavenResponseCrisis.d.ts +44 -0
- package/dist/esm/models/SafeHavenResponseCrisis.js +51 -0
- package/dist/esm/models/SafeHavenResponseResultsInner.d.ts +62 -0
- package/dist/esm/models/SafeHavenResponseResultsInner.js +61 -0
- package/dist/esm/models/VolatilityResponse.d.ts +106 -0
- package/dist/esm/models/VolatilityResponse.js +97 -0
- package/dist/esm/models/VolatilityResponseResultsInner.d.ts +50 -0
- package/dist/esm/models/VolatilityResponseResultsInner.js +53 -0
- package/dist/esm/models/index.d.ts +1322 -0
- package/dist/esm/models/index.js +123 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +345 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +24 -0
- package/dist/models/AiResponse.d.ts +50 -0
- package/dist/models/AiResponse.js +60 -0
- package/dist/models/ApiError.d.ts +33 -0
- package/dist/models/ApiError.js +51 -0
- package/dist/models/ApiErrorError.d.ts +44 -0
- package/dist/models/ApiErrorError.js +56 -0
- package/dist/models/ConvertResponse.d.ts +77 -0
- package/dist/models/ConvertResponse.js +71 -0
- package/dist/models/ConvertResponseResultsInner.d.ts +57 -0
- package/dist/models/ConvertResponseResultsInner.js +63 -0
- package/dist/models/ConvertResponseResultsInnerPpp.d.ts +62 -0
- package/dist/models/ConvertResponseResultsInnerPpp.js +70 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf.d.ts +56 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf.js +66 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf1.d.ts +32 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf1.js +50 -0
- package/dist/models/CorrelationResponse.d.ts +51 -0
- package/dist/models/CorrelationResponse.js +63 -0
- package/dist/models/CorrelationResponseResultsInner.d.ts +50 -0
- package/dist/models/CorrelationResponseResultsInner.js +60 -0
- package/dist/models/CountriesResponseInner.d.ts +44 -0
- package/dist/models/CountriesResponseInner.js +56 -0
- package/dist/models/CurrenciesResponseInner.d.ts +50 -0
- package/dist/models/CurrenciesResponseInner.js +62 -0
- package/dist/models/DrawdownResponse.d.ts +93 -0
- package/dist/models/DrawdownResponse.js +93 -0
- package/dist/models/DrawdownResponseResultsInner.d.ts +68 -0
- package/dist/models/DrawdownResponseResultsInner.js +64 -0
- package/dist/models/HistoryAnalysisResponse.d.ts +117 -0
- package/dist/models/HistoryAnalysisResponse.js +110 -0
- package/dist/models/HistoryAnalysisResponseResultsInner.d.ts +95 -0
- package/dist/models/HistoryAnalysisResponseResultsInner.js +83 -0
- package/dist/models/HistoryAnalysisResponseResultsInnerStats.d.ts +44 -0
- package/dist/models/HistoryAnalysisResponseResultsInnerStats.js +58 -0
- package/dist/models/HistoryResponse.d.ts +74 -0
- package/dist/models/HistoryResponse.js +80 -0
- package/dist/models/MeanReversionResponse.d.ts +65 -0
- package/dist/models/MeanReversionResponse.js +73 -0
- package/dist/models/MeanReversionResponseResultsInner.d.ts +62 -0
- package/dist/models/MeanReversionResponseResultsInner.js +68 -0
- package/dist/models/PppAnalysisResponse.d.ts +79 -0
- package/dist/models/PppAnalysisResponse.js +84 -0
- package/dist/models/PppAnalysisResponseResultsInner.d.ts +89 -0
- package/dist/models/PppAnalysisResponseResultsInner.js +81 -0
- package/dist/models/RatesByBaseResponse.d.ts +67 -0
- package/dist/models/RatesByBaseResponse.js +65 -0
- package/dist/models/RatesByBaseResponsePpp.d.ts +46 -0
- package/dist/models/RatesByBaseResponsePpp.js +58 -0
- package/dist/models/RatesResponse.d.ts +67 -0
- package/dist/models/RatesResponse.js +71 -0
- package/dist/models/SafeHavenResponse.d.ts +72 -0
- package/dist/models/SafeHavenResponse.js +78 -0
- package/dist/models/SafeHavenResponseCrisis.d.ts +44 -0
- package/dist/models/SafeHavenResponseCrisis.js +58 -0
- package/dist/models/SafeHavenResponseResultsInner.d.ts +62 -0
- package/dist/models/SafeHavenResponseResultsInner.js +68 -0
- package/dist/models/VolatilityResponse.d.ts +106 -0
- package/dist/models/VolatilityResponse.js +105 -0
- package/dist/models/VolatilityResponseResultsInner.d.ts +50 -0
- package/dist/models/VolatilityResponseResultsInner.js +60 -0
- package/dist/models/index.d.ts +1322 -0
- package/dist/models/index.js +126 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +361 -0
- package/package.json +42 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CurrencyCoreApi';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./CurrencyCoreApi"), exports);
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CurrencyCoreApi } from './apis';
|
|
2
|
+
export interface CreateClientOptions {
|
|
3
|
+
/**
|
|
4
|
+
* API key (e.g. `cc_live_...`). Falls back to the `CURRENCYCORE_API_KEY`
|
|
5
|
+
* environment variable on Node. Omit it for the public reference endpoints
|
|
6
|
+
* (`countries`, `currencies`).
|
|
7
|
+
*/
|
|
8
|
+
apiKey?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Full base URL override. Falls back to `CURRENCYCORE_BASE_URL`, otherwise
|
|
11
|
+
* the public host with the chosen `version`.
|
|
12
|
+
*/
|
|
13
|
+
baseUrl?: string;
|
|
14
|
+
/** API version segment of the default base URL. Defaults to `v1`. */
|
|
15
|
+
version?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Build a configured {@link CurrencyCoreApi}. Resolves the API key and base URL
|
|
19
|
+
* from explicit options first, then the environment.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createClient(options?: CreateClientOptions): CurrencyCoreApi;
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createClient = createClient;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
const runtime_1 = require("./runtime");
|
|
7
|
+
const apis_1 = require("./apis");
|
|
8
|
+
const DEFAULT_HOST = 'https://api.currency-core.com';
|
|
9
|
+
function fromEnv(name) {
|
|
10
|
+
// Guarded: `process` does not exist in the browser / React Native.
|
|
11
|
+
return typeof process !== 'undefined' && process.env ? process.env[name] : undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Build a configured {@link CurrencyCoreApi}. Resolves the API key and base URL
|
|
15
|
+
* from explicit options first, then the environment.
|
|
16
|
+
*/
|
|
17
|
+
function createClient(options = {}) {
|
|
18
|
+
var _a, _b, _c, _d;
|
|
19
|
+
const apiKey = (_a = options.apiKey) !== null && _a !== void 0 ? _a : fromEnv('CURRENCYCORE_API_KEY');
|
|
20
|
+
const version = (_b = options.version) !== null && _b !== void 0 ? _b : 'v1';
|
|
21
|
+
const basePath = (_d = (_c = options.baseUrl) !== null && _c !== void 0 ? _c : fromEnv('CURRENCYCORE_BASE_URL')) !== null && _d !== void 0 ? _d : `${DEFAULT_HOST}/${version}`;
|
|
22
|
+
return new apis_1.CurrencyCoreApi(new runtime_1.Configuration({ basePath, accessToken: apiKey }));
|
|
23
|
+
}
|
|
@@ -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
|
+
}
|