zklighter-perps 1.0.23 → 1.0.24

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.
@@ -31,12 +31,6 @@ export interface AccountPosition {
31
31
  * @memberof AccountPosition
32
32
  */
33
33
  ooc: number;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof AccountPosition
38
- */
39
- name: string;
40
34
  /**
41
35
  *
42
36
  * @type {string}
@@ -87,7 +81,6 @@ export interface AccountPosition {
87
81
  export function instanceOfAccountPosition(value: object): value is AccountPosition {
88
82
  if (!('market_id' in value) || value['market_id'] === undefined) return false;
89
83
  if (!('ooc' in value) || value['ooc'] === undefined) return false;
90
- if (!('name' in value) || value['name'] === undefined) return false;
91
84
  if (!('symbol' in value) || value['symbol'] === undefined) return false;
92
85
  if (!('sign' in value) || value['sign'] === undefined) return false;
93
86
  if (!('position' in value) || value['position'] === undefined) return false;
@@ -110,7 +103,6 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
110
103
 
111
104
  'market_id': json['market_id'],
112
105
  'ooc': json['ooc'],
113
- 'name': json['name'],
114
106
  'symbol': json['symbol'],
115
107
  'sign': json['sign'],
116
108
  'position': json['position'],
@@ -129,7 +121,6 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
129
121
 
130
122
  'market_id': value['market_id'],
131
123
  'ooc': value['ooc'],
132
- 'name': value['name'],
133
124
  'symbol': value['symbol'],
134
125
  'sign': value['sign'],
135
126
  'position': value['position'],
@@ -90,13 +90,13 @@ export interface OrderBookDetail {
90
90
  * @type {number}
91
91
  * @memberof OrderBookDetail
92
92
  */
93
- decimal: number;
93
+ size_decimals: number;
94
94
  /**
95
95
  *
96
96
  * @type {number}
97
97
  * @memberof OrderBookDetail
98
98
  */
99
- price_tick: number;
99
+ price_decimals: number;
100
100
  /**
101
101
  *
102
102
  * @type {number}
@@ -108,19 +108,19 @@ export interface OrderBookDetail {
108
108
  * @type {number}
109
109
  * @memberof OrderBookDetail
110
110
  */
111
- initial_margin: number;
111
+ initial_margin_fraction: number;
112
112
  /**
113
113
  *
114
114
  * @type {number}
115
115
  * @memberof OrderBookDetail
116
116
  */
117
- maintenance_margin: number;
117
+ maintenance_margin_fraction: number;
118
118
  /**
119
119
  *
120
120
  * @type {number}
121
121
  * @memberof OrderBookDetail
122
122
  */
123
- closeoute_margin: number;
123
+ closeout_margin_fraction: number;
124
124
  /**
125
125
  *
126
126
  * @type {number}
@@ -210,12 +210,12 @@ export type OrderBookDetailStatusEnum = typeof OrderBookDetailStatusEnum[keyof t
210
210
  * Check if a given object implements the OrderBookDetail interface.
211
211
  */
212
212
  export function instanceOfOrderBookDetail(value: object): value is OrderBookDetail {
213
- if (!('decimal' in value) || value['decimal'] === undefined) return false;
214
- if (!('price_tick' in value) || value['price_tick'] === undefined) return false;
213
+ if (!('size_decimals' in value) || value['size_decimals'] === undefined) return false;
214
+ if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
215
215
  if (!('quote_multiplier' in value) || value['quote_multiplier'] === undefined) return false;
216
- if (!('initial_margin' in value) || value['initial_margin'] === undefined) return false;
217
- if (!('maintenance_margin' in value) || value['maintenance_margin'] === undefined) return false;
218
- if (!('closeoute_margin' in value) || value['closeoute_margin'] === undefined) return false;
216
+ if (!('initial_margin_fraction' in value) || value['initial_margin_fraction'] === undefined) return false;
217
+ if (!('maintenance_margin_fraction' in value) || value['maintenance_margin_fraction'] === undefined) return false;
218
+ if (!('closeout_margin_fraction' in value) || value['closeout_margin_fraction'] === undefined) return false;
219
219
  if (!('ask_nonce' in value) || value['ask_nonce'] === undefined) return false;
220
220
  if (!('bid_nonce' in value) || value['bid_nonce'] === undefined) return false;
221
221
  if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
@@ -252,12 +252,12 @@ export function OrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator: boo
252
252
  'supported_size_decimals': json['supported_size_decimals'] == null ? undefined : json['supported_size_decimals'],
253
253
  'supported_price_decimals': json['supported_price_decimals'] == null ? undefined : json['supported_price_decimals'],
254
254
  'supported_quote_decimals': json['supported_quote_decimals'] == null ? undefined : json['supported_quote_decimals'],
255
- 'decimal': json['decimal'],
256
- 'price_tick': json['price_tick'],
255
+ 'size_decimals': json['size_decimals'],
256
+ 'price_decimals': json['price_decimals'],
257
257
  'quote_multiplier': json['quote_multiplier'],
258
- 'initial_margin': json['initial_margin'],
259
- 'maintenance_margin': json['maintenance_margin'],
260
- 'closeoute_margin': json['closeoute_margin'],
258
+ 'initial_margin_fraction': json['initial_margin_fraction'],
259
+ 'maintenance_margin_fraction': json['maintenance_margin_fraction'],
260
+ 'closeout_margin_fraction': json['closeout_margin_fraction'],
261
261
  'ask_nonce': json['ask_nonce'],
262
262
  'bid_nonce': json['bid_nonce'],
263
263
  'last_trade_price': json['last_trade_price'],
@@ -290,12 +290,12 @@ export function OrderBookDetailToJSON(value?: OrderBookDetail | null): any {
290
290
  'supported_size_decimals': value['supported_size_decimals'],
291
291
  'supported_price_decimals': value['supported_price_decimals'],
292
292
  'supported_quote_decimals': value['supported_quote_decimals'],
293
- 'decimal': value['decimal'],
294
- 'price_tick': value['price_tick'],
293
+ 'size_decimals': value['size_decimals'],
294
+ 'price_decimals': value['price_decimals'],
295
295
  'quote_multiplier': value['quote_multiplier'],
296
- 'initial_margin': value['initial_margin'],
297
- 'maintenance_margin': value['maintenance_margin'],
298
- 'closeoute_margin': value['closeoute_margin'],
296
+ 'initial_margin_fraction': value['initial_margin_fraction'],
297
+ 'maintenance_margin_fraction': value['maintenance_margin_fraction'],
298
+ 'closeout_margin_fraction': value['closeout_margin_fraction'],
299
299
  'ask_nonce': value['ask_nonce'],
300
300
  'bid_nonce': value['bid_nonce'],
301
301
  'last_trade_price': value['last_trade_price'],
package/openapi.json CHANGED
@@ -1941,10 +1941,6 @@
1941
1941
  "format": "int64",
1942
1942
  "example": "3"
1943
1943
  },
1944
- "name": {
1945
- "type": "string",
1946
- "example": "Ethereum"
1947
- },
1948
1944
  "symbol": {
1949
1945
  "type": "string",
1950
1946
  "example": "ETH"
@@ -1979,7 +1975,6 @@
1979
1975
  "required": [
1980
1976
  "market_id",
1981
1977
  "ooc",
1982
- "name",
1983
1978
  "symbol",
1984
1979
  "sign",
1985
1980
  "position",
@@ -3115,32 +3110,32 @@
3115
3110
  "format": "int64",
3116
3111
  "example": "4"
3117
3112
  },
3118
- "decimal": {
3113
+ "size_decimals": {
3119
3114
  "type": "integer",
3120
3115
  "format": "uint8",
3121
3116
  "example": "4"
3122
3117
  },
3123
- "price_tick": {
3118
+ "price_decimals": {
3124
3119
  "type": "integer",
3125
- "format": "int64",
3126
- "example": "1"
3120
+ "format": "uint8",
3121
+ "example": "4"
3127
3122
  },
3128
3123
  "quote_multiplier": {
3129
3124
  "type": "integer",
3130
3125
  "format": "int64",
3131
3126
  "example": "10000"
3132
3127
  },
3133
- "initial_margin": {
3128
+ "initial_margin_fraction": {
3134
3129
  "type": "integer",
3135
3130
  "format": "uin16",
3136
3131
  "example": "100"
3137
3132
  },
3138
- "maintenance_margin": {
3133
+ "maintenance_margin_fraction": {
3139
3134
  "type": "integer",
3140
3135
  "format": "uin16",
3141
3136
  "example": "50"
3142
3137
  },
3143
- "closeoute_margin": {
3138
+ "closeout_margin_fraction": {
3144
3139
  "type": "integer",
3145
3140
  "format": "uin16",
3146
3141
  "example": "100"
@@ -3211,12 +3206,12 @@
3211
3206
  },
3212
3207
  "title": "OrderBookDetail",
3213
3208
  "required": [
3214
- "decimal",
3215
- "price_tick",
3209
+ "size_decimals",
3210
+ "price_decimals",
3216
3211
  "quote_multiplier",
3217
- "initial_margin",
3218
- "maintenance_margin",
3219
- "closeoute_margin",
3212
+ "initial_margin_fraction",
3213
+ "maintenance_margin_fraction",
3214
+ "closeout_margin_fraction",
3220
3215
  "ask_nonce",
3221
3216
  "bid_nonce",
3222
3217
  "last_trade_price",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {