@orbis-systems/orbis-api-clients 0.4.3 → 0.4.5
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/dist/aesmidas/index.d.ts +68 -89
- package/dist/aesmidas/index.d.ts.map +1 -1
- package/dist/aesmidas/index.esm.js +2726 -1
- package/dist/aesmidas/index.esm.js.map +1 -1
- package/dist/aesmidas/index.js +2731 -1
- package/dist/aesmidas/index.js.map +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +253 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +276 -1
- package/dist/index.js.map +1 -1
- package/dist/insight/index.d.ts +9 -7
- package/dist/insight/index.d.ts.map +1 -1
- package/dist/insight/index.esm.js +3388 -1
- package/dist/insight/index.esm.js.map +1 -1
- package/dist/insight/index.js +3393 -1
- package/dist/insight/index.js.map +1 -1
- package/dist/middleware/index.d.ts +9 -7
- package/dist/middleware/index.d.ts.map +1 -1
- package/dist/middleware/index.esm.js +1062 -1
- package/dist/middleware/index.esm.js.map +1 -1
- package/dist/middleware/index.js +1067 -1
- package/dist/middleware/index.js.map +1 -1
- package/dist/orbis/index.d.ts +77 -58
- package/dist/orbis/index.d.ts.map +1 -1
- package/dist/orbis/index.esm.js +6862 -1
- package/dist/orbis/index.esm.js.map +1 -1
- package/dist/orbis/index.js +6866 -1
- package/dist/orbis/index.js.map +1 -1
- package/dist/uma/index.d.ts +31 -14
- package/dist/uma/index.d.ts.map +1 -1
- package/dist/uma/index.esm.js +3706 -1
- package/dist/uma/index.esm.js.map +1 -1
- package/dist/uma/index.js +3711 -1
- package/dist/uma/index.js.map +1 -1
- package/package.json +137 -141
package/dist/aesmidas/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosError, AxiosInstance, AxiosRequestConfig, HttpStatusCode } from "axios";
|
|
2
2
|
interface BaseClientConfig<HandleError extends boolean = boolean> {
|
|
3
3
|
baseUrl: string;
|
|
4
|
-
|
|
4
|
+
handleError?: HandleError;
|
|
5
5
|
storage?: Storage;
|
|
6
6
|
defaultHeaders?: Record<string, string>;
|
|
7
7
|
defaultSecure?: boolean;
|
|
@@ -18,6 +18,7 @@ enum ContentType {
|
|
|
18
18
|
type RequestConfig<Body = unknown> = AxiosRequestConfig<Body> & {
|
|
19
19
|
secure?: boolean;
|
|
20
20
|
contentType?: ContentType;
|
|
21
|
+
handleError?: boolean;
|
|
21
22
|
};
|
|
22
23
|
type ResponseStatus = {
|
|
23
24
|
status: HttpStatusCode | -1;
|
|
@@ -52,7 +53,7 @@ declare abstract class BaseClient<HandleError extends boolean = boolean, AuthDat
|
|
|
52
53
|
setAuthData(data: AuthData | null): void;
|
|
53
54
|
getAuthData(): AuthData | null;
|
|
54
55
|
getConfig(): BaseClientConfig<HandleError>;
|
|
55
|
-
abstract prepareAuthRequestConfig(): Pick<RequestConfig<any>, 'headers' | 'data' | 'params'
|
|
56
|
+
protected abstract prepareAuthRequestConfig(): Promise<Pick<RequestConfig<any>, 'headers' | 'data' | 'params'>>;
|
|
56
57
|
}
|
|
57
58
|
declare class BaseApi<HandleError extends boolean = boolean, ApiClient extends BaseClient<HandleError> = BaseClient<HandleError>> {
|
|
58
59
|
protected readonly apiClient: ApiClient;
|
|
@@ -61,18 +62,19 @@ declare class BaseApi<HandleError extends boolean = boolean, ApiClient extends B
|
|
|
61
62
|
}
|
|
62
63
|
interface JwtClientConfig<HandleError extends boolean = boolean> extends BaseClientConfig<HandleError> {
|
|
63
64
|
authSchema?: string;
|
|
65
|
+
autoRenewToken?: boolean;
|
|
64
66
|
}
|
|
65
67
|
interface JwtAuthData {
|
|
66
68
|
accessToken: string;
|
|
67
|
-
refreshToken
|
|
69
|
+
refreshToken?: string;
|
|
68
70
|
}
|
|
69
|
-
declare class JwtClient<HandleError extends boolean = boolean> extends BaseClient<HandleError,
|
|
71
|
+
declare class JwtClient<HandleError extends boolean = boolean, AuthData extends JwtAuthData = JwtAuthData> extends BaseClient<HandleError, AuthData> {
|
|
70
72
|
protected readonly config: JwtClientConfig<HandleError>;
|
|
71
73
|
constructor(config: JwtClientConfig<HandleError>);
|
|
72
74
|
getConfig(): JwtClientConfig<HandleError>;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
setRenewTokenCallback(renewTokenCallback: () => Promise<AuthData>): void;
|
|
76
|
+
protected prepareAuthRequestConfig(): Promise<Pick<RequestConfig<any>, 'headers' | 'data' | 'params'>>;
|
|
77
|
+
renewToken(): Promise<void>;
|
|
76
78
|
}
|
|
77
79
|
export interface AesMidasActionLog {
|
|
78
80
|
id?: string | null;
|
|
@@ -1059,51 +1061,57 @@ export interface AesMidasOptionChain {
|
|
|
1059
1061
|
vol?: number;
|
|
1060
1062
|
/** @format int32 */
|
|
1061
1063
|
open_inst?: number;
|
|
1064
|
+
/** @format double */
|
|
1065
|
+
strike?: number;
|
|
1066
|
+
expire?: string | null;
|
|
1067
|
+
type?: string | null;
|
|
1062
1068
|
data_source?: string | null;
|
|
1063
1069
|
}
|
|
1064
|
-
export interface
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1070
|
+
export interface AesMidasOptionChainDates {
|
|
1071
|
+
dates_dictionary?: Record<string, string | null>;
|
|
1072
|
+
}
|
|
1073
|
+
export interface AesMidasOptionChainDatesReformat {
|
|
1074
|
+
quarterlys?: string[] | null;
|
|
1075
|
+
weeklies?: string[] | null;
|
|
1076
|
+
monthlies?: string[] | null;
|
|
1077
|
+
leaps?: string[] | null;
|
|
1078
|
+
dates?: string[] | null;
|
|
1079
|
+
first?: string | null;
|
|
1074
1080
|
}
|
|
1075
1081
|
export interface AesMidasOptionGreek {
|
|
1076
1082
|
/** @format double */
|
|
1077
|
-
delta?: number;
|
|
1083
|
+
delta?: number | null;
|
|
1078
1084
|
/** @format double */
|
|
1079
|
-
gamma?: number;
|
|
1085
|
+
gamma?: number | null;
|
|
1080
1086
|
/** @format double */
|
|
1081
|
-
theta?: number;
|
|
1087
|
+
theta?: number | null;
|
|
1082
1088
|
/** @format double */
|
|
1083
|
-
vega?: number;
|
|
1089
|
+
vega?: number | null;
|
|
1084
1090
|
/** @format double */
|
|
1085
|
-
rho?: number;
|
|
1091
|
+
rho?: number | null;
|
|
1086
1092
|
/** @format double */
|
|
1087
|
-
implied_volatility?: number;
|
|
1093
|
+
implied_volatility?: number | null;
|
|
1088
1094
|
/** @format double */
|
|
1089
|
-
risk_free_rate?: number;
|
|
1095
|
+
risk_free_rate?: number | null;
|
|
1090
1096
|
not_found?: boolean;
|
|
1091
1097
|
}
|
|
1092
1098
|
export interface AesMidasOptionGreekReformat {
|
|
1093
1099
|
/** @format double */
|
|
1094
|
-
delta?: number;
|
|
1100
|
+
delta?: number | null;
|
|
1095
1101
|
/** @format double */
|
|
1096
|
-
gamma?: number;
|
|
1102
|
+
gamma?: number | null;
|
|
1097
1103
|
/** @format double */
|
|
1098
|
-
theta?: number;
|
|
1104
|
+
theta?: number | null;
|
|
1099
1105
|
/** @format double */
|
|
1100
|
-
vega?: number;
|
|
1106
|
+
vega?: number | null;
|
|
1101
1107
|
/** @format double */
|
|
1102
|
-
rho?: number;
|
|
1108
|
+
rho?: number | null;
|
|
1103
1109
|
not_found?: boolean;
|
|
1104
1110
|
}
|
|
1105
1111
|
export interface AesMidasOptionL1 {
|
|
1106
1112
|
symbol?: string | null;
|
|
1113
|
+
not_found?: boolean;
|
|
1114
|
+
exch?: string | null;
|
|
1107
1115
|
bid_exch?: string | null;
|
|
1108
1116
|
/** @format double */
|
|
1109
1117
|
bid_px?: number;
|
|
@@ -1136,6 +1144,8 @@ export interface AesMidasOptionL1 {
|
|
|
1136
1144
|
strike?: number;
|
|
1137
1145
|
/** @format int32 */
|
|
1138
1146
|
prime_share?: number;
|
|
1147
|
+
prime_exch?: string | null;
|
|
1148
|
+
prime_exch_name?: string | null;
|
|
1139
1149
|
expire?: string | null;
|
|
1140
1150
|
data_source?: string | null;
|
|
1141
1151
|
}
|
|
@@ -2727,36 +2737,14 @@ export class Quote<HandleError extends boolean = boolean> {
|
|
|
2727
2737
|
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<AesMidasTop20[], HandleError>>;
|
|
2728
2738
|
/**
|
|
2729
2739
|
* @tags Quote
|
|
2730
|
-
* @name
|
|
2731
|
-
* @summary Query Option Chain
|
|
2732
|
-
* @request GET:/api/quote/option-chain
|
|
2740
|
+
* @name GetOptionChainDates
|
|
2741
|
+
* @summary Query Option Chain dates - All users - available in Microservice
|
|
2742
|
+
* @request GET:/api/quote/option-chain-dates
|
|
2733
2743
|
* @secure
|
|
2734
2744
|
*/
|
|
2735
|
-
|
|
2745
|
+
getOptionChainDates(query?: {
|
|
2736
2746
|
/** Allow one underlying symbol */
|
|
2737
|
-
|
|
2738
|
-
/**
|
|
2739
|
-
* optional
|
|
2740
|
-
* @format double
|
|
2741
|
-
* @default -1
|
|
2742
|
-
*/
|
|
2743
|
-
strike_low?: number;
|
|
2744
|
-
/**
|
|
2745
|
-
* optional
|
|
2746
|
-
* @format double
|
|
2747
|
-
* @default -1
|
|
2748
|
-
*/
|
|
2749
|
-
strike_high?: number;
|
|
2750
|
-
/**
|
|
2751
|
-
* optional
|
|
2752
|
-
* @format date-time
|
|
2753
|
-
*/
|
|
2754
|
-
'start_date(UTC)'?: string;
|
|
2755
|
-
/**
|
|
2756
|
-
* optional
|
|
2757
|
-
* @format date-time
|
|
2758
|
-
*/
|
|
2759
|
-
'end_date(UTC)'?: string;
|
|
2747
|
+
symbol?: string;
|
|
2760
2748
|
/**
|
|
2761
2749
|
* Optional. Default is false. If true, response will be camel case
|
|
2762
2750
|
* @default false
|
|
@@ -2769,39 +2757,19 @@ export class Quote<HandleError extends boolean = boolean> {
|
|
|
2769
2757
|
user_name?: string;
|
|
2770
2758
|
/** @default "" */
|
|
2771
2759
|
platform?: string;
|
|
2772
|
-
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<
|
|
2760
|
+
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<AesMidasOptionChainDates[], HandleError>>;
|
|
2773
2761
|
/**
|
|
2774
2762
|
* @tags Quote
|
|
2775
|
-
* @name
|
|
2763
|
+
* @name GetOptionChain
|
|
2776
2764
|
* @summary Query Option Chain data - All users - available in Microservice
|
|
2777
|
-
* @request GET:/api/quote/option-chain
|
|
2765
|
+
* @request GET:/api/quote/option-chain
|
|
2778
2766
|
* @secure
|
|
2779
2767
|
*/
|
|
2780
|
-
|
|
2768
|
+
getOptionChain(query?: {
|
|
2781
2769
|
/** Allow one underlying symbol */
|
|
2782
2770
|
underlying?: string;
|
|
2783
|
-
/**
|
|
2784
|
-
|
|
2785
|
-
* @format double
|
|
2786
|
-
* @default -1
|
|
2787
|
-
*/
|
|
2788
|
-
strike_low?: number;
|
|
2789
|
-
/**
|
|
2790
|
-
* optional
|
|
2791
|
-
* @format double
|
|
2792
|
-
* @default -1
|
|
2793
|
-
*/
|
|
2794
|
-
strike_high?: number;
|
|
2795
|
-
/**
|
|
2796
|
-
* optional
|
|
2797
|
-
* @format date-time
|
|
2798
|
-
*/
|
|
2799
|
-
'start_date(UTC)'?: string;
|
|
2800
|
-
/**
|
|
2801
|
-
* optional
|
|
2802
|
-
* @format date-time
|
|
2803
|
-
*/
|
|
2804
|
-
'end_date(UTC)'?: string;
|
|
2771
|
+
/** allow one date, format YYYY-MM-DD */
|
|
2772
|
+
date?: string;
|
|
2805
2773
|
/**
|
|
2806
2774
|
* Optional. Default is false. If true, response will be camel case
|
|
2807
2775
|
* @default false
|
|
@@ -2814,7 +2782,7 @@ export class Quote<HandleError extends boolean = boolean> {
|
|
|
2814
2782
|
user_name?: string;
|
|
2815
2783
|
/** @default "" */
|
|
2816
2784
|
platform?: string;
|
|
2817
|
-
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<
|
|
2785
|
+
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<AesMidasOptionChain[], HandleError>>;
|
|
2818
2786
|
/**
|
|
2819
2787
|
* @tags Quote
|
|
2820
2788
|
* @name GetOptionLevel1
|
|
@@ -2823,8 +2791,8 @@ export class Quote<HandleError extends boolean = boolean> {
|
|
|
2823
2791
|
* @secure
|
|
2824
2792
|
*/
|
|
2825
2793
|
getOptionLevel1(query?: {
|
|
2826
|
-
/** Allow
|
|
2827
|
-
|
|
2794
|
+
/** Allow multiple option symbols, separated by ','. Format {Underlying Symbol}yymmdd{C/P}{Strike price*1000, total 8 digits} */
|
|
2795
|
+
option_names?: string;
|
|
2828
2796
|
/**
|
|
2829
2797
|
* Optional. Default is false. If true, response will be camel case
|
|
2830
2798
|
* @default false
|
|
@@ -2837,7 +2805,7 @@ export class Quote<HandleError extends boolean = boolean> {
|
|
|
2837
2805
|
user_name?: string;
|
|
2838
2806
|
/** @default "" */
|
|
2839
2807
|
platform?: string;
|
|
2840
|
-
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<AesMidasOptionL1, HandleError>>;
|
|
2808
|
+
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<AesMidasOptionL1[], HandleError>>;
|
|
2841
2809
|
/**
|
|
2842
2810
|
* @tags Quote
|
|
2843
2811
|
* @name GetOptionLevel1WithGreek
|
|
@@ -2846,8 +2814,8 @@ export class Quote<HandleError extends boolean = boolean> {
|
|
|
2846
2814
|
* @secure
|
|
2847
2815
|
*/
|
|
2848
2816
|
getOptionLevel1WithGreek(query?: {
|
|
2849
|
-
/** Allow
|
|
2850
|
-
|
|
2817
|
+
/** Allow multiple symbols, separated by ','. Format {Underlying Symbol}yymmdd{C/P}{Strike price*1000, total 8 digits} */
|
|
2818
|
+
option_names?: string;
|
|
2851
2819
|
/**
|
|
2852
2820
|
* Optional. Default is false. If true, response will be camel case
|
|
2853
2821
|
* @default false
|
|
@@ -2865,7 +2833,7 @@ export class Quote<HandleError extends boolean = boolean> {
|
|
|
2865
2833
|
user_name?: string;
|
|
2866
2834
|
/** @default "" */
|
|
2867
2835
|
platform?: string;
|
|
2868
|
-
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<AesMidasOptionL1WithGreeks, HandleError>>;
|
|
2836
|
+
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<AesMidasOptionL1WithGreeks[], HandleError>>;
|
|
2869
2837
|
/**
|
|
2870
2838
|
* @tags Quote
|
|
2871
2839
|
* @name GetEquiductLevel1
|
|
@@ -3190,6 +3158,17 @@ export class QuotesReformat<HandleError extends boolean = boolean> {
|
|
|
3190
3158
|
/** @default "" */
|
|
3191
3159
|
platform?: string;
|
|
3192
3160
|
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
|
|
3161
|
+
/**
|
|
3162
|
+
* @tags QuotesReformat
|
|
3163
|
+
* @name GetOptionChainDates
|
|
3164
|
+
* @summary Query Option Chain dates - All users - available in Microservice
|
|
3165
|
+
* @request GET:/api/quotes/option/chain/dates/{symbol}
|
|
3166
|
+
* @secure
|
|
3167
|
+
*/
|
|
3168
|
+
getOptionChainDates(symbol: string, query?: {
|
|
3169
|
+
/** @default "" */
|
|
3170
|
+
platform?: string;
|
|
3171
|
+
}, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
|
|
3193
3172
|
/**
|
|
3194
3173
|
* @tags QuotesReformat
|
|
3195
3174
|
* @name GetOptionChain
|