zklighter-perps 1.0.0
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/.circleci/config.yml +86 -0
- package/.openapi-generator/FILES +95 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/apis/AccountApi.ts +454 -0
- package/apis/BlockApi.ts +178 -0
- package/apis/CandlestickApi.ts +231 -0
- package/apis/InfoApi.ts +197 -0
- package/apis/OrderApi.ts +607 -0
- package/apis/RelayerApi.ts +95 -0
- package/apis/RootApi.ts +56 -0
- package/apis/TransactionApi.ts +608 -0
- package/apis/WsApi.ts +82 -0
- package/apis/index.ts +11 -0
- package/config.yaml +5 -0
- package/index.ts +5 -0
- package/models/AccountMarketStats.ts +100 -0
- package/models/AccountPnL.ts +91 -0
- package/models/AccountPosition.ts +140 -0
- package/models/AccountStats.ts +92 -0
- package/models/Block.ts +163 -0
- package/models/Blocks.ts +91 -0
- package/models/Candlestick.ts +108 -0
- package/models/Candlesticks.ts +91 -0
- package/models/ContractAddress.ts +68 -0
- package/models/CurrentHeight.ts +76 -0
- package/models/Cursor.ts +60 -0
- package/models/DetailedAccount.ts +169 -0
- package/models/DetailedAccounts.ts +91 -0
- package/models/EnrichedTx.ts +204 -0
- package/models/ExchangeStats.ts +107 -0
- package/models/Funding.ts +84 -0
- package/models/Fundings.ts +91 -0
- package/models/L1ProviderInfo.ts +84 -0
- package/models/Layer1BasicInfo.ts +143 -0
- package/models/Layer2BasicInfo.ts +92 -0
- package/models/MainAccount.ts +92 -0
- package/models/MainAccounts.ts +91 -0
- package/models/MarketInfo.ts +140 -0
- package/models/MarketSig.ts +100 -0
- package/models/NextNonce.ts +76 -0
- package/models/Order.ts +209 -0
- package/models/OrderBook.ts +143 -0
- package/models/OrderBookDepth.ts +99 -0
- package/models/OrderBookDetail.ts +287 -0
- package/models/OrderBookDetails.ts +83 -0
- package/models/OrderBookOrders.ts +107 -0
- package/models/OrderBookStats.ts +100 -0
- package/models/OrderBooks.ts +83 -0
- package/models/Orders.ts +91 -0
- package/models/Permission.ts +76 -0
- package/models/PnLEntry.ts +68 -0
- package/models/PriceLevel.ts +68 -0
- package/models/ReqDoFaucet.ts +60 -0
- package/models/ReqGetAccount.ts +79 -0
- package/models/ReqGetAccountActiveOrders.ts +76 -0
- package/models/ReqGetAccountByL1Address.ts +60 -0
- package/models/ReqGetAccountInactiveOrders.ts +111 -0
- package/models/ReqGetAccountOrders.ts +84 -0
- package/models/ReqGetAccountPendingTxs.ts +87 -0
- package/models/ReqGetAccountPnL.ts +124 -0
- package/models/ReqGetAccountTxs.ts +103 -0
- package/models/ReqGetBlock.ts +79 -0
- package/models/ReqGetBlockTxs.ts +79 -0
- package/models/ReqGetByAccount.ts +79 -0
- package/models/ReqGetCandlesticks.ts +107 -0
- package/models/ReqGetFundings.ts +102 -0
- package/models/ReqGetL1Tx.ts +60 -0
- package/models/ReqGetMarketSig.ts +76 -0
- package/models/ReqGetNextNonce.ts +68 -0
- package/models/ReqGetOrderBookDetails.ts +79 -0
- package/models/ReqGetOrderBookOrders.ts +68 -0
- package/models/ReqGetOrderBooks.ts +79 -0
- package/models/ReqGetPermission.ts +87 -0
- package/models/ReqGetRangeWithCursor.ts +68 -0
- package/models/ReqGetRangeWithIndex.ts +68 -0
- package/models/ReqGetRangeWithIndexSortable.ts +87 -0
- package/models/ReqGetRecentTrades.ts +68 -0
- package/models/ReqGetRollbacks.ts +76 -0
- package/models/ReqGetSubAccount.ts +87 -0
- package/models/ReqGetTrades.ts +104 -0
- package/models/ReqGetTx.ts +79 -0
- package/models/ReqSearch.ts +60 -0
- package/models/ResultCode.ts +68 -0
- package/models/Rollback.ts +84 -0
- package/models/Rollbacks.ts +91 -0
- package/models/Search.ts +76 -0
- package/models/SignBody.ts +76 -0
- package/models/SimpleOrder.ts +100 -0
- package/models/Status.ts +68 -0
- package/models/SubAccount.ts +116 -0
- package/models/SubAccounts.ts +107 -0
- package/models/Trade.ts +148 -0
- package/models/Trades.ts +83 -0
- package/models/Tx.ts +164 -0
- package/models/TxHash.ts +76 -0
- package/models/Txs.ts +83 -0
- package/models/ValidatorInfo.ts +68 -0
- package/models/index.ts +84 -0
- package/openapi-generator-cli.jar +0 -0
- package/openapi.json +3934 -0
- package/package.json +23 -0
- package/runtime.ts +426 -0
|
@@ -0,0 +1,76 @@
|
|
|
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 NextNonce
|
|
20
|
+
*/
|
|
21
|
+
export interface NextNonce {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof NextNonce
|
|
26
|
+
*/
|
|
27
|
+
code?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NextNonce
|
|
32
|
+
*/
|
|
33
|
+
message?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof NextNonce
|
|
38
|
+
*/
|
|
39
|
+
nonce?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the NextNonce interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfNextNonce(value: object): value is NextNonce {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NextNonceFromJSON(json: any): NextNonce {
|
|
50
|
+
return NextNonceFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function NextNonceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NextNonce {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
60
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
61
|
+
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function NextNonceToJSON(value?: NextNonce | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'code': value['code'],
|
|
72
|
+
'message': value['message'],
|
|
73
|
+
'nonce': value['nonce'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
package/models/Order.ts
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
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 Order
|
|
20
|
+
*/
|
|
21
|
+
export interface Order {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Order
|
|
26
|
+
*/
|
|
27
|
+
marketIndex?: number;
|
|
28
|
+
/**
|
|
29
|
+
* TODO: should we return this?
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof Order
|
|
32
|
+
*/
|
|
33
|
+
ownerMainAccountIndex?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Order
|
|
38
|
+
*/
|
|
39
|
+
ownerAccountIndex?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Order
|
|
44
|
+
*/
|
|
45
|
+
initialBaseAmount?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Order
|
|
50
|
+
*/
|
|
51
|
+
remainingBaseAmount?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Order
|
|
56
|
+
*/
|
|
57
|
+
filledBaseAmount?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Order
|
|
62
|
+
*/
|
|
63
|
+
filledQuoteAmount?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Order
|
|
68
|
+
*/
|
|
69
|
+
price?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof Order
|
|
74
|
+
*/
|
|
75
|
+
baseSize?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof Order
|
|
80
|
+
*/
|
|
81
|
+
basePrice?: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof Order
|
|
86
|
+
*/
|
|
87
|
+
nonce?: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof Order
|
|
92
|
+
*/
|
|
93
|
+
isAsk?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof Order
|
|
98
|
+
*/
|
|
99
|
+
side?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof Order
|
|
104
|
+
*/
|
|
105
|
+
type?: OrderTypeEnum;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof Order
|
|
110
|
+
*/
|
|
111
|
+
status?: OrderStatusEnum;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof Order
|
|
116
|
+
*/
|
|
117
|
+
blockHeight?: number;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof Order
|
|
122
|
+
*/
|
|
123
|
+
timestamp?: number;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export const OrderTypeEnum = {
|
|
131
|
+
Limit: 'limit',
|
|
132
|
+
Market: 'market'
|
|
133
|
+
} as const;
|
|
134
|
+
export type OrderTypeEnum = typeof OrderTypeEnum[keyof typeof OrderTypeEnum];
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export const OrderStatusEnum = {
|
|
140
|
+
Open: 'open',
|
|
141
|
+
Filled: 'filled',
|
|
142
|
+
Canceled: 'canceled'
|
|
143
|
+
} as const;
|
|
144
|
+
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Check if a given object implements the Order interface.
|
|
149
|
+
*/
|
|
150
|
+
export function instanceOfOrder(value: object): value is Order {
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function OrderFromJSON(json: any): Order {
|
|
155
|
+
return OrderFromJSONTyped(json, false);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order {
|
|
159
|
+
if (json == null) {
|
|
160
|
+
return json;
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
|
|
164
|
+
'marketIndex': json['market_index'] == null ? undefined : json['market_index'],
|
|
165
|
+
'ownerMainAccountIndex': json['ownerMainAccountIndex'] == null ? undefined : json['ownerMainAccountIndex'],
|
|
166
|
+
'ownerAccountIndex': json['owner_account_index'] == null ? undefined : json['owner_account_index'],
|
|
167
|
+
'initialBaseAmount': json['initial_base_amount'] == null ? undefined : json['initial_base_amount'],
|
|
168
|
+
'remainingBaseAmount': json['remaining_base_amount'] == null ? undefined : json['remaining_base_amount'],
|
|
169
|
+
'filledBaseAmount': json['filled_base_amount'] == null ? undefined : json['filled_base_amount'],
|
|
170
|
+
'filledQuoteAmount': json['filled_quote_amount'] == null ? undefined : json['filled_quote_amount'],
|
|
171
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
172
|
+
'baseSize': json['base_size'] == null ? undefined : json['base_size'],
|
|
173
|
+
'basePrice': json['base_price'] == null ? undefined : json['base_price'],
|
|
174
|
+
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
175
|
+
'isAsk': json['is_ask'] == null ? undefined : json['is_ask'],
|
|
176
|
+
'side': json['side'] == null ? undefined : json['side'],
|
|
177
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
178
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
179
|
+
'blockHeight': json['block_height'] == null ? undefined : json['block_height'],
|
|
180
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function OrderToJSON(value?: Order | null): any {
|
|
185
|
+
if (value == null) {
|
|
186
|
+
return value;
|
|
187
|
+
}
|
|
188
|
+
return {
|
|
189
|
+
|
|
190
|
+
'market_index': value['marketIndex'],
|
|
191
|
+
'ownerMainAccountIndex': value['ownerMainAccountIndex'],
|
|
192
|
+
'owner_account_index': value['ownerAccountIndex'],
|
|
193
|
+
'initial_base_amount': value['initialBaseAmount'],
|
|
194
|
+
'remaining_base_amount': value['remainingBaseAmount'],
|
|
195
|
+
'filled_base_amount': value['filledBaseAmount'],
|
|
196
|
+
'filled_quote_amount': value['filledQuoteAmount'],
|
|
197
|
+
'price': value['price'],
|
|
198
|
+
'base_size': value['baseSize'],
|
|
199
|
+
'base_price': value['basePrice'],
|
|
200
|
+
'nonce': value['nonce'],
|
|
201
|
+
'is_ask': value['isAsk'],
|
|
202
|
+
'side': value['side'],
|
|
203
|
+
'type': value['type'],
|
|
204
|
+
'status': value['status'],
|
|
205
|
+
'block_height': value['blockHeight'],
|
|
206
|
+
'timestamp': value['timestamp'],
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
@@ -0,0 +1,143 @@
|
|
|
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 OrderBook
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderBook {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrderBook
|
|
26
|
+
*/
|
|
27
|
+
symbol?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof OrderBook
|
|
32
|
+
*/
|
|
33
|
+
marketId?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrderBook
|
|
38
|
+
*/
|
|
39
|
+
status?: OrderBookStatusEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof OrderBook
|
|
44
|
+
*/
|
|
45
|
+
takerFee?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof OrderBook
|
|
50
|
+
*/
|
|
51
|
+
makerFee?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof OrderBook
|
|
56
|
+
*/
|
|
57
|
+
minBaseAmount?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof OrderBook
|
|
62
|
+
*/
|
|
63
|
+
minQuoteAmount?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof OrderBook
|
|
68
|
+
*/
|
|
69
|
+
supportedSizeDecimals?: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof OrderBook
|
|
74
|
+
*/
|
|
75
|
+
supportedPriceDecimals?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof OrderBook
|
|
80
|
+
*/
|
|
81
|
+
supportedQuoteDecimals?: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const OrderBookStatusEnum = {
|
|
89
|
+
Frozen: 'frozen',
|
|
90
|
+
Active: 'active'
|
|
91
|
+
} as const;
|
|
92
|
+
export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the OrderBook interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfOrderBook(value: object): value is OrderBook {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function OrderBookFromJSON(json: any): OrderBook {
|
|
103
|
+
return OrderBookFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function OrderBookFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderBook {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'symbol': json['symbol'] == null ? undefined : json['symbol'],
|
|
113
|
+
'marketId': json['market_id'] == null ? undefined : json['market_id'],
|
|
114
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
115
|
+
'takerFee': json['taker_fee'] == null ? undefined : json['taker_fee'],
|
|
116
|
+
'makerFee': json['maker_fee'] == null ? undefined : json['maker_fee'],
|
|
117
|
+
'minBaseAmount': json['min_base_amount'] == null ? undefined : json['min_base_amount'],
|
|
118
|
+
'minQuoteAmount': json['min_quote_amount'] == null ? undefined : json['min_quote_amount'],
|
|
119
|
+
'supportedSizeDecimals': json['supported_size_decimals'] == null ? undefined : json['supported_size_decimals'],
|
|
120
|
+
'supportedPriceDecimals': json['supported_price_decimals'] == null ? undefined : json['supported_price_decimals'],
|
|
121
|
+
'supportedQuoteDecimals': json['supported_quote_decimals'] == null ? undefined : json['supported_quote_decimals'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function OrderBookToJSON(value?: OrderBook | null): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'symbol': value['symbol'],
|
|
132
|
+
'market_id': value['marketId'],
|
|
133
|
+
'status': value['status'],
|
|
134
|
+
'taker_fee': value['takerFee'],
|
|
135
|
+
'maker_fee': value['makerFee'],
|
|
136
|
+
'min_base_amount': value['minBaseAmount'],
|
|
137
|
+
'min_quote_amount': value['minQuoteAmount'],
|
|
138
|
+
'supported_size_decimals': value['supportedSizeDecimals'],
|
|
139
|
+
'supported_price_decimals': value['supportedPriceDecimals'],
|
|
140
|
+
'supported_quote_decimals': value['supportedQuoteDecimals'],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
import type { PriceLevel } from './PriceLevel';
|
|
17
|
+
import {
|
|
18
|
+
PriceLevelFromJSON,
|
|
19
|
+
PriceLevelFromJSONTyped,
|
|
20
|
+
PriceLevelToJSON,
|
|
21
|
+
} from './PriceLevel';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface OrderBookDepth
|
|
27
|
+
*/
|
|
28
|
+
export interface OrderBookDepth {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof OrderBookDepth
|
|
33
|
+
*/
|
|
34
|
+
code?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof OrderBookDepth
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<PriceLevel>}
|
|
44
|
+
* @memberof OrderBookDepth
|
|
45
|
+
*/
|
|
46
|
+
asks?: Array<PriceLevel>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<PriceLevel>}
|
|
50
|
+
* @memberof OrderBookDepth
|
|
51
|
+
*/
|
|
52
|
+
bids?: Array<PriceLevel>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof OrderBookDepth
|
|
57
|
+
*/
|
|
58
|
+
offset?: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the OrderBookDepth interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfOrderBookDepth(value: object): value is OrderBookDepth {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function OrderBookDepthFromJSON(json: any): OrderBookDepth {
|
|
69
|
+
return OrderBookDepthFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function OrderBookDepthFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderBookDepth {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
79
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
80
|
+
'asks': json['asks'] == null ? undefined : ((json['asks'] as Array<any>).map(PriceLevelFromJSON)),
|
|
81
|
+
'bids': json['bids'] == null ? undefined : ((json['bids'] as Array<any>).map(PriceLevelFromJSON)),
|
|
82
|
+
'offset': json['offset'] == null ? undefined : json['offset'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function OrderBookDepthToJSON(value?: OrderBookDepth | null): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'code': value['code'],
|
|
93
|
+
'message': value['message'],
|
|
94
|
+
'asks': value['asks'] == null ? undefined : ((value['asks'] as Array<any>).map(PriceLevelToJSON)),
|
|
95
|
+
'bids': value['bids'] == null ? undefined : ((value['bids'] as Array<any>).map(PriceLevelToJSON)),
|
|
96
|
+
'offset': value['offset'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|