zklighter-perps 1.0.10 → 1.0.12

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.
Files changed (64) hide show
  1. package/apis/AccountApi.ts +81 -81
  2. package/apis/BlockApi.ts +14 -14
  3. package/apis/CandlestickApi.ts +65 -65
  4. package/apis/InfoApi.ts +6 -6
  5. package/apis/OrderApi.ts +101 -101
  6. package/apis/TransactionApi.ts +76 -76
  7. package/config.yaml +5 -2
  8. package/models/AccountMarketStats.ts +24 -24
  9. package/models/AccountPosition.ts +28 -28
  10. package/models/AccountStats.ts +16 -16
  11. package/models/Block.ts +32 -32
  12. package/models/DetailedAccount.ts +17 -17
  13. package/models/EnrichedTx.ts +39 -39
  14. package/models/ExchangeStats.ts +12 -12
  15. package/models/L1ProviderInfo.ts +4 -4
  16. package/models/Layer1BasicInfo.ts +28 -28
  17. package/models/Layer2BasicInfo.ts +12 -12
  18. package/models/MainAccount.ts +4 -4
  19. package/models/MarketInfo.ts +44 -44
  20. package/models/Order.ts +55 -57
  21. package/models/OrderBook.ts +43 -44
  22. package/models/OrderBookDetail.ts +102 -103
  23. package/models/OrderBookDetails.ts +4 -4
  24. package/models/OrderBookOrders.ts +8 -8
  25. package/models/OrderBookStats.ts +20 -20
  26. package/models/OrderBooks.ts +4 -4
  27. package/models/ReqDoFaucet.ts +4 -4
  28. package/models/ReqGetAccount.ts +7 -8
  29. package/models/ReqGetAccountActiveOrders.ts +12 -12
  30. package/models/ReqGetAccountByL1Address.ts +4 -4
  31. package/models/ReqGetAccountInactiveOrders.ts +18 -19
  32. package/models/ReqGetAccountOrders.ts +8 -8
  33. package/models/ReqGetAccountPendingTxs.ts +7 -8
  34. package/models/ReqGetAccountPnL.ts +30 -32
  35. package/models/ReqGetAccountTxs.ts +7 -8
  36. package/models/ReqGetBlock.ts +7 -8
  37. package/models/ReqGetBlockTxs.ts +7 -8
  38. package/models/ReqGetByAccount.ts +7 -8
  39. package/models/ReqGetCandlesticks.ts +27 -28
  40. package/models/ReqGetFundings.ts +22 -23
  41. package/models/ReqGetNextNonce.ts +8 -8
  42. package/models/ReqGetOrderBookDetails.ts +10 -11
  43. package/models/ReqGetOrderBookOrders.ts +4 -4
  44. package/models/ReqGetOrderBooks.ts +10 -11
  45. package/models/ReqGetPermission.ts +11 -12
  46. package/models/ReqGetRangeWithIndexSortable.ts +7 -8
  47. package/models/ReqGetRecentTrades.ts +4 -4
  48. package/models/ReqGetRollbacks.ts +4 -4
  49. package/models/ReqGetSubAccount.ts +11 -12
  50. package/models/ReqGetTrades.ts +15 -16
  51. package/models/ReqGetTx.ts +7 -8
  52. package/models/Rollback.ts +12 -12
  53. package/models/Search.ts +4 -4
  54. package/models/SignBody.ts +4 -4
  55. package/models/SimpleOrder.ts +16 -16
  56. package/models/Status.ts +4 -4
  57. package/models/SubAccount.ts +12 -12
  58. package/models/SubAccounts.ts +8 -8
  59. package/models/Trade.ts +36 -36
  60. package/models/Tx.ts +36 -36
  61. package/models/TxHash.ts +4 -4
  62. package/models/TxHashes.ts +4 -4
  63. package/models/ValidatorInfo.ts +4 -4
  64. package/package.json +1 -1
@@ -24,49 +24,49 @@ export interface AccountMarketStats {
24
24
  * @type {number}
25
25
  * @memberof AccountMarketStats
26
26
  */
27
- marketId: number;
27
+ market_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
31
  * @memberof AccountMarketStats
32
32
  */
33
- dailyTradesCount: number;
33
+ daily_trades_count: number;
34
34
  /**
35
35
  *
36
36
  * @type {number}
37
37
  * @memberof AccountMarketStats
38
38
  */
39
- dailyBaseTokenVolume: number;
39
+ daily_base_token_volume: number;
40
40
  /**
41
41
  *
42
42
  * @type {number}
43
43
  * @memberof AccountMarketStats
44
44
  */
45
- dailyQuoteTokenVolume: number;
45
+ daily_quote_token_volume: number;
46
46
  /**
47
47
  *
48
48
  * @type {number}
49
49
  * @memberof AccountMarketStats
50
50
  */
51
- openPositionBase: number;
51
+ open_position_base: number;
52
52
  /**
53
53
  *
54
54
  * @type {number}
55
55
  * @memberof AccountMarketStats
56
56
  */
57
- openPositionQuote: number;
57
+ open_position_quote: number;
58
58
  }
59
59
 
60
60
  /**
61
61
  * Check if a given object implements the AccountMarketStats interface.
62
62
  */
63
63
  export function instanceOfAccountMarketStats(value: object): value is AccountMarketStats {
64
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
65
- if (!('dailyTradesCount' in value) || value['dailyTradesCount'] === undefined) return false;
66
- if (!('dailyBaseTokenVolume' in value) || value['dailyBaseTokenVolume'] === undefined) return false;
67
- if (!('dailyQuoteTokenVolume' in value) || value['dailyQuoteTokenVolume'] === undefined) return false;
68
- if (!('openPositionBase' in value) || value['openPositionBase'] === undefined) return false;
69
- if (!('openPositionQuote' in value) || value['openPositionQuote'] === undefined) return false;
64
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
65
+ if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
66
+ if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false;
67
+ if (!('daily_quote_token_volume' in value) || value['daily_quote_token_volume'] === undefined) return false;
68
+ if (!('open_position_base' in value) || value['open_position_base'] === undefined) return false;
69
+ if (!('open_position_quote' in value) || value['open_position_quote'] === undefined) return false;
70
70
  return true;
71
71
  }
72
72
 
@@ -80,12 +80,12 @@ export function AccountMarketStatsFromJSONTyped(json: any, ignoreDiscriminator:
80
80
  }
81
81
  return {
82
82
 
83
- 'marketId': json['market_id'],
84
- 'dailyTradesCount': json['daily_trades_count'],
85
- 'dailyBaseTokenVolume': json['daily_base_token_volume'],
86
- 'dailyQuoteTokenVolume': json['daily_quote_token_volume'],
87
- 'openPositionBase': json['open_position_base'],
88
- 'openPositionQuote': json['open_position_quote'],
83
+ 'market_id': json['market_id'],
84
+ 'daily_trades_count': json['daily_trades_count'],
85
+ 'daily_base_token_volume': json['daily_base_token_volume'],
86
+ 'daily_quote_token_volume': json['daily_quote_token_volume'],
87
+ 'open_position_base': json['open_position_base'],
88
+ 'open_position_quote': json['open_position_quote'],
89
89
  };
90
90
  }
91
91
 
@@ -95,12 +95,12 @@ export function AccountMarketStatsToJSON(value?: AccountMarketStats | null): any
95
95
  }
96
96
  return {
97
97
 
98
- 'market_id': value['marketId'],
99
- 'daily_trades_count': value['dailyTradesCount'],
100
- 'daily_base_token_volume': value['dailyBaseTokenVolume'],
101
- 'daily_quote_token_volume': value['dailyQuoteTokenVolume'],
102
- 'open_position_base': value['openPositionBase'],
103
- 'open_position_quote': value['openPositionQuote'],
98
+ 'market_id': value['market_id'],
99
+ 'daily_trades_count': value['daily_trades_count'],
100
+ 'daily_base_token_volume': value['daily_base_token_volume'],
101
+ 'daily_quote_token_volume': value['daily_quote_token_volume'],
102
+ 'open_position_base': value['open_position_base'],
103
+ 'open_position_quote': value['open_position_quote'],
104
104
  };
105
105
  }
106
106
 
@@ -24,7 +24,7 @@ export interface AccountPosition {
24
24
  * @type {number}
25
25
  * @memberof AccountPosition
26
26
  */
27
- marketId: number;
27
+ market_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -54,54 +54,54 @@ export interface AccountPosition {
54
54
  * @type {string}
55
55
  * @memberof AccountPosition
56
56
  */
57
- askOrderSize: string;
57
+ ask_order_size: string;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
61
  * @memberof AccountPosition
62
62
  */
63
- bidOrderSize: string;
63
+ bid_order_size: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
67
67
  * @memberof AccountPosition
68
68
  */
69
- avgEntryPrice: string;
69
+ avg_entry_price: string;
70
70
  /**
71
71
  *
72
72
  * @type {string}
73
73
  * @memberof AccountPosition
74
74
  */
75
- positionValue: string;
75
+ position_value: string;
76
76
  /**
77
77
  *
78
78
  * @type {string}
79
79
  * @memberof AccountPosition
80
80
  */
81
- unrealizedPnl: string;
81
+ unrealized_pnl: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
85
85
  * @memberof AccountPosition
86
86
  */
87
- realizedPnl: string;
87
+ realized_pnl: string;
88
88
  }
89
89
 
90
90
  /**
91
91
  * Check if a given object implements the AccountPosition interface.
92
92
  */
93
93
  export function instanceOfAccountPosition(value: object): value is AccountPosition {
94
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
94
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
95
95
  if (!('name' in value) || value['name'] === undefined) return false;
96
96
  if (!('symbol' in value) || value['symbol'] === undefined) return false;
97
97
  if (!('sign' in value) || value['sign'] === undefined) return false;
98
98
  if (!('position' in value) || value['position'] === undefined) return false;
99
- if (!('askOrderSize' in value) || value['askOrderSize'] === undefined) return false;
100
- if (!('bidOrderSize' in value) || value['bidOrderSize'] === undefined) return false;
101
- if (!('avgEntryPrice' in value) || value['avgEntryPrice'] === undefined) return false;
102
- if (!('positionValue' in value) || value['positionValue'] === undefined) return false;
103
- if (!('unrealizedPnl' in value) || value['unrealizedPnl'] === undefined) return false;
104
- if (!('realizedPnl' in value) || value['realizedPnl'] === undefined) return false;
99
+ if (!('ask_order_size' in value) || value['ask_order_size'] === undefined) return false;
100
+ if (!('bid_order_size' in value) || value['bid_order_size'] === undefined) return false;
101
+ if (!('avg_entry_price' in value) || value['avg_entry_price'] === undefined) return false;
102
+ if (!('position_value' in value) || value['position_value'] === undefined) return false;
103
+ if (!('unrealized_pnl' in value) || value['unrealized_pnl'] === undefined) return false;
104
+ if (!('realized_pnl' in value) || value['realized_pnl'] === undefined) return false;
105
105
  return true;
106
106
  }
107
107
 
@@ -115,17 +115,17 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
115
115
  }
116
116
  return {
117
117
 
118
- 'marketId': json['market_id'],
118
+ 'market_id': json['market_id'],
119
119
  'name': json['name'],
120
120
  'symbol': json['symbol'],
121
121
  'sign': json['sign'],
122
122
  'position': json['position'],
123
- 'askOrderSize': json['ask_order_size'],
124
- 'bidOrderSize': json['bid_order_size'],
125
- 'avgEntryPrice': json['avg_entry_price'],
126
- 'positionValue': json['position_value'],
127
- 'unrealizedPnl': json['unrealized_pnl'],
128
- 'realizedPnl': json['realized_pnl'],
123
+ 'ask_order_size': json['ask_order_size'],
124
+ 'bid_order_size': json['bid_order_size'],
125
+ 'avg_entry_price': json['avg_entry_price'],
126
+ 'position_value': json['position_value'],
127
+ 'unrealized_pnl': json['unrealized_pnl'],
128
+ 'realized_pnl': json['realized_pnl'],
129
129
  };
130
130
  }
131
131
 
@@ -135,17 +135,17 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
135
135
  }
136
136
  return {
137
137
 
138
- 'market_id': value['marketId'],
138
+ 'market_id': value['market_id'],
139
139
  'name': value['name'],
140
140
  'symbol': value['symbol'],
141
141
  'sign': value['sign'],
142
142
  'position': value['position'],
143
- 'ask_order_size': value['askOrderSize'],
144
- 'bid_order_size': value['bidOrderSize'],
145
- 'avg_entry_price': value['avgEntryPrice'],
146
- 'position_value': value['positionValue'],
147
- 'unrealized_pnl': value['unrealizedPnl'],
148
- 'realized_pnl': value['realizedPnl'],
143
+ 'ask_order_size': value['ask_order_size'],
144
+ 'bid_order_size': value['bid_order_size'],
145
+ 'avg_entry_price': value['avg_entry_price'],
146
+ 'position_value': value['position_value'],
147
+ 'unrealized_pnl': value['unrealized_pnl'],
148
+ 'realized_pnl': value['realized_pnl'],
149
149
  };
150
150
  }
151
151
 
@@ -24,7 +24,7 @@ export interface AccountStats {
24
24
  * @type {string}
25
25
  * @memberof AccountStats
26
26
  */
27
- portfolioValue: string;
27
+ portfolio_value: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -36,30 +36,30 @@ export interface AccountStats {
36
36
  * @type {string}
37
37
  * @memberof AccountStats
38
38
  */
39
- freeCollateral: string;
39
+ free_collateral: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof AccountStats
44
44
  */
45
- marginUsage: string;
45
+ margin_usage: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof AccountStats
50
50
  */
51
- buyingPower: string;
51
+ buying_power: string;
52
52
  }
53
53
 
54
54
  /**
55
55
  * Check if a given object implements the AccountStats interface.
56
56
  */
57
57
  export function instanceOfAccountStats(value: object): value is AccountStats {
58
- if (!('portfolioValue' in value) || value['portfolioValue'] === undefined) return false;
58
+ if (!('portfolio_value' in value) || value['portfolio_value'] === undefined) return false;
59
59
  if (!('leverage' in value) || value['leverage'] === undefined) return false;
60
- if (!('freeCollateral' in value) || value['freeCollateral'] === undefined) return false;
61
- if (!('marginUsage' in value) || value['marginUsage'] === undefined) return false;
62
- if (!('buyingPower' in value) || value['buyingPower'] === undefined) return false;
60
+ if (!('free_collateral' in value) || value['free_collateral'] === undefined) return false;
61
+ if (!('margin_usage' in value) || value['margin_usage'] === undefined) return false;
62
+ if (!('buying_power' in value) || value['buying_power'] === undefined) return false;
63
63
  return true;
64
64
  }
65
65
 
@@ -73,11 +73,11 @@ export function AccountStatsFromJSONTyped(json: any, ignoreDiscriminator: boolea
73
73
  }
74
74
  return {
75
75
 
76
- 'portfolioValue': json['portfolio_value'],
76
+ 'portfolio_value': json['portfolio_value'],
77
77
  'leverage': json['leverage'],
78
- 'freeCollateral': json['free_collateral'],
79
- 'marginUsage': json['margin_usage'],
80
- 'buyingPower': json['buying_power'],
78
+ 'free_collateral': json['free_collateral'],
79
+ 'margin_usage': json['margin_usage'],
80
+ 'buying_power': json['buying_power'],
81
81
  };
82
82
  }
83
83
 
@@ -87,11 +87,11 @@ export function AccountStatsToJSON(value?: AccountStats | null): any {
87
87
  }
88
88
  return {
89
89
 
90
- 'portfolio_value': value['portfolioValue'],
90
+ 'portfolio_value': value['portfolio_value'],
91
91
  'leverage': value['leverage'],
92
- 'free_collateral': value['freeCollateral'],
93
- 'margin_usage': value['marginUsage'],
94
- 'buying_power': value['buyingPower'],
92
+ 'free_collateral': value['free_collateral'],
93
+ 'margin_usage': value['margin_usage'],
94
+ 'buying_power': value['buying_power'],
95
95
  };
96
96
  }
97
97
 
package/models/Block.ts CHANGED
@@ -43,49 +43,49 @@ export interface Block {
43
43
  * @type {string}
44
44
  * @memberof Block
45
45
  */
46
- stateRoot: string;
46
+ state_root: string;
47
47
  /**
48
48
  *
49
49
  * @type {number}
50
50
  * @memberof Block
51
51
  */
52
- priorityOperations: number;
52
+ priority_operations: number;
53
53
  /**
54
54
  *
55
55
  * @type {number}
56
56
  * @memberof Block
57
57
  */
58
- onChainL2Operations: number;
58
+ on_chain_l2_operations: number;
59
59
  /**
60
60
  *
61
61
  * @type {string}
62
62
  * @memberof Block
63
63
  */
64
- pendingOnChainOperationsPubData: string;
64
+ pending_on_chain_operations_pub_data: string;
65
65
  /**
66
66
  *
67
67
  * @type {string}
68
68
  * @memberof Block
69
69
  */
70
- committedTxHash: string;
70
+ committed_tx_hash: string;
71
71
  /**
72
72
  *
73
73
  * @type {number}
74
74
  * @memberof Block
75
75
  */
76
- committedAt: number;
76
+ committed_at: number;
77
77
  /**
78
78
  *
79
79
  * @type {string}
80
80
  * @memberof Block
81
81
  */
82
- verifiedTxHash: string;
82
+ verified_tx_hash: string;
83
83
  /**
84
84
  *
85
85
  * @type {number}
86
86
  * @memberof Block
87
87
  */
88
- verifiedAt: number;
88
+ verified_at: number;
89
89
  /**
90
90
  *
91
91
  * @type {Array<Tx>}
@@ -112,14 +112,14 @@ export interface Block {
112
112
  export function instanceOfBlock(value: object): value is Block {
113
113
  if (!('commitment' in value) || value['commitment'] === undefined) return false;
114
114
  if (!('height' in value) || value['height'] === undefined) return false;
115
- if (!('stateRoot' in value) || value['stateRoot'] === undefined) return false;
116
- if (!('priorityOperations' in value) || value['priorityOperations'] === undefined) return false;
117
- if (!('onChainL2Operations' in value) || value['onChainL2Operations'] === undefined) return false;
118
- if (!('pendingOnChainOperationsPubData' in value) || value['pendingOnChainOperationsPubData'] === undefined) return false;
119
- if (!('committedTxHash' in value) || value['committedTxHash'] === undefined) return false;
120
- if (!('committedAt' in value) || value['committedAt'] === undefined) return false;
121
- if (!('verifiedTxHash' in value) || value['verifiedTxHash'] === undefined) return false;
122
- if (!('verifiedAt' in value) || value['verifiedAt'] === undefined) return false;
115
+ if (!('state_root' in value) || value['state_root'] === undefined) return false;
116
+ if (!('priority_operations' in value) || value['priority_operations'] === undefined) return false;
117
+ if (!('on_chain_l2_operations' in value) || value['on_chain_l2_operations'] === undefined) return false;
118
+ if (!('pending_on_chain_operations_pub_data' in value) || value['pending_on_chain_operations_pub_data'] === undefined) return false;
119
+ if (!('committed_tx_hash' in value) || value['committed_tx_hash'] === undefined) return false;
120
+ if (!('committed_at' in value) || value['committed_at'] === undefined) return false;
121
+ if (!('verified_tx_hash' in value) || value['verified_tx_hash'] === undefined) return false;
122
+ if (!('verified_at' in value) || value['verified_at'] === undefined) return false;
123
123
  if (!('txs' in value) || value['txs'] === undefined) return false;
124
124
  if (!('status' in value) || value['status'] === undefined) return false;
125
125
  if (!('size' in value) || value['size'] === undefined) return false;
@@ -138,14 +138,14 @@ export function BlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Blo
138
138
 
139
139
  'commitment': json['commitment'],
140
140
  'height': json['height'],
141
- 'stateRoot': json['state_root'],
142
- 'priorityOperations': json['priority_operations'],
143
- 'onChainL2Operations': json['on_chain_l2_operations'],
144
- 'pendingOnChainOperationsPubData': json['pending_on_chain_operations_pub_data'],
145
- 'committedTxHash': json['committed_tx_hash'],
146
- 'committedAt': json['committed_at'],
147
- 'verifiedTxHash': json['verified_tx_hash'],
148
- 'verifiedAt': json['verified_at'],
141
+ 'state_root': json['state_root'],
142
+ 'priority_operations': json['priority_operations'],
143
+ 'on_chain_l2_operations': json['on_chain_l2_operations'],
144
+ 'pending_on_chain_operations_pub_data': json['pending_on_chain_operations_pub_data'],
145
+ 'committed_tx_hash': json['committed_tx_hash'],
146
+ 'committed_at': json['committed_at'],
147
+ 'verified_tx_hash': json['verified_tx_hash'],
148
+ 'verified_at': json['verified_at'],
149
149
  'txs': ((json['txs'] as Array<any>).map(TxFromJSON)),
150
150
  'status': json['status'],
151
151
  'size': json['size'],
@@ -160,14 +160,14 @@ export function BlockToJSON(value?: Block | null): any {
160
160
 
161
161
  'commitment': value['commitment'],
162
162
  'height': value['height'],
163
- 'state_root': value['stateRoot'],
164
- 'priority_operations': value['priorityOperations'],
165
- 'on_chain_l2_operations': value['onChainL2Operations'],
166
- 'pending_on_chain_operations_pub_data': value['pendingOnChainOperationsPubData'],
167
- 'committed_tx_hash': value['committedTxHash'],
168
- 'committed_at': value['committedAt'],
169
- 'verified_tx_hash': value['verifiedTxHash'],
170
- 'verified_at': value['verifiedAt'],
163
+ 'state_root': value['state_root'],
164
+ 'priority_operations': value['priority_operations'],
165
+ 'on_chain_l2_operations': value['on_chain_l2_operations'],
166
+ 'pending_on_chain_operations_pub_data': value['pending_on_chain_operations_pub_data'],
167
+ 'committed_tx_hash': value['committed_tx_hash'],
168
+ 'committed_at': value['committed_at'],
169
+ 'verified_tx_hash': value['verified_tx_hash'],
170
+ 'verified_at': value['verified_at'],
171
171
  'txs': ((value['txs'] as Array<any>).map(TxToJSON)),
172
172
  'status': value['status'],
173
173
  'size': value['size'],
@@ -55,13 +55,13 @@ export interface DetailedAccount {
55
55
  * @type {number}
56
56
  * @memberof DetailedAccount
57
57
  */
58
- subAccountIndex?: number;
58
+ sub_account_index?: number;
59
59
  /**
60
60
  *
61
61
  * @type {string}
62
62
  * @memberof DetailedAccount
63
63
  */
64
- l1Address?: string;
64
+ l1_address?: string;
65
65
  /**
66
66
  *
67
67
  * @type {string}
@@ -91,7 +91,7 @@ export interface DetailedAccount {
91
91
  * @type {number}
92
92
  * @memberof DetailedAccount
93
93
  */
94
- collateralType?: number;
94
+ collateral_type?: number;
95
95
  /**
96
96
  *
97
97
  * @type {Array<AccountPosition>}
@@ -103,13 +103,13 @@ export interface DetailedAccount {
103
103
  * @type {string}
104
104
  * @memberof DetailedAccount
105
105
  */
106
- totalAssetValue: string;
106
+ total_asset_value: string;
107
107
  /**
108
108
  *
109
109
  * @type {Array<AccountMarketStats>}
110
110
  * @memberof DetailedAccount
111
111
  */
112
- marketStats: Array<AccountMarketStats>;
112
+ market_stats: Array<AccountMarketStats>;
113
113
  }
114
114
 
115
115
  /**
@@ -117,8 +117,8 @@ export interface DetailedAccount {
117
117
  */
118
118
  export function instanceOfDetailedAccount(value: object): value is DetailedAccount {
119
119
  if (!('positions' in value) || value['positions'] === undefined) return false;
120
- if (!('totalAssetValue' in value) || value['totalAssetValue'] === undefined) return false;
121
- if (!('marketStats' in value) || value['marketStats'] === undefined) return false;
120
+ if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
121
+ if (!('market_stats' in value) || value['market_stats'] === undefined) return false;
122
122
  return true;
123
123
  }
124
124
 
@@ -135,16 +135,16 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
135
135
  'code': json['code'] == null ? undefined : json['code'],
136
136
  'message': json['message'] == null ? undefined : json['message'],
137
137
  'index': json['index'] == null ? undefined : json['index'],
138
- 'subAccountIndex': json['sub_account_index'] == null ? undefined : json['sub_account_index'],
139
- 'l1Address': json['l1_address'] == null ? undefined : json['l1_address'],
138
+ 'sub_account_index': json['sub_account_index'] == null ? undefined : json['sub_account_index'],
139
+ 'l1_address': json['l1_address'] == null ? undefined : json['l1_address'],
140
140
  'pk': json['pk'] == null ? undefined : json['pk'],
141
141
  'nonce': json['nonce'] == null ? undefined : json['nonce'],
142
142
  'status': json['status'] == null ? undefined : json['status'],
143
143
  'collateral': json['collateral'] == null ? undefined : json['collateral'],
144
- 'collateralType': json['collateral_type'] == null ? undefined : json['collateral_type'],
144
+ 'collateral_type': json['collateral_type'] == null ? undefined : json['collateral_type'],
145
145
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
146
- 'totalAssetValue': json['total_asset_value'],
147
- 'marketStats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
146
+ 'total_asset_value': json['total_asset_value'],
147
+ 'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
148
148
  };
149
149
  }
150
150
 
@@ -157,16 +157,16 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
157
157
  'code': value['code'],
158
158
  'message': value['message'],
159
159
  'index': value['index'],
160
- 'sub_account_index': value['subAccountIndex'],
161
- 'l1_address': value['l1Address'],
160
+ 'sub_account_index': value['sub_account_index'],
161
+ 'l1_address': value['l1_address'],
162
162
  'pk': value['pk'],
163
163
  'nonce': value['nonce'],
164
164
  'status': value['status'],
165
165
  'collateral': value['collateral'],
166
- 'collateral_type': value['collateralType'],
166
+ 'collateral_type': value['collateral_type'],
167
167
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
168
- 'total_asset_value': value['totalAssetValue'],
169
- 'market_stats': ((value['marketStats'] as Array<any>).map(AccountMarketStatsToJSON)),
168
+ 'total_asset_value': value['total_asset_value'],
169
+ 'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
170
170
  };
171
171
  }
172
172