zklighter-perps 1.0.26 → 1.0.28
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 +1 -0
- package/models/Account.ts +9 -9
- package/models/DetailedAccount.ts +23 -8
- package/models/MarketInfo.ts +9 -0
- package/models/Order.ts +4 -3
- package/models/PublicPoolShare.ts +79 -0
- package/models/Rollback.ts +5 -5
- package/models/index.ts +1 -0
- package/openapi.json +61 -22
- package/package.json +1 -1
- package/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
package/models/Account.ts
CHANGED
|
@@ -31,6 +31,12 @@ export interface Account {
|
|
|
31
31
|
* @memberof Account
|
|
32
32
|
*/
|
|
33
33
|
message?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Account
|
|
38
|
+
*/
|
|
39
|
+
account_type: number;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
* @type {number}
|
|
@@ -67,25 +73,19 @@ export interface Account {
|
|
|
67
73
|
* @memberof Account
|
|
68
74
|
*/
|
|
69
75
|
collateral: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {boolean}
|
|
73
|
-
* @memberof Account
|
|
74
|
-
*/
|
|
75
|
-
is_sub_account: boolean;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Check if a given object implements the Account interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAccount(value: object): value is Account {
|
|
82
|
+
if (!('account_type' in value) || value['account_type'] === undefined) return false;
|
|
82
83
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
83
84
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
84
85
|
if (!('cancel_all_time' in value) || value['cancel_all_time'] === undefined) return false;
|
|
85
86
|
if (!('open_order_count' in value) || value['open_order_count'] === undefined) return false;
|
|
86
87
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
87
88
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
88
|
-
if (!('is_sub_account' in value) || value['is_sub_account'] === undefined) return false;
|
|
89
89
|
return true;
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -101,13 +101,13 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
|
|
|
101
101
|
|
|
102
102
|
'code': json['code'] == null ? undefined : json['code'],
|
|
103
103
|
'message': json['message'] == null ? undefined : json['message'],
|
|
104
|
+
'account_type': json['account_type'],
|
|
104
105
|
'index': json['index'],
|
|
105
106
|
'l1_address': json['l1_address'],
|
|
106
107
|
'cancel_all_time': json['cancel_all_time'],
|
|
107
108
|
'open_order_count': json['open_order_count'],
|
|
108
109
|
'status': json['status'],
|
|
109
110
|
'collateral': json['collateral'],
|
|
110
|
-
'is_sub_account': json['is_sub_account'],
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -119,13 +119,13 @@ export function AccountToJSON(value?: Account | null): any {
|
|
|
119
119
|
|
|
120
120
|
'code': value['code'],
|
|
121
121
|
'message': value['message'],
|
|
122
|
+
'account_type': value['account_type'],
|
|
122
123
|
'index': value['index'],
|
|
123
124
|
'l1_address': value['l1_address'],
|
|
124
125
|
'cancel_all_time': value['cancel_all_time'],
|
|
125
126
|
'open_order_count': value['open_order_count'],
|
|
126
127
|
'status': value['status'],
|
|
127
128
|
'collateral': value['collateral'],
|
|
128
|
-
'is_sub_account': value['is_sub_account'],
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
AccountPositionFromJSONTyped,
|
|
26
26
|
AccountPositionToJSON,
|
|
27
27
|
} from './AccountPosition';
|
|
28
|
+
import type { PublicPoolShare } from './PublicPoolShare';
|
|
29
|
+
import {
|
|
30
|
+
PublicPoolShareFromJSON,
|
|
31
|
+
PublicPoolShareFromJSONTyped,
|
|
32
|
+
PublicPoolShareToJSON,
|
|
33
|
+
} from './PublicPoolShare';
|
|
28
34
|
|
|
29
35
|
/**
|
|
30
36
|
*
|
|
@@ -44,6 +50,12 @@ export interface DetailedAccount {
|
|
|
44
50
|
* @memberof DetailedAccount
|
|
45
51
|
*/
|
|
46
52
|
message?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof DetailedAccount
|
|
57
|
+
*/
|
|
58
|
+
account_type?: number;
|
|
47
59
|
/**
|
|
48
60
|
*
|
|
49
61
|
* @type {number}
|
|
@@ -80,12 +92,6 @@ export interface DetailedAccount {
|
|
|
80
92
|
* @memberof DetailedAccount
|
|
81
93
|
*/
|
|
82
94
|
collateral?: string;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {boolean}
|
|
86
|
-
* @memberof DetailedAccount
|
|
87
|
-
*/
|
|
88
|
-
is_sub_account?: boolean;
|
|
89
95
|
/**
|
|
90
96
|
*
|
|
91
97
|
* @type {Array<AccountPosition>}
|
|
@@ -104,6 +110,12 @@ export interface DetailedAccount {
|
|
|
104
110
|
* @memberof DetailedAccount
|
|
105
111
|
*/
|
|
106
112
|
market_stats: Array<AccountMarketStats>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {Array<PublicPoolShare>}
|
|
116
|
+
* @memberof DetailedAccount
|
|
117
|
+
*/
|
|
118
|
+
shares: Array<PublicPoolShare>;
|
|
107
119
|
}
|
|
108
120
|
|
|
109
121
|
/**
|
|
@@ -113,6 +125,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
113
125
|
if (!('positions' in value) || value['positions'] === undefined) return false;
|
|
114
126
|
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
115
127
|
if (!('market_stats' in value) || value['market_stats'] === undefined) return false;
|
|
128
|
+
if (!('shares' in value) || value['shares'] === undefined) return false;
|
|
116
129
|
return true;
|
|
117
130
|
}
|
|
118
131
|
|
|
@@ -128,16 +141,17 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
128
141
|
|
|
129
142
|
'code': json['code'] == null ? undefined : json['code'],
|
|
130
143
|
'message': json['message'] == null ? undefined : json['message'],
|
|
144
|
+
'account_type': json['account_type'] == null ? undefined : json['account_type'],
|
|
131
145
|
'index': json['index'] == null ? undefined : json['index'],
|
|
132
146
|
'l1_address': json['l1_address'] == null ? undefined : json['l1_address'],
|
|
133
147
|
'cancel_all_time': json['cancel_all_time'] == null ? undefined : json['cancel_all_time'],
|
|
134
148
|
'open_order_count': json['open_order_count'] == null ? undefined : json['open_order_count'],
|
|
135
149
|
'status': json['status'] == null ? undefined : json['status'],
|
|
136
150
|
'collateral': json['collateral'] == null ? undefined : json['collateral'],
|
|
137
|
-
'is_sub_account': json['is_sub_account'] == null ? undefined : json['is_sub_account'],
|
|
138
151
|
'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
|
|
139
152
|
'total_asset_value': json['total_asset_value'],
|
|
140
153
|
'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
|
|
154
|
+
'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
|
|
141
155
|
};
|
|
142
156
|
}
|
|
143
157
|
|
|
@@ -149,16 +163,17 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
149
163
|
|
|
150
164
|
'code': value['code'],
|
|
151
165
|
'message': value['message'],
|
|
166
|
+
'account_type': value['account_type'],
|
|
152
167
|
'index': value['index'],
|
|
153
168
|
'l1_address': value['l1_address'],
|
|
154
169
|
'cancel_all_time': value['cancel_all_time'],
|
|
155
170
|
'open_order_count': value['open_order_count'],
|
|
156
171
|
'status': value['status'],
|
|
157
172
|
'collateral': value['collateral'],
|
|
158
|
-
'is_sub_account': value['is_sub_account'],
|
|
159
173
|
'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
|
|
160
174
|
'total_asset_value': value['total_asset_value'],
|
|
161
175
|
'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
|
|
176
|
+
'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
|
|
162
177
|
};
|
|
163
178
|
}
|
|
164
179
|
|
package/models/MarketInfo.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface MarketInfo {
|
|
|
37
37
|
* @memberof MarketInfo
|
|
38
38
|
*/
|
|
39
39
|
mark_price: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MarketInfo
|
|
44
|
+
*/
|
|
45
|
+
open_interest: string;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {string}
|
|
@@ -94,6 +100,7 @@ export function instanceOfMarketInfo(value: object): value is MarketInfo {
|
|
|
94
100
|
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
95
101
|
if (!('index_price' in value) || value['index_price'] === undefined) return false;
|
|
96
102
|
if (!('mark_price' in value) || value['mark_price'] === undefined) return false;
|
|
103
|
+
if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
|
|
97
104
|
if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
|
|
98
105
|
if (!('funding_rate' in value) || value['funding_rate'] === undefined) return false;
|
|
99
106
|
if (!('funding_timestamp' in value) || value['funding_timestamp'] === undefined) return false;
|
|
@@ -118,6 +125,7 @@ export function MarketInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
118
125
|
'market_id': json['market_id'],
|
|
119
126
|
'index_price': json['index_price'],
|
|
120
127
|
'mark_price': json['mark_price'],
|
|
128
|
+
'open_interest': json['open_interest'],
|
|
121
129
|
'last_trade_price': json['last_trade_price'],
|
|
122
130
|
'funding_rate': json['funding_rate'],
|
|
123
131
|
'funding_timestamp': json['funding_timestamp'],
|
|
@@ -138,6 +146,7 @@ export function MarketInfoToJSON(value?: MarketInfo | null): any {
|
|
|
138
146
|
'market_id': value['market_id'],
|
|
139
147
|
'index_price': value['index_price'],
|
|
140
148
|
'mark_price': value['mark_price'],
|
|
149
|
+
'open_interest': value['open_interest'],
|
|
141
150
|
'last_trade_price': value['last_trade_price'],
|
|
142
151
|
'funding_rate': value['funding_rate'],
|
|
143
152
|
'funding_timestamp': value['funding_timestamp'],
|
package/models/Order.ts
CHANGED
|
@@ -155,9 +155,10 @@ export type OrderTypeEnum = typeof OrderTypeEnum[keyof typeof OrderTypeEnum];
|
|
|
155
155
|
* @export
|
|
156
156
|
*/
|
|
157
157
|
export const OrderTimeInForceEnum = {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
GoodTillTime: 'good-till-time',
|
|
159
|
+
ImmediateOrCancel: 'immediate-or-cancel',
|
|
160
|
+
PostOnly: 'post-only',
|
|
161
|
+
Unknown: 'Unknown'
|
|
161
162
|
} as const;
|
|
162
163
|
export type OrderTimeInForceEnum = typeof OrderTimeInForceEnum[keyof typeof OrderTimeInForceEnum];
|
|
163
164
|
|
|
@@ -0,0 +1,79 @@
|
|
|
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 PublicPoolShare
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicPoolShare {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PublicPoolShare
|
|
26
|
+
*/
|
|
27
|
+
public_pool_id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PublicPoolShare
|
|
32
|
+
*/
|
|
33
|
+
shares_amount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PublicPoolShare
|
|
38
|
+
*/
|
|
39
|
+
entry_usdc: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PublicPoolShare interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPublicPoolShare(value: object): value is PublicPoolShare {
|
|
46
|
+
if (!('public_pool_id' in value) || value['public_pool_id'] === undefined) return false;
|
|
47
|
+
if (!('shares_amount' in value) || value['shares_amount'] === undefined) return false;
|
|
48
|
+
if (!('entry_usdc' in value) || value['entry_usdc'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PublicPoolShareFromJSON(json: any): PublicPoolShare {
|
|
53
|
+
return PublicPoolShareFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PublicPoolShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicPoolShare {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'public_pool_id': json['public_pool_id'],
|
|
63
|
+
'shares_amount': json['shares_amount'],
|
|
64
|
+
'entry_usdc': json['entry_usdc'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PublicPoolShareToJSON(value?: PublicPoolShare | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'public_pool_id': value['public_pool_id'],
|
|
75
|
+
'shares_amount': value['shares_amount'],
|
|
76
|
+
'entry_usdc': value['entry_usdc'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
package/models/Rollback.ts
CHANGED
|
@@ -27,10 +27,10 @@ export interface Rollback {
|
|
|
27
27
|
from_block_height: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {number}
|
|
31
31
|
* @memberof Rollback
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
from_tx_sequence_index: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -50,7 +50,7 @@ export interface Rollback {
|
|
|
50
50
|
*/
|
|
51
51
|
export function instanceOfRollback(value: object): value is Rollback {
|
|
52
52
|
if (!('from_block_height' in value) || value['from_block_height'] === undefined) return false;
|
|
53
|
-
if (!('
|
|
53
|
+
if (!('from_tx_sequence_index' in value) || value['from_tx_sequence_index'] === undefined) return false;
|
|
54
54
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
55
55
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
56
56
|
return true;
|
|
@@ -67,7 +67,7 @@ export function RollbackFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
69
|
'from_block_height': json['from_block_height'],
|
|
70
|
-
'
|
|
70
|
+
'from_tx_sequence_index': json['from_tx_sequence_index'],
|
|
71
71
|
'id': json['id'],
|
|
72
72
|
'created_at': json['created_at'],
|
|
73
73
|
};
|
|
@@ -80,7 +80,7 @@ export function RollbackToJSON(value?: Rollback | null): any {
|
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
82
|
'from_block_height': value['from_block_height'],
|
|
83
|
-
'
|
|
83
|
+
'from_tx_sequence_index': value['from_tx_sequence_index'],
|
|
84
84
|
'id': value['id'],
|
|
85
85
|
'created_at': value['created_at'],
|
|
86
86
|
};
|
package/models/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './Orders';
|
|
|
39
39
|
export * from './Permission';
|
|
40
40
|
export * from './PnLEntry';
|
|
41
41
|
export * from './PriceLevel';
|
|
42
|
+
export * from './PublicPoolShare';
|
|
42
43
|
export * from './ReqDoFaucet';
|
|
43
44
|
export * from './ReqGetAccount';
|
|
44
45
|
export * from './ReqGetAccountActiveOrders';
|
package/openapi.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "",
|
|
5
5
|
"version": ""
|
|
6
6
|
},
|
|
7
|
-
"host": "
|
|
7
|
+
"host": "testnet.zklighter.elliot.ai",
|
|
8
8
|
"schemes": [
|
|
9
9
|
"https"
|
|
10
10
|
],
|
|
@@ -1788,6 +1788,11 @@
|
|
|
1788
1788
|
"message": {
|
|
1789
1789
|
"type": "string"
|
|
1790
1790
|
},
|
|
1791
|
+
"account_type": {
|
|
1792
|
+
"type": "integer",
|
|
1793
|
+
"format": "uint8",
|
|
1794
|
+
"example": "1"
|
|
1795
|
+
},
|
|
1791
1796
|
"index": {
|
|
1792
1797
|
"type": "integer",
|
|
1793
1798
|
"format": "int64",
|
|
@@ -1815,22 +1820,17 @@
|
|
|
1815
1820
|
"collateral": {
|
|
1816
1821
|
"type": "string",
|
|
1817
1822
|
"example": "46342"
|
|
1818
|
-
},
|
|
1819
|
-
"is_sub_account": {
|
|
1820
|
-
"type": "boolean",
|
|
1821
|
-
"format": "boolean",
|
|
1822
|
-
"example": "false"
|
|
1823
1823
|
}
|
|
1824
1824
|
},
|
|
1825
1825
|
"title": "Account",
|
|
1826
1826
|
"required": [
|
|
1827
|
+
"account_type",
|
|
1827
1828
|
"index",
|
|
1828
1829
|
"l1_address",
|
|
1829
1830
|
"cancel_all_time",
|
|
1830
1831
|
"open_order_count",
|
|
1831
1832
|
"status",
|
|
1832
|
-
"collateral"
|
|
1833
|
-
"is_sub_account"
|
|
1833
|
+
"collateral"
|
|
1834
1834
|
]
|
|
1835
1835
|
},
|
|
1836
1836
|
"AccountApiKeys": {
|
|
@@ -2311,6 +2311,11 @@
|
|
|
2311
2311
|
"message": {
|
|
2312
2312
|
"type": "string"
|
|
2313
2313
|
},
|
|
2314
|
+
"account_type": {
|
|
2315
|
+
"type": "integer",
|
|
2316
|
+
"format": "uint8",
|
|
2317
|
+
"example": "1"
|
|
2318
|
+
},
|
|
2314
2319
|
"index": {
|
|
2315
2320
|
"type": "integer",
|
|
2316
2321
|
"format": "int64",
|
|
@@ -2339,11 +2344,6 @@
|
|
|
2339
2344
|
"type": "string",
|
|
2340
2345
|
"example": "46342"
|
|
2341
2346
|
},
|
|
2342
|
-
"is_sub_account": {
|
|
2343
|
-
"type": "boolean",
|
|
2344
|
-
"format": "boolean",
|
|
2345
|
-
"example": "false"
|
|
2346
|
-
},
|
|
2347
2347
|
"positions": {
|
|
2348
2348
|
"type": "array",
|
|
2349
2349
|
"items": {
|
|
@@ -2359,13 +2359,20 @@
|
|
|
2359
2359
|
"items": {
|
|
2360
2360
|
"$ref": "#/definitions/AccountMarketStats"
|
|
2361
2361
|
}
|
|
2362
|
+
},
|
|
2363
|
+
"shares": {
|
|
2364
|
+
"type": "array",
|
|
2365
|
+
"items": {
|
|
2366
|
+
"$ref": "#/definitions/PublicPoolShare"
|
|
2367
|
+
}
|
|
2362
2368
|
}
|
|
2363
2369
|
},
|
|
2364
2370
|
"title": "DetailedAccount",
|
|
2365
2371
|
"required": [
|
|
2366
2372
|
"positions",
|
|
2367
2373
|
"total_asset_value",
|
|
2368
|
-
"market_stats"
|
|
2374
|
+
"market_stats",
|
|
2375
|
+
"shares"
|
|
2369
2376
|
]
|
|
2370
2377
|
},
|
|
2371
2378
|
"DetailedAccounts": {
|
|
@@ -2760,6 +2767,10 @@
|
|
|
2760
2767
|
"type": "string",
|
|
2761
2768
|
"example": "3024.66"
|
|
2762
2769
|
},
|
|
2770
|
+
"open_interest": {
|
|
2771
|
+
"type": "string",
|
|
2772
|
+
"example": "235.25"
|
|
2773
|
+
},
|
|
2763
2774
|
"last_trade_price": {
|
|
2764
2775
|
"type": "string",
|
|
2765
2776
|
"example": "3024.66"
|
|
@@ -2804,6 +2815,7 @@
|
|
|
2804
2815
|
"market_id",
|
|
2805
2816
|
"index_price",
|
|
2806
2817
|
"mark_price",
|
|
2818
|
+
"open_interest",
|
|
2807
2819
|
"last_trade_price",
|
|
2808
2820
|
"funding_rate",
|
|
2809
2821
|
"funding_timestamp",
|
|
@@ -2916,11 +2928,12 @@
|
|
|
2916
2928
|
"time_in_force": {
|
|
2917
2929
|
"type": "string",
|
|
2918
2930
|
"enum": [
|
|
2919
|
-
"
|
|
2920
|
-
"
|
|
2921
|
-
"
|
|
2931
|
+
"good-till-time",
|
|
2932
|
+
"immediate-or-cancel",
|
|
2933
|
+
"post-only",
|
|
2934
|
+
"Unknown"
|
|
2922
2935
|
],
|
|
2923
|
-
"default": "
|
|
2936
|
+
"default": "good-till-time"
|
|
2924
2937
|
},
|
|
2925
2938
|
"order_expiry": {
|
|
2926
2939
|
"type": "integer",
|
|
@@ -3454,6 +3467,31 @@
|
|
|
3454
3467
|
"size"
|
|
3455
3468
|
]
|
|
3456
3469
|
},
|
|
3470
|
+
"PublicPoolShare": {
|
|
3471
|
+
"type": "object",
|
|
3472
|
+
"properties": {
|
|
3473
|
+
"public_pool_id": {
|
|
3474
|
+
"type": "integer",
|
|
3475
|
+
"format": "int64",
|
|
3476
|
+
"example": "1"
|
|
3477
|
+
},
|
|
3478
|
+
"shares_amount": {
|
|
3479
|
+
"type": "integer",
|
|
3480
|
+
"format": "int64",
|
|
3481
|
+
"example": "3000"
|
|
3482
|
+
},
|
|
3483
|
+
"entry_usdc": {
|
|
3484
|
+
"type": "string",
|
|
3485
|
+
"example": "3000"
|
|
3486
|
+
}
|
|
3487
|
+
},
|
|
3488
|
+
"title": "PublicPoolShare",
|
|
3489
|
+
"required": [
|
|
3490
|
+
"public_pool_id",
|
|
3491
|
+
"shares_amount",
|
|
3492
|
+
"entry_usdc"
|
|
3493
|
+
]
|
|
3494
|
+
},
|
|
3457
3495
|
"ReqDoFaucet": {
|
|
3458
3496
|
"type": "object",
|
|
3459
3497
|
"properties": {
|
|
@@ -4215,9 +4253,10 @@
|
|
|
4215
4253
|
"format": "int64",
|
|
4216
4254
|
"example": "45434"
|
|
4217
4255
|
},
|
|
4218
|
-
"
|
|
4219
|
-
"type": "
|
|
4220
|
-
"
|
|
4256
|
+
"from_tx_sequence_index": {
|
|
4257
|
+
"type": "integer",
|
|
4258
|
+
"format": "int64",
|
|
4259
|
+
"example": "8761"
|
|
4221
4260
|
},
|
|
4222
4261
|
"id": {
|
|
4223
4262
|
"type": "integer",
|
|
@@ -4233,7 +4272,7 @@
|
|
|
4233
4272
|
"title": "Rollback",
|
|
4234
4273
|
"required": [
|
|
4235
4274
|
"from_block_height",
|
|
4236
|
-
"
|
|
4275
|
+
"from_tx_sequence_index",
|
|
4237
4276
|
"id",
|
|
4238
4277
|
"created_at"
|
|
4239
4278
|
]
|
package/package.json
CHANGED
package/runtime.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export const BASE_PATH = "https://
|
|
16
|
+
export const BASE_PATH = "https://testnet.zklighter.elliot.ai".replace(/\/+$/, "");
|
|
17
17
|
|
|
18
18
|
export interface ConfigurationParameters {
|
|
19
19
|
basePath?: string; // override base path
|