zklighter-perps 1.0.9 → 1.0.10

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.
@@ -3,7 +3,6 @@ apis/BlockApi.ts
3
3
  apis/CandlestickApi.ts
4
4
  apis/InfoApi.ts
5
5
  apis/OrderApi.ts
6
- apis/RelayerApi.ts
7
6
  apis/RootApi.ts
8
7
  apis/TransactionApi.ts
9
8
  apis/index.ts
@@ -31,7 +30,6 @@ models/Layer2BasicInfo.ts
31
30
  models/MainAccount.ts
32
31
  models/MainAccounts.ts
33
32
  models/MarketInfo.ts
34
- models/MarketSig.ts
35
33
  models/NextNonce.ts
36
34
  models/Order.ts
37
35
  models/OrderBook.ts
@@ -60,7 +58,6 @@ models/ReqGetByAccount.ts
60
58
  models/ReqGetCandlesticks.ts
61
59
  models/ReqGetFundings.ts
62
60
  models/ReqGetL1Tx.ts
63
- models/ReqGetMarketSig.ts
64
61
  models/ReqGetNextNonce.ts
65
62
  models/ReqGetOrderBookDetails.ts
66
63
  models/ReqGetOrderBookOrders.ts
package/apis/index.ts CHANGED
@@ -5,6 +5,5 @@ export * from './BlockApi';
5
5
  export * from './CandlestickApi';
6
6
  export * from './InfoApi';
7
7
  export * from './OrderApi';
8
- export * from './RelayerApi';
9
8
  export * from './RootApi';
10
9
  export * from './TransactionApi';
@@ -49,6 +49,12 @@ export interface OrderBook {
49
49
  * @memberof OrderBook
50
50
  */
51
51
  makerFee: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof OrderBook
56
+ */
57
+ liquidationFee: string;
52
58
  /**
53
59
  *
54
60
  * @type {string}
@@ -101,6 +107,7 @@ export function instanceOfOrderBook(value: object): value is OrderBook {
101
107
  if (!('status' in value) || value['status'] === undefined) return false;
102
108
  if (!('takerFee' in value) || value['takerFee'] === undefined) return false;
103
109
  if (!('makerFee' in value) || value['makerFee'] === undefined) return false;
110
+ if (!('liquidationFee' in value) || value['liquidationFee'] === undefined) return false;
104
111
  if (!('minBaseAmount' in value) || value['minBaseAmount'] === undefined) return false;
105
112
  if (!('minQuoteAmount' in value) || value['minQuoteAmount'] === undefined) return false;
106
113
  if (!('supportedSizeDecimals' in value) || value['supportedSizeDecimals'] === undefined) return false;
@@ -124,6 +131,7 @@ export function OrderBookFromJSONTyped(json: any, ignoreDiscriminator: boolean):
124
131
  'status': json['status'],
125
132
  'takerFee': json['taker_fee'],
126
133
  'makerFee': json['maker_fee'],
134
+ 'liquidationFee': json['liquidation_fee'],
127
135
  'minBaseAmount': json['min_base_amount'],
128
136
  'minQuoteAmount': json['min_quote_amount'],
129
137
  'supportedSizeDecimals': json['supported_size_decimals'],
@@ -143,6 +151,7 @@ export function OrderBookToJSON(value?: OrderBook | null): any {
143
151
  'status': value['status'],
144
152
  'taker_fee': value['takerFee'],
145
153
  'maker_fee': value['makerFee'],
154
+ 'liquidation_fee': value['liquidationFee'],
146
155
  'min_base_amount': value['minBaseAmount'],
147
156
  'min_quote_amount': value['minQuoteAmount'],
148
157
  'supported_size_decimals': value['supportedSizeDecimals'],
@@ -49,6 +49,12 @@ export interface OrderBookDetail {
49
49
  * @memberof OrderBookDetail
50
50
  */
51
51
  makerFee?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof OrderBookDetail
56
+ */
57
+ liquidationFee?: string;
52
58
  /**
53
59
  *
54
60
  * @type {string}
@@ -240,6 +246,7 @@ export function OrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator: boo
240
246
  'status': json['status'] == null ? undefined : json['status'],
241
247
  'takerFee': json['taker_fee'] == null ? undefined : json['taker_fee'],
242
248
  'makerFee': json['maker_fee'] == null ? undefined : json['maker_fee'],
249
+ 'liquidationFee': json['liquidation_fee'] == null ? undefined : json['liquidation_fee'],
243
250
  'minBaseAmount': json['min_base_amount'] == null ? undefined : json['min_base_amount'],
244
251
  'minQuoteAmount': json['min_quote_amount'] == null ? undefined : json['min_quote_amount'],
245
252
  'supportedSizeDecimals': json['supported_size_decimals'] == null ? undefined : json['supported_size_decimals'],
@@ -277,6 +284,7 @@ export function OrderBookDetailToJSON(value?: OrderBookDetail | null): any {
277
284
  'status': value['status'],
278
285
  'taker_fee': value['takerFee'],
279
286
  'maker_fee': value['makerFee'],
287
+ 'liquidation_fee': value['liquidationFee'],
280
288
  'min_base_amount': value['minBaseAmount'],
281
289
  'min_quote_amount': value['minQuoteAmount'],
282
290
  'supported_size_decimals': value['supportedSizeDecimals'],
package/models/index.ts CHANGED
@@ -23,7 +23,6 @@ export * from './Layer2BasicInfo';
23
23
  export * from './MainAccount';
24
24
  export * from './MainAccounts';
25
25
  export * from './MarketInfo';
26
- export * from './MarketSig';
27
26
  export * from './NextNonce';
28
27
  export * from './Order';
29
28
  export * from './OrderBook';
@@ -52,7 +51,6 @@ export * from './ReqGetByAccount';
52
51
  export * from './ReqGetCandlesticks';
53
52
  export * from './ReqGetFundings';
54
53
  export * from './ReqGetL1Tx';
55
- export * from './ReqGetMarketSig';
56
54
  export * from './ReqGetNextNonce';
57
55
  export * from './ReqGetOrderBookDetails';
58
56
  export * from './ReqGetOrderBookOrders';
package/openapi.json CHANGED
@@ -1298,56 +1298,6 @@
1298
1298
  "description": "Get account PnL chart"
1299
1299
  }
1300
1300
  },
1301
- "/api/v1/quote": {
1302
- "get": {
1303
- "summary": "GetMarketSig",
1304
- "operationId": "GetMarketSig",
1305
- "responses": {
1306
- "200": {
1307
- "description": "A successful response.",
1308
- "schema": {
1309
- "$ref": "#/definitions/MarketSig"
1310
- }
1311
- },
1312
- "400": {
1313
- "description": "Bad request",
1314
- "schema": {
1315
- "$ref": "#/definitions/ResultCode"
1316
- }
1317
- }
1318
- },
1319
- "parameters": [
1320
- {
1321
- "name": "market_id",
1322
- "in": "query",
1323
- "required": true,
1324
- "type": "integer",
1325
- "format": "uin16"
1326
- },
1327
- {
1328
- "name": "is_ask",
1329
- "in": "query",
1330
- "required": true,
1331
- "type": "boolean",
1332
- "format": "boolean"
1333
- },
1334
- {
1335
- "name": "base_amount",
1336
- "in": "query",
1337
- "required": true,
1338
- "type": "integer",
1339
- "format": "int64"
1340
- }
1341
- ],
1342
- "tags": [
1343
- "relayer"
1344
- ],
1345
- "consumes": [
1346
- "multipart/form-data"
1347
- ],
1348
- "description": "Get Market Signature"
1349
- }
1350
- },
1351
1301
  "/api/v1/recentTrades": {
1352
1302
  "get": {
1353
1303
  "summary": "GetRecentTrades",
@@ -2706,45 +2656,6 @@
2706
2656
  "daily_price_change"
2707
2657
  ]
2708
2658
  },
2709
- "MarketSig": {
2710
- "type": "object",
2711
- "properties": {
2712
- "code": {
2713
- "type": "integer",
2714
- "format": "int32",
2715
- "example": "100"
2716
- },
2717
- "message": {
2718
- "type": "string"
2719
- },
2720
- "can_be_filled": {
2721
- "type": "boolean",
2722
- "format": "boolean",
2723
- "example": "true"
2724
- },
2725
- "is_ask": {
2726
- "type": "boolean",
2727
- "format": "boolean",
2728
- "example": "true"
2729
- },
2730
- "quote_amount": {
2731
- "type": "integer",
2732
- "format": "int64",
2733
- "example": "100000000"
2734
- },
2735
- "signature": {
2736
- "type": "string",
2737
- "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2738
- }
2739
- },
2740
- "title": "MarketSig",
2741
- "required": [
2742
- "can_be_filled",
2743
- "is_ask",
2744
- "quote_amount",
2745
- "signature"
2746
- ]
2747
- },
2748
2659
  "NextNonce": {
2749
2660
  "type": "object",
2750
2661
  "properties": {
@@ -2907,6 +2818,10 @@
2907
2818
  "type": "string",
2908
2819
  "example": "0.0000"
2909
2820
  },
2821
+ "liquidation_fee": {
2822
+ "type": "string",
2823
+ "example": "0.01"
2824
+ },
2910
2825
  "min_base_amount": {
2911
2826
  "type": "string",
2912
2827
  "example": "0.01"
@@ -2938,6 +2853,7 @@
2938
2853
  "status",
2939
2854
  "taker_fee",
2940
2855
  "maker_fee",
2856
+ "liquidation_fee",
2941
2857
  "min_base_amount",
2942
2858
  "min_quote_amount",
2943
2859
  "supported_size_decimals",
@@ -3009,6 +2925,10 @@
3009
2925
  "type": "string",
3010
2926
  "example": "0.0000"
3011
2927
  },
2928
+ "liquidation_fee": {
2929
+ "type": "string",
2930
+ "example": "0.01"
2931
+ },
3012
2932
  "min_base_amount": {
3013
2933
  "type": "string",
3014
2934
  "example": "0.01"
@@ -3758,29 +3678,6 @@
3758
3678
  "hash"
3759
3679
  ]
3760
3680
  },
3761
- "ReqGetMarketSig": {
3762
- "type": "object",
3763
- "properties": {
3764
- "market_id": {
3765
- "type": "integer",
3766
- "format": "uin16"
3767
- },
3768
- "is_ask": {
3769
- "type": "boolean",
3770
- "format": "boolean"
3771
- },
3772
- "base_amount": {
3773
- "type": "integer",
3774
- "format": "int64"
3775
- }
3776
- },
3777
- "title": "ReqGetMarketSig",
3778
- "required": [
3779
- "market_id",
3780
- "is_ask",
3781
- "base_amount"
3782
- ]
3783
- },
3784
3681
  "ReqGetNextNonce": {
3785
3682
  "type": "object",
3786
3683
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {