zklighter-perps 1.0.20 → 1.0.21
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/AccountPosition.ts +9 -0
- package/openapi.json +6 -0
- package/package.json +1 -1
|
@@ -25,6 +25,12 @@ export interface AccountPosition {
|
|
|
25
25
|
* @memberof AccountPosition
|
|
26
26
|
*/
|
|
27
27
|
market_id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof AccountPosition
|
|
32
|
+
*/
|
|
33
|
+
ooc: number;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -80,6 +86,7 @@ export interface AccountPosition {
|
|
|
80
86
|
*/
|
|
81
87
|
export function instanceOfAccountPosition(value: object): value is AccountPosition {
|
|
82
88
|
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
89
|
+
if (!('ooc' in value) || value['ooc'] === undefined) return false;
|
|
83
90
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
84
91
|
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
85
92
|
if (!('sign' in value) || value['sign'] === undefined) return false;
|
|
@@ -102,6 +109,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
109
|
return {
|
|
103
110
|
|
|
104
111
|
'market_id': json['market_id'],
|
|
112
|
+
'ooc': json['ooc'],
|
|
105
113
|
'name': json['name'],
|
|
106
114
|
'symbol': json['symbol'],
|
|
107
115
|
'sign': json['sign'],
|
|
@@ -120,6 +128,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
|
|
|
120
128
|
return {
|
|
121
129
|
|
|
122
130
|
'market_id': value['market_id'],
|
|
131
|
+
'ooc': value['ooc'],
|
|
123
132
|
'name': value['name'],
|
|
124
133
|
'symbol': value['symbol'],
|
|
125
134
|
'sign': value['sign'],
|
package/openapi.json
CHANGED
|
@@ -1933,6 +1933,11 @@
|
|
|
1933
1933
|
"format": "uin16",
|
|
1934
1934
|
"example": "1"
|
|
1935
1935
|
},
|
|
1936
|
+
"ooc": {
|
|
1937
|
+
"type": "integer",
|
|
1938
|
+
"format": "int64",
|
|
1939
|
+
"example": "3"
|
|
1940
|
+
},
|
|
1936
1941
|
"name": {
|
|
1937
1942
|
"type": "string",
|
|
1938
1943
|
"example": "Ethereum"
|
|
@@ -1970,6 +1975,7 @@
|
|
|
1970
1975
|
"title": "AccountPosition",
|
|
1971
1976
|
"required": [
|
|
1972
1977
|
"market_id",
|
|
1978
|
+
"ooc",
|
|
1973
1979
|
"name",
|
|
1974
1980
|
"symbol",
|
|
1975
1981
|
"sign",
|