Skip to content

Commit bb76e4d

Browse files
models: add named integer enum types (account type/trading mode, margin mode, pool status, RFQ direction)
1 parent a38b640 commit bb76e4d

54 files changed

Lines changed: 961 additions & 39 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.openapi-generator/FILES‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
README.md
22
docs/Account.md
3+
docs/AccountAccountTradingModeEnum.md
4+
docs/AccountAccountTypeEnum.md
35
docs/AccountApi.md
46
docs/AccountApiKeys.md
57
docs/AccountAsset.md
@@ -8,6 +10,7 @@ docs/AccountMetadata.md
810
docs/AccountMetadatas.md
911
docs/AccountPnL.md
1012
docs/AccountPosition.md
13+
docs/AccountPositionMarginModeEnum.md
1114
docs/Announcement.md
1215
docs/AnnouncementApi.md
1316
docs/Announcements.md
@@ -33,6 +36,8 @@ docs/Deposit.md
3336
docs/DepositHistory.md
3437
docs/DepositHistoryItem.md
3538
docs/DetailedAccount.md
39+
docs/DetailedAccountAccountTradingModeEnum.md
40+
docs/DetailedAccountAccountTypeEnum.md
3641
docs/DetailedAccounts.md
3742
docs/EnrichedTx.md
3843
docs/ExchangeMetric.md
@@ -61,6 +66,7 @@ docs/LivepointsApi.md
6166
docs/MarkPriceCandle.md
6267
docs/MarkPriceCandles.md
6368
docs/MarketConfig.md
69+
docs/MarketConfigMarketMarginModeEnum.md
6470
docs/MarketPriceChart.md
6571
docs/MarketPriceCharts.md
6672
docs/NextNonce.md
@@ -80,9 +86,13 @@ docs/PnLEntry.md
8086
docs/PositionFunding.md
8187
docs/PositionFundings.md
8288
docs/PublicPoolInfo.md
89+
docs/PublicPoolInfoStatusEnum.md
8390
docs/PublicPoolMetadata.md
91+
docs/PublicPoolMetadataAccountTypeEnum.md
92+
docs/PublicPoolMetadataStatusEnum.md
8493
docs/PublicPoolShare.md
8594
docs/RFQEntry.md
95+
docs/RFQEntryDirectionEnum.md
8696
docs/RFQMetadata.md
8797
docs/RFQResponseEntry.md
8898
docs/Referral.md
@@ -95,6 +105,7 @@ docs/ReferralTotals.md
95105
docs/ReqSetAccountMetadata.md
96106
docs/RespChangeAccountTier.md
97107
docs/RespCreateRFQ.md
108+
docs/RespCreateRFQDirectionEnum.md
98109
docs/RespGetApiTokens.md
99110
docs/RespGetExchangeMetrics.md
100111
docs/RespGetExecuteStats.md
@@ -104,17 +115,20 @@ docs/RespGetLeaseOptions.md
104115
docs/RespGetLeases.md
105116
docs/RespGetMakerOnlyApiKeys.md
106117
docs/RespGetRFQ.md
118+
docs/RespGetRFQDirectionEnum.md
107119
docs/RespListRFQs.md
108120
docs/RespPostApiToken.md
109121
docs/RespPublicPoolsMetadata.md
110122
docs/RespRespondToRFQ.md
123+
docs/RespRespondToRFQDirectionEnum.md
111124
docs/RespRevokeApiToken.md
112125
docs/RespSendTx.md
113126
docs/RespSendTxBatch.md
114127
docs/RespSetMakerOnlyApiKeys.md
115128
docs/RespSyntheticSpotInfo.md
116129
docs/RespUpdateKickback.md
117130
docs/RespUpdateRFQ.md
131+
docs/RespUpdateRFQDirectionEnum.md
118132
docs/RespUpdateReferralCode.md
119133
docs/RespWithdrawalDelay.md
120134
docs/ResultCode.md
@@ -170,13 +184,16 @@ lighter/configuration.py
170184
lighter/exceptions.py
171185
lighter/models/__init__.py
172186
lighter/models/account.py
187+
lighter/models/account_account_trading_mode_enum.py
188+
lighter/models/account_account_type_enum.py
173189
lighter/models/account_api_keys.py
174190
lighter/models/account_asset.py
175191
lighter/models/account_limits.py
176192
lighter/models/account_metadata.py
177193
lighter/models/account_metadatas.py
178194
lighter/models/account_pn_l.py
179195
lighter/models/account_position.py
196+
lighter/models/account_position_margin_mode_enum.py
180197
lighter/models/announcement.py
181198
lighter/models/announcements.py
182199
lighter/models/api_key.py
@@ -198,6 +215,8 @@ lighter/models/deposit.py
198215
lighter/models/deposit_history.py
199216
lighter/models/deposit_history_item.py
200217
lighter/models/detailed_account.py
218+
lighter/models/detailed_account_account_trading_mode_enum.py
219+
lighter/models/detailed_account_account_type_enum.py
201220
lighter/models/detailed_accounts.py
202221
lighter/models/enriched_tx.py
203222
lighter/models/exchange_metric.py
@@ -223,6 +242,7 @@ lighter/models/live_points_total.py
223242
lighter/models/mark_price_candle.py
224243
lighter/models/mark_price_candles.py
225244
lighter/models/market_config.py
245+
lighter/models/market_config_market_margin_mode_enum.py
226246
lighter/models/market_price_chart.py
227247
lighter/models/market_price_charts.py
228248
lighter/models/next_nonce.py
@@ -240,7 +260,10 @@ lighter/models/pn_l_entry.py
240260
lighter/models/position_funding.py
241261
lighter/models/position_fundings.py
242262
lighter/models/public_pool_info.py
263+
lighter/models/public_pool_info_status_enum.py
243264
lighter/models/public_pool_metadata.py
265+
lighter/models/public_pool_metadata_account_type_enum.py
266+
lighter/models/public_pool_metadata_status_enum.py
244267
lighter/models/public_pool_share.py
245268
lighter/models/referral.py
246269
lighter/models/referral_code.py
@@ -251,6 +274,7 @@ lighter/models/referral_totals.py
251274
lighter/models/req_set_account_metadata.py
252275
lighter/models/resp_change_account_tier.py
253276
lighter/models/resp_create_rfq.py
277+
lighter/models/resp_create_rfq_direction_enum.py
254278
lighter/models/resp_get_api_tokens.py
255279
lighter/models/resp_get_exchange_metrics.py
256280
lighter/models/resp_get_execute_stats.py
@@ -260,10 +284,12 @@ lighter/models/resp_get_lease_options.py
260284
lighter/models/resp_get_leases.py
261285
lighter/models/resp_get_maker_only_api_keys.py
262286
lighter/models/resp_get_rfq.py
287+
lighter/models/resp_get_rfq_direction_enum.py
263288
lighter/models/resp_list_rfqs.py
264289
lighter/models/resp_post_api_token.py
265290
lighter/models/resp_public_pools_metadata.py
266291
lighter/models/resp_respond_to_rfq.py
292+
lighter/models/resp_respond_to_rfq_direction_enum.py
267293
lighter/models/resp_revoke_api_token.py
268294
lighter/models/resp_send_tx.py
269295
lighter/models/resp_send_tx_batch.py
@@ -272,9 +298,11 @@ lighter/models/resp_synthetic_spot_info.py
272298
lighter/models/resp_update_kickback.py
273299
lighter/models/resp_update_referral_code.py
274300
lighter/models/resp_update_rfq.py
301+
lighter/models/resp_update_rfq_direction_enum.py
275302
lighter/models/resp_withdrawal_delay.py
276303
lighter/models/result_code.py
277304
lighter/models/rfq_entry.py
305+
lighter/models/rfq_entry_direction_enum.py
278306
lighter/models/rfq_metadata.py
279307
lighter/models/rfq_response_entry.py
280308
lighter/models/risk_info.py

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,16 @@ Class | Method | HTTP request | Description
142142

143143
<!-- AUTOGEN:MODELS -->
144144
- [Account](docs/Account.md)
145+
- [AccountAccountTradingModeEnum](docs/AccountAccountTradingModeEnum.md)
146+
- [AccountAccountTypeEnum](docs/AccountAccountTypeEnum.md)
145147
- [AccountApiKeys](docs/AccountApiKeys.md)
146148
- [AccountAsset](docs/AccountAsset.md)
147149
- [AccountLimits](docs/AccountLimits.md)
148150
- [AccountMetadata](docs/AccountMetadata.md)
149151
- [AccountMetadatas](docs/AccountMetadatas.md)
150152
- [AccountPnL](docs/AccountPnL.md)
151153
- [AccountPosition](docs/AccountPosition.md)
154+
- [AccountPositionMarginModeEnum](docs/AccountPositionMarginModeEnum.md)
152155
- [Announcement](docs/Announcement.md)
153156
- [Announcements](docs/Announcements.md)
154157
- [ApiKey](docs/ApiKey.md)
@@ -170,6 +173,8 @@ Class | Method | HTTP request | Description
170173
- [DepositHistory](docs/DepositHistory.md)
171174
- [DepositHistoryItem](docs/DepositHistoryItem.md)
172175
- [DetailedAccount](docs/DetailedAccount.md)
176+
- [DetailedAccountAccountTradingModeEnum](docs/DetailedAccountAccountTradingModeEnum.md)
177+
- [DetailedAccountAccountTypeEnum](docs/DetailedAccountAccountTypeEnum.md)
173178
- [DetailedAccounts](docs/DetailedAccounts.md)
174179
- [EnrichedTx](docs/EnrichedTx.md)
175180
- [ExchangeMetric](docs/ExchangeMetric.md)
@@ -195,6 +200,7 @@ Class | Method | HTTP request | Description
195200
- [MarkPriceCandle](docs/MarkPriceCandle.md)
196201
- [MarkPriceCandles](docs/MarkPriceCandles.md)
197202
- [MarketConfig](docs/MarketConfig.md)
203+
- [MarketConfigMarketMarginModeEnum](docs/MarketConfigMarketMarginModeEnum.md)
198204
- [MarketPriceChart](docs/MarketPriceChart.md)
199205
- [MarketPriceCharts](docs/MarketPriceCharts.md)
200206
- [NextNonce](docs/NextNonce.md)
@@ -212,9 +218,13 @@ Class | Method | HTTP request | Description
212218
- [PositionFunding](docs/PositionFunding.md)
213219
- [PositionFundings](docs/PositionFundings.md)
214220
- [PublicPoolInfo](docs/PublicPoolInfo.md)
221+
- [PublicPoolInfoStatusEnum](docs/PublicPoolInfoStatusEnum.md)
215222
- [PublicPoolMetadata](docs/PublicPoolMetadata.md)
223+
- [PublicPoolMetadataAccountTypeEnum](docs/PublicPoolMetadataAccountTypeEnum.md)
224+
- [PublicPoolMetadataStatusEnum](docs/PublicPoolMetadataStatusEnum.md)
216225
- [PublicPoolShare](docs/PublicPoolShare.md)
217226
- [RFQEntry](docs/RFQEntry.md)
227+
- [RFQEntryDirectionEnum](docs/RFQEntryDirectionEnum.md)
218228
- [RFQMetadata](docs/RFQMetadata.md)
219229
- [RFQResponseEntry](docs/RFQResponseEntry.md)
220230
- [Referral](docs/Referral.md)
@@ -226,6 +236,7 @@ Class | Method | HTTP request | Description
226236
- [ReqSetAccountMetadata](docs/ReqSetAccountMetadata.md)
227237
- [RespChangeAccountTier](docs/RespChangeAccountTier.md)
228238
- [RespCreateRFQ](docs/RespCreateRFQ.md)
239+
- [RespCreateRFQDirectionEnum](docs/RespCreateRFQDirectionEnum.md)
229240
- [RespGetApiTokens](docs/RespGetApiTokens.md)
230241
- [RespGetExchangeMetrics](docs/RespGetExchangeMetrics.md)
231242
- [RespGetExecuteStats](docs/RespGetExecuteStats.md)
@@ -235,17 +246,20 @@ Class | Method | HTTP request | Description
235246
- [RespGetLeases](docs/RespGetLeases.md)
236247
- [RespGetMakerOnlyApiKeys](docs/RespGetMakerOnlyApiKeys.md)
237248
- [RespGetRFQ](docs/RespGetRFQ.md)
249+
- [RespGetRFQDirectionEnum](docs/RespGetRFQDirectionEnum.md)
238250
- [RespListRFQs](docs/RespListRFQs.md)
239251
- [RespPostApiToken](docs/RespPostApiToken.md)
240252
- [RespPublicPoolsMetadata](docs/RespPublicPoolsMetadata.md)
241253
- [RespRespondToRFQ](docs/RespRespondToRFQ.md)
254+
- [RespRespondToRFQDirectionEnum](docs/RespRespondToRFQDirectionEnum.md)
242255
- [RespRevokeApiToken](docs/RespRevokeApiToken.md)
243256
- [RespSendTx](docs/RespSendTx.md)
244257
- [RespSendTxBatch](docs/RespSendTxBatch.md)
245258
- [RespSetMakerOnlyApiKeys](docs/RespSetMakerOnlyApiKeys.md)
246259
- [RespSyntheticSpotInfo](docs/RespSyntheticSpotInfo.md)
247260
- [RespUpdateKickback](docs/RespUpdateKickback.md)
248261
- [RespUpdateRFQ](docs/RespUpdateRFQ.md)
262+
- [RespUpdateRFQDirectionEnum](docs/RespUpdateRFQDirectionEnum.md)
249263
- [RespUpdateReferralCode](docs/RespUpdateReferralCode.md)
250264
- [RespWithdrawalDelay](docs/RespWithdrawalDelay.md)
251265
- [ResultCode](docs/ResultCode.md)

‎docs/Account.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**code** | **int** | |
99
**message** | **str** | | [optional]
10-
**account_type** | **int** | |
11-
**account_trading_mode** | **int** | Classic&#x3D;0 and Unified&#x3D;1 |
10+
**account_type** | **int** | See AccountAccountTypeEnum |
11+
**account_trading_mode** | **int** | Classic&#x3D;0 and Unified&#x3D;1. See AccountAccountTradingModeEnum |
1212
**index** | **int** | |
1313
**l1_address** | **str** | |
1414
**cancel_all_time** | **int** | |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AccountAccountTradingModeEnum
2+
3+
Named values of Account.account_trading_mode
4+
5+
## Enum
6+
7+
* `Simple` (value: `0`)
8+
9+
* `Unified` (value: `1`)
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

‎docs/AccountAccountTypeEnum.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# AccountAccountTypeEnum
2+
3+
Named values of Account.account_type
4+
5+
## Enum
6+
7+
* `Master` (value: `0`)
8+
9+
* `Sub` (value: `1`)
10+
11+
* `PublicPool` (value: `2`)
12+
13+
* `InsuranceFund` (value: `3`)
14+
15+
* `LighterStakingPool` (value: `4`)
16+
17+
* `TreasurySub` (value: `5`)
18+
19+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
20+
21+

‎docs/AccountPosition.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
1919
**realized_pnl** | **str** | |
2020
**liquidation_price** | **str** | |
2121
**total_funding_paid_out** | **str** | | [optional]
22-
**margin_mode** | **int** | |
22+
**margin_mode** | **int** | See AccountPositionMarginModeEnum |
2323
**allocated_margin** | **str** | |
2424
**total_discount** | **str** | |
2525
**margin_set_flag** | **int** | |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AccountPositionMarginModeEnum
2+
3+
Named values of AccountPosition.margin_mode
4+
5+
## Enum
6+
7+
* `Cross` (value: `0`)
8+
9+
* `Isolated` (value: `1`)
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

‎docs/DetailedAccount.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**code** | **int** | |
99
**message** | **str** | | [optional]
10-
**account_type** | **int** | |
11-
**account_trading_mode** | **int** | Classic&#x3D;0 and Unified&#x3D;1 | [optional]
10+
**account_type** | **int** | See DetailedAccountAccountTypeEnum |
11+
**account_trading_mode** | **int** | Classic&#x3D;0 and Unified&#x3D;1. See DetailedAccountAccountTradingModeEnum | [optional]
1212
**index** | **int** | |
1313
**l1_address** | **str** | |
1414
**cancel_all_time** | **int** | |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# DetailedAccountAccountTradingModeEnum
2+
3+
Named values of DetailedAccount.account_trading_mode
4+
5+
## Enum
6+
7+
* `Simple` (value: `0`)
8+
9+
* `Unified` (value: `1`)
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# DetailedAccountAccountTypeEnum
2+
3+
Named values of DetailedAccount.account_type
4+
5+
## Enum
6+
7+
* `Master` (value: `0`)
8+
9+
* `Sub` (value: `1`)
10+
11+
* `PublicPool` (value: `2`)
12+
13+
* `InsuranceFund` (value: `3`)
14+
15+
* `LighterStakingPool` (value: `4`)
16+
17+
* `TreasurySub` (value: `5`)
18+
19+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
20+
21+

0 commit comments

Comments
 (0)