zklighter-perps 1.0.315 → 1.0.316
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/.openapi-generator/FILES +4 -0
- package/apis/InfoApi.ts +39 -0
- package/models/PriceOracleMarket.ts +86 -0
- package/models/PriceOraclePrice.ts +106 -0
- package/models/ReqGetPriceOracleInfo.ts +60 -0
- package/models/RespPriceOracleInfo.ts +94 -0
- package/models/index.ts +4 -0
- package/openapi.json +133 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -148,6 +148,8 @@ models/PositionFundings.ts
|
|
|
148
148
|
models/PriceAlert.ts
|
|
149
149
|
models/PriceChangeAlert.ts
|
|
150
150
|
models/PriceLevel.ts
|
|
151
|
+
models/PriceOracleMarket.ts
|
|
152
|
+
models/PriceOraclePrice.ts
|
|
151
153
|
models/PublicPoolInfo.ts
|
|
152
154
|
models/PublicPoolMetadata.ts
|
|
153
155
|
models/PublicPoolShare.ts
|
|
@@ -216,6 +218,7 @@ models/ReqGetOrderBooks.ts
|
|
|
216
218
|
models/ReqGetPartnerStats.ts
|
|
217
219
|
models/ReqGetPnlLeaderboard.ts
|
|
218
220
|
models/ReqGetPositionFunding.ts
|
|
221
|
+
models/ReqGetPriceOracleInfo.ts
|
|
219
222
|
models/ReqGetPublicPoolsMetadata.ts
|
|
220
223
|
models/ReqGetPushNotifSettings.ts
|
|
221
224
|
models/ReqGetRFQ.ts
|
|
@@ -277,6 +280,7 @@ models/RespGuildMembership.ts
|
|
|
277
280
|
models/RespListMarketNews.ts
|
|
278
281
|
models/RespListRFQs.ts
|
|
279
282
|
models/RespPostApiToken.ts
|
|
283
|
+
models/RespPriceOracleInfo.ts
|
|
280
284
|
models/RespPublicPoolsMetadata.ts
|
|
281
285
|
models/RespRegisterEventOrderBook.ts
|
|
282
286
|
models/RespResolveGuildJoinRequest.ts
|
package/apis/InfoApi.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
Layer1BasicInfo,
|
|
19
|
+
RespPriceOracleInfo,
|
|
19
20
|
RespRollingInfo,
|
|
20
21
|
RespSyntheticSpotInfo,
|
|
21
22
|
RespWithdrawalDelay,
|
|
@@ -26,6 +27,8 @@ import type {
|
|
|
26
27
|
import {
|
|
27
28
|
Layer1BasicInfoFromJSON,
|
|
28
29
|
Layer1BasicInfoToJSON,
|
|
30
|
+
RespPriceOracleInfoFromJSON,
|
|
31
|
+
RespPriceOracleInfoToJSON,
|
|
29
32
|
RespRollingInfoFromJSON,
|
|
30
33
|
RespRollingInfoToJSON,
|
|
31
34
|
RespSyntheticSpotInfoFromJSON,
|
|
@@ -40,6 +43,10 @@ import {
|
|
|
40
43
|
TransferFeeInfoToJSON,
|
|
41
44
|
} from '../models/index';
|
|
42
45
|
|
|
46
|
+
export interface PriceOracleInfoRequest {
|
|
47
|
+
symbol?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
export interface RollingInfoRequest {
|
|
44
51
|
symbol: string;
|
|
45
52
|
}
|
|
@@ -86,6 +93,38 @@ export class InfoApi extends runtime.BaseAPI {
|
|
|
86
93
|
return await response.value();
|
|
87
94
|
}
|
|
88
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Get price oracle info (source in use, median exchanges, price cap) for all markets or a single symbol
|
|
98
|
+
* priceOracleInfo
|
|
99
|
+
*/
|
|
100
|
+
async priceOracleInfoRaw(requestParameters: PriceOracleInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespPriceOracleInfo>> {
|
|
101
|
+
const queryParameters: any = {};
|
|
102
|
+
|
|
103
|
+
if (requestParameters['symbol'] != null) {
|
|
104
|
+
queryParameters['symbol'] = requestParameters['symbol'];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
|
+
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/api/v1/priceOracleInfo`,
|
|
111
|
+
method: 'GET',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespPriceOracleInfoFromJSON(jsonValue));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Get price oracle info (source in use, median exchanges, price cap) for all markets or a single symbol
|
|
121
|
+
* priceOracleInfo
|
|
122
|
+
*/
|
|
123
|
+
async priceOracleInfo(requestParameters: PriceOracleInfoRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespPriceOracleInfo> {
|
|
124
|
+
const response = await this.priceOracleInfoRaw(requestParameters, initOverrides);
|
|
125
|
+
return await response.value();
|
|
126
|
+
}
|
|
127
|
+
|
|
89
128
|
/**
|
|
90
129
|
* Get rolling futures info for a symbol
|
|
91
130
|
* rollingInfo
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PriceOraclePrice } from './PriceOraclePrice';
|
|
17
|
+
import {
|
|
18
|
+
PriceOraclePriceFromJSON,
|
|
19
|
+
PriceOraclePriceFromJSONTyped,
|
|
20
|
+
PriceOraclePriceToJSON,
|
|
21
|
+
} from './PriceOraclePrice';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PriceOracleMarket
|
|
27
|
+
*/
|
|
28
|
+
export interface PriceOracleMarket {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PriceOracleMarket
|
|
33
|
+
*/
|
|
34
|
+
symbol: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {PriceOraclePrice}
|
|
38
|
+
* @memberof PriceOracleMarket
|
|
39
|
+
*/
|
|
40
|
+
index: PriceOraclePrice;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {PriceOraclePrice}
|
|
44
|
+
* @memberof PriceOracleMarket
|
|
45
|
+
*/
|
|
46
|
+
mark: PriceOraclePrice;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PriceOracleMarket interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPriceOracleMarket(value: object): value is PriceOracleMarket {
|
|
53
|
+
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
54
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
55
|
+
if (!('mark' in value) || value['mark'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PriceOracleMarketFromJSON(json: any): PriceOracleMarket {
|
|
60
|
+
return PriceOracleMarketFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PriceOracleMarketFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceOracleMarket {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'symbol': json['symbol'],
|
|
70
|
+
'index': PriceOraclePriceFromJSON(json['index']),
|
|
71
|
+
'mark': PriceOraclePriceFromJSON(json['mark']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PriceOracleMarketToJSON(value?: PriceOracleMarket | null): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'symbol': value['symbol'],
|
|
82
|
+
'index': PriceOraclePriceToJSON(value['index']),
|
|
83
|
+
'mark': PriceOraclePriceToJSON(value['mark']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PriceOraclePrice
|
|
20
|
+
*/
|
|
21
|
+
export interface PriceOraclePrice {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PriceOraclePrice
|
|
26
|
+
*/
|
|
27
|
+
source: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof PriceOraclePrice
|
|
32
|
+
*/
|
|
33
|
+
using_median: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof PriceOraclePrice
|
|
38
|
+
*/
|
|
39
|
+
using_internal_price: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof PriceOraclePrice
|
|
44
|
+
*/
|
|
45
|
+
median_sources: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PriceOraclePrice
|
|
50
|
+
*/
|
|
51
|
+
price_cap_bps: number;
|
|
52
|
+
/**
|
|
53
|
+
* cap bounds: ref * (1 -/+ bps / 10000)
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PriceOraclePrice
|
|
56
|
+
*/
|
|
57
|
+
price_cap_reference_price: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PriceOraclePrice interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPriceOraclePrice(value: object): value is PriceOraclePrice {
|
|
64
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
65
|
+
if (!('using_median' in value) || value['using_median'] === undefined) return false;
|
|
66
|
+
if (!('using_internal_price' in value) || value['using_internal_price'] === undefined) return false;
|
|
67
|
+
if (!('median_sources' in value) || value['median_sources'] === undefined) return false;
|
|
68
|
+
if (!('price_cap_bps' in value) || value['price_cap_bps'] === undefined) return false;
|
|
69
|
+
if (!('price_cap_reference_price' in value) || value['price_cap_reference_price'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PriceOraclePriceFromJSON(json: any): PriceOraclePrice {
|
|
74
|
+
return PriceOraclePriceFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PriceOraclePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceOraclePrice {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'source': json['source'],
|
|
84
|
+
'using_median': json['using_median'],
|
|
85
|
+
'using_internal_price': json['using_internal_price'],
|
|
86
|
+
'median_sources': json['median_sources'],
|
|
87
|
+
'price_cap_bps': json['price_cap_bps'],
|
|
88
|
+
'price_cap_reference_price': json['price_cap_reference_price'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PriceOraclePriceToJSON(value?: PriceOraclePrice | null): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'source': value['source'],
|
|
99
|
+
'using_median': value['using_median'],
|
|
100
|
+
'using_internal_price': value['using_internal_price'],
|
|
101
|
+
'median_sources': value['median_sources'],
|
|
102
|
+
'price_cap_bps': value['price_cap_bps'],
|
|
103
|
+
'price_cap_reference_price': value['price_cap_reference_price'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReqGetPriceOracleInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetPriceOracleInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetPriceOracleInfo
|
|
26
|
+
*/
|
|
27
|
+
symbol?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ReqGetPriceOracleInfo interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfReqGetPriceOracleInfo(value: object): value is ReqGetPriceOracleInfo {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ReqGetPriceOracleInfoFromJSON(json: any): ReqGetPriceOracleInfo {
|
|
38
|
+
return ReqGetPriceOracleInfoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ReqGetPriceOracleInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPriceOracleInfo {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'symbol': json['symbol'] == null ? undefined : json['symbol'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ReqGetPriceOracleInfoToJSON(value?: ReqGetPriceOracleInfo | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'symbol': value['symbol'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PriceOracleMarket } from './PriceOracleMarket';
|
|
17
|
+
import {
|
|
18
|
+
PriceOracleMarketFromJSON,
|
|
19
|
+
PriceOracleMarketFromJSONTyped,
|
|
20
|
+
PriceOracleMarketToJSON,
|
|
21
|
+
} from './PriceOracleMarket';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RespPriceOracleInfo
|
|
27
|
+
*/
|
|
28
|
+
export interface RespPriceOracleInfo {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof RespPriceOracleInfo
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RespPriceOracleInfo
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof RespPriceOracleInfo
|
|
45
|
+
*/
|
|
46
|
+
computed_at_ms: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<PriceOracleMarket>}
|
|
50
|
+
* @memberof RespPriceOracleInfo
|
|
51
|
+
*/
|
|
52
|
+
markets: Array<PriceOracleMarket>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RespPriceOracleInfo interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfRespPriceOracleInfo(value: object): value is RespPriceOracleInfo {
|
|
59
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
|
+
if (!('computed_at_ms' in value) || value['computed_at_ms'] === undefined) return false;
|
|
61
|
+
if (!('markets' in value) || value['markets'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RespPriceOracleInfoFromJSON(json: any): RespPriceOracleInfo {
|
|
66
|
+
return RespPriceOracleInfoFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RespPriceOracleInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespPriceOracleInfo {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'code': json['code'],
|
|
76
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
77
|
+
'computed_at_ms': json['computed_at_ms'],
|
|
78
|
+
'markets': ((json['markets'] as Array<any>).map(PriceOracleMarketFromJSON)),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function RespPriceOracleInfoToJSON(value?: RespPriceOracleInfo | null): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'code': value['code'],
|
|
89
|
+
'message': value['message'],
|
|
90
|
+
'computed_at_ms': value['computed_at_ms'],
|
|
91
|
+
'markets': ((value['markets'] as Array<any>).map(PriceOracleMarketToJSON)),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
package/models/index.ts
CHANGED
|
@@ -121,6 +121,8 @@ export * from './PositionFundings';
|
|
|
121
121
|
export * from './PriceAlert';
|
|
122
122
|
export * from './PriceChangeAlert';
|
|
123
123
|
export * from './PriceLevel';
|
|
124
|
+
export * from './PriceOracleMarket';
|
|
125
|
+
export * from './PriceOraclePrice';
|
|
124
126
|
export * from './PublicPoolInfo';
|
|
125
127
|
export * from './PublicPoolMetadata';
|
|
126
128
|
export * from './PublicPoolShare';
|
|
@@ -189,6 +191,7 @@ export * from './ReqGetOrderBooks';
|
|
|
189
191
|
export * from './ReqGetPartnerStats';
|
|
190
192
|
export * from './ReqGetPnlLeaderboard';
|
|
191
193
|
export * from './ReqGetPositionFunding';
|
|
194
|
+
export * from './ReqGetPriceOracleInfo';
|
|
192
195
|
export * from './ReqGetPublicPoolsMetadata';
|
|
193
196
|
export * from './ReqGetPushNotifSettings';
|
|
194
197
|
export * from './ReqGetRFQ';
|
|
@@ -250,6 +253,7 @@ export * from './RespGuildMembership';
|
|
|
250
253
|
export * from './RespListMarketNews';
|
|
251
254
|
export * from './RespListRFQs';
|
|
252
255
|
export * from './RespPostApiToken';
|
|
256
|
+
export * from './RespPriceOracleInfo';
|
|
253
257
|
export * from './RespPublicPoolsMetadata';
|
|
254
258
|
export * from './RespRegisterEventOrderBook';
|
|
255
259
|
export * from './RespResolveGuildJoinRequest';
|
package/openapi.json
CHANGED
|
@@ -4903,6 +4903,41 @@
|
|
|
4903
4903
|
"description": "Get accounts position fundings"
|
|
4904
4904
|
}
|
|
4905
4905
|
},
|
|
4906
|
+
"/api/v1/priceOracleInfo": {
|
|
4907
|
+
"get": {
|
|
4908
|
+
"summary": "priceOracleInfo",
|
|
4909
|
+
"operationId": "priceOracleInfo",
|
|
4910
|
+
"responses": {
|
|
4911
|
+
"200": {
|
|
4912
|
+
"description": "A successful response.",
|
|
4913
|
+
"schema": {
|
|
4914
|
+
"$ref": "#/definitions/RespPriceOracleInfo"
|
|
4915
|
+
}
|
|
4916
|
+
},
|
|
4917
|
+
"400": {
|
|
4918
|
+
"description": "Bad request",
|
|
4919
|
+
"schema": {
|
|
4920
|
+
"$ref": "#/definitions/ResultCode"
|
|
4921
|
+
}
|
|
4922
|
+
}
|
|
4923
|
+
},
|
|
4924
|
+
"parameters": [
|
|
4925
|
+
{
|
|
4926
|
+
"name": "symbol",
|
|
4927
|
+
"in": "query",
|
|
4928
|
+
"required": false,
|
|
4929
|
+
"type": "string"
|
|
4930
|
+
}
|
|
4931
|
+
],
|
|
4932
|
+
"tags": [
|
|
4933
|
+
"info"
|
|
4934
|
+
],
|
|
4935
|
+
"consumes": [
|
|
4936
|
+
"multipart/form-data"
|
|
4937
|
+
],
|
|
4938
|
+
"description": "Get price oracle info (source in use, median exchanges, price cap) for all markets or a single symbol"
|
|
4939
|
+
}
|
|
4940
|
+
},
|
|
4906
4941
|
"/api/v1/publicPoolsMetadata": {
|
|
4907
4942
|
"get": {
|
|
4908
4943
|
"summary": "publicPoolsMetadata",
|
|
@@ -13553,6 +13588,66 @@
|
|
|
13553
13588
|
"size"
|
|
13554
13589
|
]
|
|
13555
13590
|
},
|
|
13591
|
+
"PriceOracleMarket": {
|
|
13592
|
+
"type": "object",
|
|
13593
|
+
"properties": {
|
|
13594
|
+
"symbol": {
|
|
13595
|
+
"type": "string"
|
|
13596
|
+
},
|
|
13597
|
+
"index": {
|
|
13598
|
+
"$ref": "#/definitions/PriceOraclePrice"
|
|
13599
|
+
},
|
|
13600
|
+
"mark": {
|
|
13601
|
+
"$ref": "#/definitions/PriceOraclePrice"
|
|
13602
|
+
}
|
|
13603
|
+
},
|
|
13604
|
+
"title": "PriceOracleMarket",
|
|
13605
|
+
"required": [
|
|
13606
|
+
"symbol",
|
|
13607
|
+
"index",
|
|
13608
|
+
"mark"
|
|
13609
|
+
]
|
|
13610
|
+
},
|
|
13611
|
+
"PriceOraclePrice": {
|
|
13612
|
+
"type": "object",
|
|
13613
|
+
"properties": {
|
|
13614
|
+
"source": {
|
|
13615
|
+
"type": "string"
|
|
13616
|
+
},
|
|
13617
|
+
"using_median": {
|
|
13618
|
+
"type": "boolean",
|
|
13619
|
+
"format": "boolean"
|
|
13620
|
+
},
|
|
13621
|
+
"using_internal_price": {
|
|
13622
|
+
"type": "boolean",
|
|
13623
|
+
"format": "boolean"
|
|
13624
|
+
},
|
|
13625
|
+
"median_sources": {
|
|
13626
|
+
"type": "array",
|
|
13627
|
+
"items": {
|
|
13628
|
+
"type": "string"
|
|
13629
|
+
}
|
|
13630
|
+
},
|
|
13631
|
+
"price_cap_bps": {
|
|
13632
|
+
"type": "number",
|
|
13633
|
+
"format": "double"
|
|
13634
|
+
},
|
|
13635
|
+
"price_cap_reference_price": {
|
|
13636
|
+
"type": "number",
|
|
13637
|
+
"format": "double",
|
|
13638
|
+
"description": " cap bounds: ref * (1 -/+ bps / 10000)"
|
|
13639
|
+
}
|
|
13640
|
+
},
|
|
13641
|
+
"title": "PriceOraclePrice",
|
|
13642
|
+
"required": [
|
|
13643
|
+
"source",
|
|
13644
|
+
"using_median",
|
|
13645
|
+
"using_internal_price",
|
|
13646
|
+
"median_sources",
|
|
13647
|
+
"price_cap_bps",
|
|
13648
|
+
"price_cap_reference_price"
|
|
13649
|
+
]
|
|
13650
|
+
},
|
|
13556
13651
|
"PublicPoolInfo": {
|
|
13557
13652
|
"type": "object",
|
|
13558
13653
|
"properties": {
|
|
@@ -16048,6 +16143,15 @@
|
|
|
16048
16143
|
"limit"
|
|
16049
16144
|
]
|
|
16050
16145
|
},
|
|
16146
|
+
"ReqGetPriceOracleInfo": {
|
|
16147
|
+
"type": "object",
|
|
16148
|
+
"properties": {
|
|
16149
|
+
"symbol": {
|
|
16150
|
+
"type": "string"
|
|
16151
|
+
}
|
|
16152
|
+
},
|
|
16153
|
+
"title": "ReqGetPriceOracleInfo"
|
|
16154
|
+
},
|
|
16051
16155
|
"ReqGetPublicPoolsMetadata": {
|
|
16052
16156
|
"type": "object",
|
|
16053
16157
|
"properties": {
|
|
@@ -18435,6 +18539,35 @@
|
|
|
18435
18539
|
"scopes"
|
|
18436
18540
|
]
|
|
18437
18541
|
},
|
|
18542
|
+
"RespPriceOracleInfo": {
|
|
18543
|
+
"type": "object",
|
|
18544
|
+
"properties": {
|
|
18545
|
+
"code": {
|
|
18546
|
+
"type": "integer",
|
|
18547
|
+
"format": "int32",
|
|
18548
|
+
"example": "200"
|
|
18549
|
+
},
|
|
18550
|
+
"message": {
|
|
18551
|
+
"type": "string"
|
|
18552
|
+
},
|
|
18553
|
+
"computed_at_ms": {
|
|
18554
|
+
"type": "integer",
|
|
18555
|
+
"format": "int64"
|
|
18556
|
+
},
|
|
18557
|
+
"markets": {
|
|
18558
|
+
"type": "array",
|
|
18559
|
+
"items": {
|
|
18560
|
+
"$ref": "#/definitions/PriceOracleMarket"
|
|
18561
|
+
}
|
|
18562
|
+
}
|
|
18563
|
+
},
|
|
18564
|
+
"title": "RespPriceOracleInfo",
|
|
18565
|
+
"required": [
|
|
18566
|
+
"code",
|
|
18567
|
+
"computed_at_ms",
|
|
18568
|
+
"markets"
|
|
18569
|
+
]
|
|
18570
|
+
},
|
|
18438
18571
|
"RespPublicPoolsMetadata": {
|
|
18439
18572
|
"type": "object",
|
|
18440
18573
|
"properties": {
|