zklighter-perps 1.0.348 → 1.0.349

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/apis/InfoApi.ts CHANGED
@@ -94,7 +94,7 @@ export class InfoApi extends runtime.BaseAPI {
94
94
  }
95
95
 
96
96
  /**
97
- * Get price oracle info (source in use, median exchanges, price cap) for all markets or a single symbol
97
+ * Get price oracle info (source, median exchanges, price cap, last accepted time and publishing status) for all markets or a single symbol
98
98
  * priceOracleInfo
99
99
  */
100
100
  async priceOracleInfoRaw(requestParameters: PriceOracleInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespPriceOracleInfo>> {
@@ -117,7 +117,7 @@ export class InfoApi extends runtime.BaseAPI {
117
117
  }
118
118
 
119
119
  /**
120
- * Get price oracle info (source in use, median exchanges, price cap) for all markets or a single symbol
120
+ * Get price oracle info (source, median exchanges, price cap, last accepted time and publishing status) for all markets or a single symbol
121
121
  * priceOracleInfo
122
122
  */
123
123
  async priceOracleInfo(requestParameters: PriceOracleInfoRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespPriceOracleInfo> {
@@ -61,6 +61,30 @@ export interface PriceOraclePrice {
61
61
  * @memberof PriceOraclePrice
62
62
  */
63
63
  price_cap_reference_price: number;
64
+ /**
65
+ * 0 if none accepted since the price service started
66
+ * @type {number}
67
+ * @memberof PriceOraclePrice
68
+ */
69
+ last_accepted_at_ms: number;
70
+ /**
71
+ * no source is currently publishing a price
72
+ * @type {boolean}
73
+ * @memberof PriceOraclePrice
74
+ */
75
+ awaiting_sources: boolean;
76
+ /**
77
+ * a newer price is pending acceptance
78
+ * @type {boolean}
79
+ * @memberof PriceOraclePrice
80
+ */
81
+ awaiting_verification: boolean;
82
+ /**
83
+ * no price accepted for longer than the market's staleness threshold
84
+ * @type {boolean}
85
+ * @memberof PriceOraclePrice
86
+ */
87
+ stale: boolean;
64
88
  }
65
89
 
66
90
  /**
@@ -74,6 +98,10 @@ export function instanceOfPriceOraclePrice(value: object): value is PriceOracleP
74
98
  if (!('underlying' in value) || value['underlying'] === undefined) return false;
75
99
  if (!('price_cap_bps' in value) || value['price_cap_bps'] === undefined) return false;
76
100
  if (!('price_cap_reference_price' in value) || value['price_cap_reference_price'] === undefined) return false;
101
+ if (!('last_accepted_at_ms' in value) || value['last_accepted_at_ms'] === undefined) return false;
102
+ if (!('awaiting_sources' in value) || value['awaiting_sources'] === undefined) return false;
103
+ if (!('awaiting_verification' in value) || value['awaiting_verification'] === undefined) return false;
104
+ if (!('stale' in value) || value['stale'] === undefined) return false;
77
105
  return true;
78
106
  }
79
107
 
@@ -94,6 +122,10 @@ export function PriceOraclePriceFromJSONTyped(json: any, ignoreDiscriminator: bo
94
122
  'underlying': json['underlying'],
95
123
  'price_cap_bps': json['price_cap_bps'],
96
124
  'price_cap_reference_price': json['price_cap_reference_price'],
125
+ 'last_accepted_at_ms': json['last_accepted_at_ms'],
126
+ 'awaiting_sources': json['awaiting_sources'],
127
+ 'awaiting_verification': json['awaiting_verification'],
128
+ 'stale': json['stale'],
97
129
  };
98
130
  }
99
131
 
@@ -110,6 +142,10 @@ export function PriceOraclePriceToJSON(value?: PriceOraclePrice | null): any {
110
142
  'underlying': value['underlying'],
111
143
  'price_cap_bps': value['price_cap_bps'],
112
144
  'price_cap_reference_price': value['price_cap_reference_price'],
145
+ 'last_accepted_at_ms': value['last_accepted_at_ms'],
146
+ 'awaiting_sources': value['awaiting_sources'],
147
+ 'awaiting_verification': value['awaiting_verification'],
148
+ 'stale': value['stale'],
113
149
  };
114
150
  }
115
151
 
package/openapi.json CHANGED
@@ -5784,7 +5784,7 @@
5784
5784
  "consumes": [
5785
5785
  "multipart/form-data"
5786
5786
  ],
5787
- "description": "Get price oracle info (source in use, median exchanges, price cap) for all markets or a single symbol"
5787
+ "description": "Get price oracle info (source, median exchanges, price cap, last accepted time and publishing status) for all markets or a single symbol"
5788
5788
  }
5789
5789
  },
5790
5790
  "/api/v1/publicPoolsMetadata": {
@@ -16136,6 +16136,26 @@
16136
16136
  "type": "number",
16137
16137
  "format": "double",
16138
16138
  "description": " cap bounds: ref * (1 -/+ bps / 10000)"
16139
+ },
16140
+ "last_accepted_at_ms": {
16141
+ "type": "integer",
16142
+ "format": "int64",
16143
+ "description": " 0 if none accepted since the price service started"
16144
+ },
16145
+ "awaiting_sources": {
16146
+ "type": "boolean",
16147
+ "format": "boolean",
16148
+ "description": " no source is currently publishing a price"
16149
+ },
16150
+ "awaiting_verification": {
16151
+ "type": "boolean",
16152
+ "format": "boolean",
16153
+ "description": " a newer price is pending acceptance"
16154
+ },
16155
+ "stale": {
16156
+ "type": "boolean",
16157
+ "format": "boolean",
16158
+ "description": " no price accepted for longer than the market's staleness threshold"
16139
16159
  }
16140
16160
  },
16141
16161
  "title": "PriceOraclePrice",
@@ -16146,7 +16166,11 @@
16146
16166
  "median_sources",
16147
16167
  "underlying",
16148
16168
  "price_cap_bps",
16149
- "price_cap_reference_price"
16169
+ "price_cap_reference_price",
16170
+ "last_accepted_at_ms",
16171
+ "awaiting_sources",
16172
+ "awaiting_verification",
16173
+ "stale"
16150
16174
  ]
16151
16175
  },
16152
16176
  "PublicPoolInfo": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.348",
3
+ "version": "1.0.349",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {