Skip to content

Commit eb09ced

Browse files
committed
update-31-july
1 parent f9cf85d commit eb09ced

19 files changed

Lines changed: 102 additions & 214 deletions

.openapi-generator/FILES

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ docs/ReqGetAccountByL1Address.md
7777
docs/ReqGetAccountInactiveOrders.md
7878
docs/ReqGetAccountLimits.md
7979
docs/ReqGetAccountMetadata.md
80-
docs/ReqGetAccountPendingTxs.md
8180
docs/ReqGetAccountPnL.md
8281
docs/ReqGetAccountTxs.md
8382
docs/ReqGetBlock.md
@@ -223,7 +222,6 @@ lighter/models/req_get_account_by_l1_address.py
223222
lighter/models/req_get_account_inactive_orders.py
224223
lighter/models/req_get_account_limits.py
225224
lighter/models/req_get_account_metadata.py
226-
lighter/models/req_get_account_pending_txs.py
227225
lighter/models/req_get_account_pn_l.py
228226
lighter/models/req_get_account_txs.py
229227
lighter/models/req_get_block.py
@@ -283,18 +281,4 @@ lighter/rest.py
283281
setup.cfg
284282
test-requirements.txt
285283
test/__init__.py
286-
test/test_account_margin_stats.py
287-
test/test_info_api.py
288-
test/test_order_book_orders.py
289-
test/test_req_get_order_book_orders.py
290-
test/test_req_get_transfer_fee_info.py
291-
test/test_req_get_transfer_history.py
292-
test/test_resp_change_account_tier.py
293-
test/test_resp_send_tx.py
294-
test/test_resp_send_tx_batch.py
295-
test/test_resp_withdrawal_delay.py
296-
test/test_risk_parameters.py
297-
test/test_transfer_fee_info.py
298-
test/test_transfer_history.py
299-
test/test_transfer_history_item.py
300284
tox.ini

README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,16 @@ All URIs are relative to *https://mainnet.zklighter.elliot.ai*
6868
Class | Method | HTTP request | Description
6969
------------ | ------------- | ------------- | -------------
7070
*AccountApi* | [**account**](docs/AccountApi.md#account) | **GET** /api/v1/account | account
71-
*AccountApi* | [**accounts**](docs/AccountApi.md#accounts) | **GET** /api/v1/accounts | accounts
7271
*AccountApi* | [**accounts_by_l1_address**](docs/AccountApi.md#accounts_by_l1_address) | **GET** /api/v1/accountsByL1Address | accountsByL1Address
7372
*AccountApi* | [**apikeys**](docs/AccountApi.md#apikeys) | **GET** /api/v1/apikeys | apikeys
74-
*AccountApi* | [**fee_bucket**](docs/AccountApi.md#fee_bucket) | **GET** /api/v1/feeBucket | feeBucket
75-
*AccountApi* | [**is_whitelisted**](docs/AccountApi.md#is_whitelisted) | **GET** /api/v1/isWhitelisted | isWhitelisted
7673
*AccountApi* | [**pnl**](docs/AccountApi.md#pnl) | **GET** /api/v1/pnl | pnl
7774
*AccountApi* | [**public_pools**](docs/AccountApi.md#public_pools) | **GET** /api/v1/publicPools | publicPools
7875
*BlockApi* | [**block**](docs/BlockApi.md#block) | **GET** /api/v1/block | block
7976
*BlockApi* | [**blocks**](docs/BlockApi.md#blocks) | **GET** /api/v1/blocks | blocks
8077
*BlockApi* | [**current_height**](docs/BlockApi.md#current_height) | **GET** /api/v1/currentHeight | currentHeight
8178
*CandlestickApi* | [**candlesticks**](docs/CandlestickApi.md#candlesticks) | **GET** /api/v1/candlesticks | candlesticks
8279
*CandlestickApi* | [**fundings**](docs/CandlestickApi.md#fundings) | **GET** /api/v1/fundings | fundings
83-
*InfoApi* | [**layer2_basic_info**](docs/InfoApi.md#layer2_basic_info) | **GET** /api/v1/layer2BasicInfo | layer2BasicInfo
8480
*OrderApi* | [**account_inactive_orders**](docs/OrderApi.md#account_inactive_orders) | **GET** /api/v1/accountInactiveOrders | accountInactiveOrders
85-
*OrderApi* | [**account_orders**](docs/OrderApi.md#account_orders) | **GET** /api/v1/accountOrders | accountOrders
8681
*OrderApi* | [**exchange_stats**](docs/OrderApi.md#exchange_stats) | **GET** /api/v1/exchangeStats | exchangeStats
8782
*OrderApi* | [**order_book_details**](docs/OrderApi.md#order_book_details) | **GET** /api/v1/orderBookDetails | orderBookDetails
8883
*OrderApi* | [**order_book_orders**](docs/OrderApi.md#order_book_orders) | **GET** /api/v1/orderBookOrders | orderBookOrders
@@ -91,12 +86,10 @@ Class | Method | HTTP request | Description
9186
*OrderApi* | [**trades**](docs/OrderApi.md#trades) | **GET** /api/v1/trades | trades
9287
*RootApi* | [**info**](docs/RootApi.md#info) | **GET** /info | info
9388
*RootApi* | [**status**](docs/RootApi.md#status) | **GET** / | status
94-
*TransactionApi* | [**account_pending_txs**](docs/TransactionApi.md#account_pending_txs) | **GET** /api/v1/accountPendingTxs | accountPendingTxs
9589
*TransactionApi* | [**account_txs**](docs/TransactionApi.md#account_txs) | **GET** /api/v1/accountTxs | accountTxs
9690
*TransactionApi* | [**block_txs**](docs/TransactionApi.md#block_txs) | **GET** /api/v1/blockTxs | blockTxs
9791
*TransactionApi* | [**deposit_history**](docs/TransactionApi.md#deposit_history) | **GET** /api/v1/deposit/history | deposit_history
9892
*TransactionApi* | [**next_nonce**](docs/TransactionApi.md#next_nonce) | **GET** /api/v1/nextNonce | nextNonce
99-
*TransactionApi* | [**pending_txs**](docs/TransactionApi.md#pending_txs) | **GET** /api/v1/pendingTxs | pendingTxs
10093
*TransactionApi* | [**send_tx**](docs/TransactionApi.md#send_tx) | **POST** /api/v1/sendTx | sendTx
10194
*TransactionApi* | [**send_tx_batch**](docs/TransactionApi.md#send_tx_batch) | **POST** /api/v1/sendTxBatch | sendTxBatch
10295
*TransactionApi* | [**tx**](docs/TransactionApi.md#tx) | **GET** /api/v1/tx | tx
@@ -114,7 +107,6 @@ Class | Method | HTTP request | Description
114107
- [AccountPnL](docs/AccountPnL.md)
115108
- [AccountPosition](docs/AccountPosition.md)
116109
- [AccountStats](docs/AccountStats.md)
117-
- [Accounts](docs/Accounts.md)
118110
- [ApiKey](docs/ApiKey.md)
119111
- [Block](docs/Block.md)
120112
- [Blocks](docs/Blocks.md)
@@ -131,12 +123,9 @@ Class | Method | HTTP request | Description
131123
- [DetailedCandlestick](docs/DetailedCandlestick.md)
132124
- [EnrichedTx](docs/EnrichedTx.md)
133125
- [ExchangeStats](docs/ExchangeStats.md)
134-
- [FeeBucket](docs/FeeBucket.md)
135126
- [Funding](docs/Funding.md)
136127
- [Fundings](docs/Fundings.md)
137-
- [IsWhitelisted](docs/IsWhitelisted.md)
138128
- [L1ProviderInfo](docs/L1ProviderInfo.md)
139-
- [Layer2BasicInfo](docs/Layer2BasicInfo.md)
140129
- [Liquidation](docs/Liquidation.md)
141130
- [MarketInfo](docs/MarketInfo.md)
142131
- [NextNonce](docs/NextNonce.md)
@@ -160,16 +149,13 @@ Class | Method | HTTP request | Description
160149
- [ReqGetAccountApiKeys](docs/ReqGetAccountApiKeys.md)
161150
- [ReqGetAccountByL1Address](docs/ReqGetAccountByL1Address.md)
162151
- [ReqGetAccountInactiveOrders](docs/ReqGetAccountInactiveOrders.md)
163-
- [ReqGetAccountOrders](docs/ReqGetAccountOrders.md)
164-
- [ReqGetAccountPendingTxs](docs/ReqGetAccountPendingTxs.md)
165152
- [ReqGetAccountPnL](docs/ReqGetAccountPnL.md)
166153
- [ReqGetAccountTxs](docs/ReqGetAccountTxs.md)
167154
- [ReqGetBlock](docs/ReqGetBlock.md)
168155
- [ReqGetBlockTxs](docs/ReqGetBlockTxs.md)
169156
- [ReqGetByAccount](docs/ReqGetByAccount.md)
170157
- [ReqGetCandlesticks](docs/ReqGetCandlesticks.md)
171158
- [ReqGetDepositHistory](docs/ReqGetDepositHistory.md)
172-
- [ReqGetFeeBucket](docs/ReqGetFeeBucket.md)
173159
- [ReqGetFundings](docs/ReqGetFundings.md)
174160
- [ReqGetL1Tx](docs/ReqGetL1Tx.md)
175161
- [ReqGetLatestDeposit](docs/ReqGetLatestDeposit.md)
@@ -185,7 +171,6 @@ Class | Method | HTTP request | Description
185171
- [ReqGetTrades](docs/ReqGetTrades.md)
186172
- [ReqGetTx](docs/ReqGetTx.md)
187173
- [ReqGetWithdrawHistory](docs/ReqGetWithdrawHistory.md)
188-
- [ReqIsWhitelisted](docs/ReqIsWhitelisted.md)
189174
- [ResultCode](docs/ResultCode.md)
190175
- [SimpleOrder](docs/SimpleOrder.md)
191176
- [Status](docs/Status.md)
@@ -199,14 +184,15 @@ Class | Method | HTTP request | Description
199184
- [Txs](docs/Txs.md)
200185
- [ValidatorInfo](docs/ValidatorInfo.md)
201186
- [WithdrawHistory](docs/WithdrawHistory.md)
202-
- [WithdrawHistoryCursor](docs/WithdrawHistoryCursor.md)
203187
- [WithdrawHistoryItem](docs/WithdrawHistoryItem.md)
204188
- [ZkLighterInfo](docs/ZkLighterInfo.md)
205189

206190

207-
<a id="documentation-for-authorization"></a>
208-
## Documentation For Authorization
191+
[//]: # (<a id="documentation-for-authorization"></a>)
209192

210-
Endpoints do not require authorization.
193+
[//]: # (## Documentation For Authorization)
194+
195+
[//]: # ()
196+
[//]: # (Endpoints do not require authorization.)
211197

212198

docs/Account.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**total_order_count** | **int** | |
1515
**total_isolated_order_count** | **int** | |
1616
**pending_order_count** | **int** | |
17+
**available_balance** | **str** | |
1718
**status** | **int** | |
1819
**collateral** | **str** | |
1920

docs/DetailedAccount.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**total_order_count** | **int** | |
1515
**total_isolated_order_count** | **int** | |
1616
**pending_order_count** | **int** | |
17+
**available_balance** | **str** | |
1718
**status** | **int** | |
1819
**collateral** | **str** | |
1920
**account_index** | **int** | |

docs/PnLEntry.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**pool_pnl** | **float** | |
1313
**pool_inflow** | **float** | |
1414
**pool_outflow** | **float** | |
15+
**pool_total_shares** | **float** | |
1516

1617
## Example
1718

docs/PublicPool.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**total_order_count** | **int** | |
1515
**total_isolated_order_count** | **int** | |
1616
**pending_order_count** | **int** | |
17+
**available_balance** | **str** | |
1718
**status** | **int** | |
1819
**collateral** | **str** | |
1920
**account_index** | **int** | |

docs/ReqGetAccountPendingTxs.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/ReqGetAccountTxs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**by** | **str** | | [optional]
1111
**value** | **str** | | [optional]
1212
**types** | **List[int]** | | [optional]
13+
**auth** | **str** | | [optional]
1314

1415
## Example
1516

docs/TransactionApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Method | HTTP request | Description
1818

1919

2020
# **account_txs**
21-
> Txs account_txs(limit, by, value, index=index, types=types)
21+
> Txs account_txs(limit, by, value, authorization=authorization, index=index, types=types, auth=auth)
2222
2323
accountTxs
2424

@@ -47,12 +47,14 @@ async with lighter.ApiClient(configuration) as api_client:
4747
limit = 56 # int |
4848
by = 'by_example' # str |
4949
value = 'value_example' # str |
50+
authorization = 'authorization_example' # str | (optional)
5051
index = 56 # int | (optional)
5152
types = [56] # List[int] | (optional)
53+
auth = 'auth_example' # str | (optional)
5254

5355
try:
5456
# accountTxs
55-
api_response = await api_instance.account_txs(limit, by, value, index=index, types=types)
57+
api_response = await api_instance.account_txs(limit, by, value, authorization=authorization, index=index, types=types, auth=auth)
5658
print("The response of TransactionApi->account_txs:\n")
5759
pprint(api_response)
5860
except Exception as e:
@@ -69,8 +71,10 @@ Name | Type | Description | Notes
6971
**limit** | **int**| |
7072
**by** | **str**| |
7173
**value** | **str**| |
74+
**authorization** | **str**| | [optional]
7275
**index** | **int**| | [optional]
7376
**types** | [**List[int]**](int.md)| | [optional]
77+
**auth** | **str**| | [optional]
7478

7579
### Return type
7680

lighter/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
from lighter.models.req_get_account_inactive_orders import ReqGetAccountInactiveOrders
112112
from lighter.models.req_get_account_limits import ReqGetAccountLimits
113113
from lighter.models.req_get_account_metadata import ReqGetAccountMetadata
114-
from lighter.models.req_get_account_pending_txs import ReqGetAccountPendingTxs
115114
from lighter.models.req_get_account_pn_l import ReqGetAccountPnL
116115
from lighter.models.req_get_account_txs import ReqGetAccountTxs
117116
from lighter.models.req_get_block import ReqGetBlock

0 commit comments

Comments
 (0)