zklighter-perps 1.0.5 → 1.0.6
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/apis/AccountApi.ts +12 -0
- package/apis/BlockApi.ts +6 -3
- package/apis/CandlestickApi.ts +4 -3
- package/apis/InfoApi.ts +8 -3
- package/apis/OrderApi.ts +18 -3
- package/apis/RelayerApi.ts +2 -3
- package/apis/RootApi.ts +2 -69
- package/apis/TransactionApi.ts +26 -37
- package/apis/WsApi.ts +4 -0
- package/models/AccountMarketStats.ts +12 -18
- package/models/AccountPnL.ts +5 -7
- package/models/AccountPosition.ts +22 -33
- package/models/AccountStats.ts +10 -15
- package/models/Block.ts +27 -40
- package/models/Blocks.ts +5 -7
- package/models/Candlestick.ts +14 -21
- package/models/Candlesticks.ts +5 -7
- package/models/ContractAddress.ts +4 -6
- package/models/CurrentHeight.ts +2 -3
- package/models/DetailedAccount.ts +8 -11
- package/models/DetailedAccounts.ts +5 -7
- package/models/EnrichedTx.ts +6 -9
- package/models/ExchangeStats.ts +9 -13
- package/models/Funding.ts +8 -12
- package/models/Fundings.ts +5 -7
- package/models/L1ProviderInfo.ts +8 -12
- package/models/Layer1BasicInfo.ts +17 -24
- package/models/Layer2BasicInfo.ts +6 -9
- package/models/MainAccount.ts +6 -9
- package/models/MainAccounts.ts +5 -7
- package/models/MarketInfo.ts +22 -33
- package/models/MarketSig.ts +8 -12
- package/models/NextNonce.ts +2 -3
- package/models/Order.ts +32 -48
- package/models/OrderBook.ts +20 -30
- package/models/OrderBookDepth.ts +8 -11
- package/models/OrderBookDetail.ts +36 -54
- package/models/OrderBookDetails.ts +3 -4
- package/models/OrderBookOrders.ts +10 -14
- package/models/OrderBookStats.ts +12 -18
- package/models/OrderBooks.ts +3 -4
- package/models/Orders.ts +3 -4
- package/models/Permission.ts +2 -3
- package/models/PnLEntry.ts +4 -6
- package/models/PriceLevel.ts +4 -6
- package/models/ReqDoFaucet.ts +2 -3
- package/models/ReqGetAccount.ts +4 -6
- package/models/ReqGetAccountActiveOrders.ts +6 -9
- package/models/ReqGetAccountByL1Address.ts +2 -3
- package/models/ReqGetAccountInactiveOrders.ts +8 -12
- package/models/ReqGetAccountOrders.ts +6 -9
- package/models/ReqGetAccountPnL.ts +12 -18
- package/models/ReqGetBlock.ts +4 -6
- package/models/ReqGetBlockTxs.ts +4 -6
- package/models/ReqGetByAccount.ts +4 -6
- package/models/ReqGetCandlesticks.ts +10 -15
- package/models/ReqGetFundings.ts +10 -15
- package/models/ReqGetL1Tx.ts +2 -3
- package/models/ReqGetMarketSig.ts +6 -9
- package/models/ReqGetNextNonce.ts +4 -6
- package/models/ReqGetOrderBookDetails.ts +2 -3
- package/models/ReqGetOrderBookOrders.ts +4 -6
- package/models/ReqGetOrderBooks.ts +2 -3
- package/models/ReqGetPermission.ts +6 -9
- package/models/ReqGetRangeWithCursor.ts +2 -3
- package/models/ReqGetRangeWithIndex.ts +2 -3
- package/models/ReqGetRecentTrades.ts +4 -6
- package/models/ReqGetRollbacks.ts +6 -9
- package/models/ReqGetSubAccount.ts +6 -9
- package/models/ReqGetTrades.ts +8 -12
- package/models/ReqGetTx.ts +4 -6
- package/models/ReqSearch.ts +2 -3
- package/models/ResultCode.ts +2 -3
- package/models/Rollback.ts +8 -12
- package/models/Rollbacks.ts +5 -7
- package/models/Search.ts +2 -3
- package/models/SignBody.ts +2 -3
- package/models/SimpleOrder.ts +12 -18
- package/models/Status.ts +4 -6
- package/models/SubAccount.ts +16 -24
- package/models/SubAccounts.ts +9 -13
- package/models/Trade.ts +24 -36
- package/models/Trades.ts +3 -4
- package/models/Tx.ts +28 -42
- package/models/TxHash.ts +2 -3
- package/models/Txs.ts +3 -4
- package/models/ValidatorInfo.ts +4 -6
- package/openapi.json +191 -891
- package/package.json +1 -1
package/models/OrderBookStats.ts
CHANGED
|
@@ -24,49 +24,43 @@ export interface OrderBookStats {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof OrderBookStats
|
|
26
26
|
*/
|
|
27
|
-
symbol
|
|
27
|
+
symbol?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof OrderBookStats
|
|
32
32
|
*/
|
|
33
|
-
lastTradePrice
|
|
33
|
+
lastTradePrice?: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof OrderBookStats
|
|
38
38
|
*/
|
|
39
|
-
dailyTradesCount
|
|
39
|
+
dailyTradesCount?: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof OrderBookStats
|
|
44
44
|
*/
|
|
45
|
-
dailyBaseTokenVolume
|
|
45
|
+
dailyBaseTokenVolume?: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
49
|
* @memberof OrderBookStats
|
|
50
50
|
*/
|
|
51
|
-
dailyQuoteTokenVolume
|
|
51
|
+
dailyQuoteTokenVolume?: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof OrderBookStats
|
|
56
56
|
*/
|
|
57
|
-
dailyPriceChange
|
|
57
|
+
dailyPriceChange?: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Check if a given object implements the OrderBookStats interface.
|
|
62
62
|
*/
|
|
63
63
|
export function instanceOfOrderBookStats(value: object): value is OrderBookStats {
|
|
64
|
-
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
65
|
-
if (!('lastTradePrice' in value) || value['lastTradePrice'] === undefined) return false;
|
|
66
|
-
if (!('dailyTradesCount' in value) || value['dailyTradesCount'] === undefined) return false;
|
|
67
|
-
if (!('dailyBaseTokenVolume' in value) || value['dailyBaseTokenVolume'] === undefined) return false;
|
|
68
|
-
if (!('dailyQuoteTokenVolume' in value) || value['dailyQuoteTokenVolume'] === undefined) return false;
|
|
69
|
-
if (!('dailyPriceChange' in value) || value['dailyPriceChange'] === undefined) return false;
|
|
70
64
|
return true;
|
|
71
65
|
}
|
|
72
66
|
|
|
@@ -80,12 +74,12 @@ export function OrderBookStatsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
80
74
|
}
|
|
81
75
|
return {
|
|
82
76
|
|
|
83
|
-
'symbol': json['symbol'],
|
|
84
|
-
'lastTradePrice': json['last_trade_price'],
|
|
85
|
-
'dailyTradesCount': json['daily_trades_count'],
|
|
86
|
-
'dailyBaseTokenVolume': json['daily_base_token_volume'],
|
|
87
|
-
'dailyQuoteTokenVolume': json['daily_quote_token_volume'],
|
|
88
|
-
'dailyPriceChange': json['daily_price_change'],
|
|
77
|
+
'symbol': json['symbol'] == null ? undefined : json['symbol'],
|
|
78
|
+
'lastTradePrice': json['last_trade_price'] == null ? undefined : json['last_trade_price'],
|
|
79
|
+
'dailyTradesCount': json['daily_trades_count'] == null ? undefined : json['daily_trades_count'],
|
|
80
|
+
'dailyBaseTokenVolume': json['daily_base_token_volume'] == null ? undefined : json['daily_base_token_volume'],
|
|
81
|
+
'dailyQuoteTokenVolume': json['daily_quote_token_volume'] == null ? undefined : json['daily_quote_token_volume'],
|
|
82
|
+
'dailyPriceChange': json['daily_price_change'] == null ? undefined : json['daily_price_change'],
|
|
89
83
|
};
|
|
90
84
|
}
|
|
91
85
|
|
package/models/OrderBooks.ts
CHANGED
|
@@ -43,14 +43,13 @@ export interface OrderBooks {
|
|
|
43
43
|
* @type {Array<OrderBook>}
|
|
44
44
|
* @memberof OrderBooks
|
|
45
45
|
*/
|
|
46
|
-
orderBooks
|
|
46
|
+
orderBooks?: Array<OrderBook>;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the OrderBooks interface.
|
|
51
51
|
*/
|
|
52
52
|
export function instanceOfOrderBooks(value: object): value is OrderBooks {
|
|
53
|
-
if (!('orderBooks' in value) || value['orderBooks'] === undefined) return false;
|
|
54
53
|
return true;
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -66,7 +65,7 @@ export function OrderBooksFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
66
65
|
|
|
67
66
|
'code': json['code'] == null ? undefined : json['code'],
|
|
68
67
|
'message': json['message'] == null ? undefined : json['message'],
|
|
69
|
-
'orderBooks': ((json['order_books'] as Array<any>).map(OrderBookFromJSON)),
|
|
68
|
+
'orderBooks': json['order_books'] == null ? undefined : ((json['order_books'] as Array<any>).map(OrderBookFromJSON)),
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
|
|
@@ -78,7 +77,7 @@ export function OrderBooksToJSON(value?: OrderBooks | null): any {
|
|
|
78
77
|
|
|
79
78
|
'code': value['code'],
|
|
80
79
|
'message': value['message'],
|
|
81
|
-
'order_books': ((value['orderBooks'] as Array<any>).map(OrderBookToJSON)),
|
|
80
|
+
'order_books': value['orderBooks'] == null ? undefined : ((value['orderBooks'] as Array<any>).map(OrderBookToJSON)),
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
83
|
|
package/models/Orders.ts
CHANGED
|
@@ -49,14 +49,13 @@ export interface Orders {
|
|
|
49
49
|
* @type {Array<Order>}
|
|
50
50
|
* @memberof Orders
|
|
51
51
|
*/
|
|
52
|
-
orders
|
|
52
|
+
orders?: Array<Order>;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the Orders interface.
|
|
57
57
|
*/
|
|
58
58
|
export function instanceOfOrders(value: object): value is Orders {
|
|
59
|
-
if (!('orders' in value) || value['orders'] === undefined) return false;
|
|
60
59
|
return true;
|
|
61
60
|
}
|
|
62
61
|
|
|
@@ -73,7 +72,7 @@ export function OrdersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Or
|
|
|
73
72
|
'code': json['code'] == null ? undefined : json['code'],
|
|
74
73
|
'message': json['message'] == null ? undefined : json['message'],
|
|
75
74
|
'next': json['next'] == null ? undefined : json['next'],
|
|
76
|
-
'orders': ((json['orders'] as Array<any>).map(OrderFromJSON)),
|
|
75
|
+
'orders': json['orders'] == null ? undefined : ((json['orders'] as Array<any>).map(OrderFromJSON)),
|
|
77
76
|
};
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -86,7 +85,7 @@ export function OrdersToJSON(value?: Orders | null): any {
|
|
|
86
85
|
'code': value['code'],
|
|
87
86
|
'message': value['message'],
|
|
88
87
|
'next': value['next'],
|
|
89
|
-
'orders': ((value['orders'] as Array<any>).map(OrderToJSON)),
|
|
88
|
+
'orders': value['orders'] == null ? undefined : ((value['orders'] as Array<any>).map(OrderToJSON)),
|
|
90
89
|
};
|
|
91
90
|
}
|
|
92
91
|
|
package/models/Permission.ts
CHANGED
|
@@ -36,14 +36,13 @@ export interface Permission {
|
|
|
36
36
|
* @type {boolean}
|
|
37
37
|
* @memberof Permission
|
|
38
38
|
*/
|
|
39
|
-
permit
|
|
39
|
+
permit?: boolean;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the Permission interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfPermission(value: object): value is Permission {
|
|
46
|
-
if (!('permit' in value) || value['permit'] === undefined) return false;
|
|
47
46
|
return true;
|
|
48
47
|
}
|
|
49
48
|
|
|
@@ -59,7 +58,7 @@ export function PermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
59
58
|
|
|
60
59
|
'code': json['code'] == null ? undefined : json['code'],
|
|
61
60
|
'message': json['message'] == null ? undefined : json['message'],
|
|
62
|
-
'permit': json['permit'],
|
|
61
|
+
'permit': json['permit'] == null ? undefined : json['permit'],
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
64
|
|
package/models/PnLEntry.ts
CHANGED
|
@@ -24,21 +24,19 @@ export interface PnLEntry {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof PnLEntry
|
|
26
26
|
*/
|
|
27
|
-
timestamp
|
|
27
|
+
timestamp?: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof PnLEntry
|
|
32
32
|
*/
|
|
33
|
-
value
|
|
33
|
+
value?: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the PnLEntry interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfPnLEntry(value: object): value is PnLEntry {
|
|
40
|
-
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
41
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
40
|
return true;
|
|
43
41
|
}
|
|
44
42
|
|
|
@@ -52,8 +50,8 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
54
52
|
|
|
55
|
-
'timestamp': json['timestamp'],
|
|
56
|
-
'value': json['value'],
|
|
53
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
54
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
|
package/models/PriceLevel.ts
CHANGED
|
@@ -24,21 +24,19 @@ export interface PriceLevel {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof PriceLevel
|
|
26
26
|
*/
|
|
27
|
-
price
|
|
27
|
+
price?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PriceLevel
|
|
32
32
|
*/
|
|
33
|
-
size
|
|
33
|
+
size?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the PriceLevel interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfPriceLevel(value: object): value is PriceLevel {
|
|
40
|
-
if (!('price' in value) || value['price'] === undefined) return false;
|
|
41
|
-
if (!('size' in value) || value['size'] === undefined) return false;
|
|
42
40
|
return true;
|
|
43
41
|
}
|
|
44
42
|
|
|
@@ -52,8 +50,8 @@ export function PriceLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
54
52
|
|
|
55
|
-
'price': json['price'],
|
|
56
|
-
'size': json['size'],
|
|
53
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
54
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
|
package/models/ReqDoFaucet.ts
CHANGED
|
@@ -24,14 +24,13 @@ export interface ReqDoFaucet {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqDoFaucet
|
|
26
26
|
*/
|
|
27
|
-
l1Address
|
|
27
|
+
l1Address?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the ReqDoFaucet interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfReqDoFaucet(value: object): value is ReqDoFaucet {
|
|
34
|
-
if (!('l1Address' in value) || value['l1Address'] === undefined) return false;
|
|
35
34
|
return true;
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -45,7 +44,7 @@ export function ReqDoFaucetFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
45
44
|
}
|
|
46
45
|
return {
|
|
47
46
|
|
|
48
|
-
'l1Address': json['l1_address'],
|
|
47
|
+
'l1Address': json['l1_address'] == null ? undefined : json['l1_address'],
|
|
49
48
|
};
|
|
50
49
|
}
|
|
51
50
|
|
package/models/ReqGetAccount.ts
CHANGED
|
@@ -24,13 +24,13 @@ export interface ReqGetAccount {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetAccount
|
|
26
26
|
*/
|
|
27
|
-
by
|
|
27
|
+
by?: ReqGetAccountByEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ReqGetAccount
|
|
32
32
|
*/
|
|
33
|
-
value
|
|
33
|
+
value?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -48,8 +48,6 @@ export type ReqGetAccountByEnum = typeof ReqGetAccountByEnum[keyof typeof ReqGet
|
|
|
48
48
|
* Check if a given object implements the ReqGetAccount interface.
|
|
49
49
|
*/
|
|
50
50
|
export function instanceOfReqGetAccount(value: object): value is ReqGetAccount {
|
|
51
|
-
if (!('by' in value) || value['by'] === undefined) return false;
|
|
52
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
53
51
|
return true;
|
|
54
52
|
}
|
|
55
53
|
|
|
@@ -63,8 +61,8 @@ export function ReqGetAccountFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
63
61
|
}
|
|
64
62
|
return {
|
|
65
63
|
|
|
66
|
-
'by': json['by'],
|
|
67
|
-
'value': json['value'],
|
|
64
|
+
'by': json['by'] == null ? undefined : json['by'],
|
|
65
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
|
|
@@ -24,28 +24,25 @@ export interface ReqGetAccountActiveOrders {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetAccountActiveOrders
|
|
26
26
|
*/
|
|
27
|
-
accountIndex
|
|
27
|
+
accountIndex?: number;
|
|
28
28
|
/**
|
|
29
29
|
* NilSubAccountIndex
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetAccountActiveOrders
|
|
32
32
|
*/
|
|
33
|
-
subAccountIndex
|
|
33
|
+
subAccountIndex?: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof ReqGetAccountActiveOrders
|
|
38
38
|
*/
|
|
39
|
-
marketId
|
|
39
|
+
marketId?: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the ReqGetAccountActiveOrders interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfReqGetAccountActiveOrders(value: object): value is ReqGetAccountActiveOrders {
|
|
46
|
-
if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
|
|
47
|
-
if (!('subAccountIndex' in value) || value['subAccountIndex'] === undefined) return false;
|
|
48
|
-
if (!('marketId' in value) || value['marketId'] === undefined) return false;
|
|
49
46
|
return true;
|
|
50
47
|
}
|
|
51
48
|
|
|
@@ -59,9 +56,9 @@ export function ReqGetAccountActiveOrdersFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
59
56
|
}
|
|
60
57
|
return {
|
|
61
58
|
|
|
62
|
-
'accountIndex': json['account_index'],
|
|
63
|
-
'subAccountIndex': json['sub_account_index'],
|
|
64
|
-
'marketId': json['market_id'],
|
|
59
|
+
'accountIndex': json['account_index'] == null ? undefined : json['account_index'],
|
|
60
|
+
'subAccountIndex': json['sub_account_index'] == null ? undefined : json['sub_account_index'],
|
|
61
|
+
'marketId': json['market_id'] == null ? undefined : json['market_id'],
|
|
65
62
|
};
|
|
66
63
|
}
|
|
67
64
|
|
|
@@ -24,14 +24,13 @@ export interface ReqGetAccountByL1Address {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetAccountByL1Address
|
|
26
26
|
*/
|
|
27
|
-
l1Address
|
|
27
|
+
l1Address?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the ReqGetAccountByL1Address interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfReqGetAccountByL1Address(value: object): value is ReqGetAccountByL1Address {
|
|
34
|
-
if (!('l1Address' in value) || value['l1Address'] === undefined) return false;
|
|
35
34
|
return true;
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -45,7 +44,7 @@ export function ReqGetAccountByL1AddressFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
45
44
|
}
|
|
46
45
|
return {
|
|
47
46
|
|
|
48
|
-
'l1Address': json['l1_address'],
|
|
47
|
+
'l1Address': json['l1_address'] == null ? undefined : json['l1_address'],
|
|
49
48
|
};
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -24,19 +24,19 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetAccountInactiveOrders
|
|
26
26
|
*/
|
|
27
|
-
accountIndex
|
|
27
|
+
accountIndex?: number;
|
|
28
28
|
/**
|
|
29
29
|
* NilSubAccountIndex
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetAccountInactiveOrders
|
|
32
32
|
*/
|
|
33
|
-
subAccountIndex
|
|
33
|
+
subAccountIndex?: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ReqGetAccountInactiveOrders
|
|
38
38
|
*/
|
|
39
|
-
filter
|
|
39
|
+
filter?: ReqGetAccountInactiveOrdersFilterEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -54,7 +54,7 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof ReqGetAccountInactiveOrders
|
|
56
56
|
*/
|
|
57
|
-
limit
|
|
57
|
+
limit?: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
@@ -72,10 +72,6 @@ export type ReqGetAccountInactiveOrdersFilterEnum = typeof ReqGetAccountInactive
|
|
|
72
72
|
* Check if a given object implements the ReqGetAccountInactiveOrders interface.
|
|
73
73
|
*/
|
|
74
74
|
export function instanceOfReqGetAccountInactiveOrders(value: object): value is ReqGetAccountInactiveOrders {
|
|
75
|
-
if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
|
|
76
|
-
if (!('subAccountIndex' in value) || value['subAccountIndex'] === undefined) return false;
|
|
77
|
-
if (!('filter' in value) || value['filter'] === undefined) return false;
|
|
78
|
-
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
79
75
|
return true;
|
|
80
76
|
}
|
|
81
77
|
|
|
@@ -89,12 +85,12 @@ export function ReqGetAccountInactiveOrdersFromJSONTyped(json: any, ignoreDiscri
|
|
|
89
85
|
}
|
|
90
86
|
return {
|
|
91
87
|
|
|
92
|
-
'accountIndex': json['account_index'],
|
|
93
|
-
'subAccountIndex': json['sub_account_index'],
|
|
94
|
-
'filter': json['filter'],
|
|
88
|
+
'accountIndex': json['account_index'] == null ? undefined : json['account_index'],
|
|
89
|
+
'subAccountIndex': json['sub_account_index'] == null ? undefined : json['sub_account_index'],
|
|
90
|
+
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
95
91
|
'marketId': json['market_id'] == null ? undefined : json['market_id'],
|
|
96
92
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
97
|
-
'limit': json['limit'],
|
|
93
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
98
94
|
};
|
|
99
95
|
}
|
|
100
96
|
|
|
@@ -24,13 +24,13 @@ export interface ReqGetAccountOrders {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetAccountOrders
|
|
26
26
|
*/
|
|
27
|
-
accountIndex
|
|
27
|
+
accountIndex?: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetAccountOrders
|
|
32
32
|
*/
|
|
33
|
-
marketId
|
|
33
|
+
marketId?: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,16 +42,13 @@ export interface ReqGetAccountOrders {
|
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof ReqGetAccountOrders
|
|
44
44
|
*/
|
|
45
|
-
limit
|
|
45
|
+
limit?: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Check if a given object implements the ReqGetAccountOrders interface.
|
|
50
50
|
*/
|
|
51
51
|
export function instanceOfReqGetAccountOrders(value: object): value is ReqGetAccountOrders {
|
|
52
|
-
if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
|
|
53
|
-
if (!('marketId' in value) || value['marketId'] === undefined) return false;
|
|
54
|
-
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
55
52
|
return true;
|
|
56
53
|
}
|
|
57
54
|
|
|
@@ -65,10 +62,10 @@ export function ReqGetAccountOrdersFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
65
62
|
}
|
|
66
63
|
return {
|
|
67
64
|
|
|
68
|
-
'accountIndex': json['account_index'],
|
|
69
|
-
'marketId': json['market_id'],
|
|
65
|
+
'accountIndex': json['account_index'] == null ? undefined : json['account_index'],
|
|
66
|
+
'marketId': json['market_id'] == null ? undefined : json['market_id'],
|
|
70
67
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
71
|
-
'limit': json['limit'],
|
|
68
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
72
69
|
};
|
|
73
70
|
}
|
|
74
71
|
|
|
@@ -24,37 +24,37 @@ export interface ReqGetAccountPnL {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetAccountPnL
|
|
26
26
|
*/
|
|
27
|
-
by
|
|
27
|
+
by?: ReqGetAccountPnLByEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ReqGetAccountPnL
|
|
32
32
|
*/
|
|
33
|
-
value
|
|
33
|
+
value?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ReqGetAccountPnL
|
|
38
38
|
*/
|
|
39
|
-
resolution
|
|
39
|
+
resolution?: ReqGetAccountPnLResolutionEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof ReqGetAccountPnL
|
|
44
44
|
*/
|
|
45
|
-
startTimestamp
|
|
45
|
+
startTimestamp?: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
49
|
* @memberof ReqGetAccountPnL
|
|
50
50
|
*/
|
|
51
|
-
endTimestamp
|
|
51
|
+
endTimestamp?: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof ReqGetAccountPnL
|
|
56
56
|
*/
|
|
57
|
-
countBack
|
|
57
|
+
countBack?: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
@@ -85,12 +85,6 @@ export type ReqGetAccountPnLResolutionEnum = typeof ReqGetAccountPnLResolutionEn
|
|
|
85
85
|
* Check if a given object implements the ReqGetAccountPnL interface.
|
|
86
86
|
*/
|
|
87
87
|
export function instanceOfReqGetAccountPnL(value: object): value is ReqGetAccountPnL {
|
|
88
|
-
if (!('by' in value) || value['by'] === undefined) return false;
|
|
89
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
90
|
-
if (!('resolution' in value) || value['resolution'] === undefined) return false;
|
|
91
|
-
if (!('startTimestamp' in value) || value['startTimestamp'] === undefined) return false;
|
|
92
|
-
if (!('endTimestamp' in value) || value['endTimestamp'] === undefined) return false;
|
|
93
|
-
if (!('countBack' in value) || value['countBack'] === undefined) return false;
|
|
94
88
|
return true;
|
|
95
89
|
}
|
|
96
90
|
|
|
@@ -104,12 +98,12 @@ export function ReqGetAccountPnLFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
104
98
|
}
|
|
105
99
|
return {
|
|
106
100
|
|
|
107
|
-
'by': json['by'],
|
|
108
|
-
'value': json['value'],
|
|
109
|
-
'resolution': json['resolution'],
|
|
110
|
-
'startTimestamp': json['start_timestamp'],
|
|
111
|
-
'endTimestamp': json['end_timestamp'],
|
|
112
|
-
'countBack': json['count_back'],
|
|
101
|
+
'by': json['by'] == null ? undefined : json['by'],
|
|
102
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
103
|
+
'resolution': json['resolution'] == null ? undefined : json['resolution'],
|
|
104
|
+
'startTimestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'],
|
|
105
|
+
'endTimestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'],
|
|
106
|
+
'countBack': json['count_back'] == null ? undefined : json['count_back'],
|
|
113
107
|
};
|
|
114
108
|
}
|
|
115
109
|
|
package/models/ReqGetBlock.ts
CHANGED
|
@@ -24,13 +24,13 @@ export interface ReqGetBlock {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetBlock
|
|
26
26
|
*/
|
|
27
|
-
by
|
|
27
|
+
by?: ReqGetBlockByEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ReqGetBlock
|
|
32
32
|
*/
|
|
33
|
-
value
|
|
33
|
+
value?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -48,8 +48,6 @@ export type ReqGetBlockByEnum = typeof ReqGetBlockByEnum[keyof typeof ReqGetBloc
|
|
|
48
48
|
* Check if a given object implements the ReqGetBlock interface.
|
|
49
49
|
*/
|
|
50
50
|
export function instanceOfReqGetBlock(value: object): value is ReqGetBlock {
|
|
51
|
-
if (!('by' in value) || value['by'] === undefined) return false;
|
|
52
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
53
51
|
return true;
|
|
54
52
|
}
|
|
55
53
|
|
|
@@ -63,8 +61,8 @@ export function ReqGetBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
63
61
|
}
|
|
64
62
|
return {
|
|
65
63
|
|
|
66
|
-
'by': json['by'],
|
|
67
|
-
'value': json['value'],
|
|
64
|
+
'by': json['by'] == null ? undefined : json['by'],
|
|
65
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
|
package/models/ReqGetBlockTxs.ts
CHANGED
|
@@ -24,13 +24,13 @@ export interface ReqGetBlockTxs {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetBlockTxs
|
|
26
26
|
*/
|
|
27
|
-
by
|
|
27
|
+
by?: ReqGetBlockTxsByEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ReqGetBlockTxs
|
|
32
32
|
*/
|
|
33
|
-
value
|
|
33
|
+
value?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -48,8 +48,6 @@ export type ReqGetBlockTxsByEnum = typeof ReqGetBlockTxsByEnum[keyof typeof ReqG
|
|
|
48
48
|
* Check if a given object implements the ReqGetBlockTxs interface.
|
|
49
49
|
*/
|
|
50
50
|
export function instanceOfReqGetBlockTxs(value: object): value is ReqGetBlockTxs {
|
|
51
|
-
if (!('by' in value) || value['by'] === undefined) return false;
|
|
52
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
53
51
|
return true;
|
|
54
52
|
}
|
|
55
53
|
|
|
@@ -63,8 +61,8 @@ export function ReqGetBlockTxsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
63
61
|
}
|
|
64
62
|
return {
|
|
65
63
|
|
|
66
|
-
'by': json['by'],
|
|
67
|
-
'value': json['value'],
|
|
64
|
+
'by': json['by'] == null ? undefined : json['by'],
|
|
65
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
|
|
@@ -24,13 +24,13 @@ export interface ReqGetByAccount {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetByAccount
|
|
26
26
|
*/
|
|
27
|
-
by
|
|
27
|
+
by?: ReqGetByAccountByEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ReqGetByAccount
|
|
32
32
|
*/
|
|
33
|
-
value
|
|
33
|
+
value?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -48,8 +48,6 @@ export type ReqGetByAccountByEnum = typeof ReqGetByAccountByEnum[keyof typeof Re
|
|
|
48
48
|
* Check if a given object implements the ReqGetByAccount interface.
|
|
49
49
|
*/
|
|
50
50
|
export function instanceOfReqGetByAccount(value: object): value is ReqGetByAccount {
|
|
51
|
-
if (!('by' in value) || value['by'] === undefined) return false;
|
|
52
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
53
51
|
return true;
|
|
54
52
|
}
|
|
55
53
|
|
|
@@ -63,8 +61,8 @@ export function ReqGetByAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
63
61
|
}
|
|
64
62
|
return {
|
|
65
63
|
|
|
66
|
-
'by': json['by'],
|
|
67
|
-
'value': json['value'],
|
|
64
|
+
'by': json['by'] == null ? undefined : json['by'],
|
|
65
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
|