zklighter-perps 1.0.320 → 1.0.321
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/models/PriceOraclePrice.ts +9 -0
- package/openapi.json +5 -0
- package/package.json +1 -1
|
@@ -43,6 +43,12 @@ export interface PriceOraclePrice {
|
|
|
43
43
|
* @memberof PriceOraclePrice
|
|
44
44
|
*/
|
|
45
45
|
median_sources: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* what feeds a proxy source, e.g. "0.60 * pythlazer BRENTZ6 + 0.40 * pythlazer BRENTF7" for rolling
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PriceOraclePrice
|
|
50
|
+
*/
|
|
51
|
+
underlying: string;
|
|
46
52
|
/**
|
|
47
53
|
*
|
|
48
54
|
* @type {number}
|
|
@@ -65,6 +71,7 @@ export function instanceOfPriceOraclePrice(value: object): value is PriceOracleP
|
|
|
65
71
|
if (!('using_median' in value) || value['using_median'] === undefined) return false;
|
|
66
72
|
if (!('using_internal_price' in value) || value['using_internal_price'] === undefined) return false;
|
|
67
73
|
if (!('median_sources' in value) || value['median_sources'] === undefined) return false;
|
|
74
|
+
if (!('underlying' in value) || value['underlying'] === undefined) return false;
|
|
68
75
|
if (!('price_cap_bps' in value) || value['price_cap_bps'] === undefined) return false;
|
|
69
76
|
if (!('price_cap_reference_price' in value) || value['price_cap_reference_price'] === undefined) return false;
|
|
70
77
|
return true;
|
|
@@ -84,6 +91,7 @@ export function PriceOraclePriceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
84
91
|
'using_median': json['using_median'],
|
|
85
92
|
'using_internal_price': json['using_internal_price'],
|
|
86
93
|
'median_sources': json['median_sources'],
|
|
94
|
+
'underlying': json['underlying'],
|
|
87
95
|
'price_cap_bps': json['price_cap_bps'],
|
|
88
96
|
'price_cap_reference_price': json['price_cap_reference_price'],
|
|
89
97
|
};
|
|
@@ -99,6 +107,7 @@ export function PriceOraclePriceToJSON(value?: PriceOraclePrice | null): any {
|
|
|
99
107
|
'using_median': value['using_median'],
|
|
100
108
|
'using_internal_price': value['using_internal_price'],
|
|
101
109
|
'median_sources': value['median_sources'],
|
|
110
|
+
'underlying': value['underlying'],
|
|
102
111
|
'price_cap_bps': value['price_cap_bps'],
|
|
103
112
|
'price_cap_reference_price': value['price_cap_reference_price'],
|
|
104
113
|
};
|
package/openapi.json
CHANGED
|
@@ -13770,6 +13770,10 @@
|
|
|
13770
13770
|
"type": "string"
|
|
13771
13771
|
}
|
|
13772
13772
|
},
|
|
13773
|
+
"underlying": {
|
|
13774
|
+
"type": "string",
|
|
13775
|
+
"description": " what feeds a proxy source, e.g. \"0.60 * pythlazer BRENTZ6 + 0.40 * pythlazer BRENTF7\" for rolling"
|
|
13776
|
+
},
|
|
13773
13777
|
"price_cap_bps": {
|
|
13774
13778
|
"type": "number",
|
|
13775
13779
|
"format": "double"
|
|
@@ -13786,6 +13790,7 @@
|
|
|
13786
13790
|
"using_median",
|
|
13787
13791
|
"using_internal_price",
|
|
13788
13792
|
"median_sources",
|
|
13793
|
+
"underlying",
|
|
13789
13794
|
"price_cap_bps",
|
|
13790
13795
|
"price_cap_reference_price"
|
|
13791
13796
|
]
|