qubx-lighter-api 0.1.4__py3-none-any.whl
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.
- lighter/__init__.py +174 -0
- lighter/api/__init__.py +16 -0
- lighter/api/account_api.py +3892 -0
- lighter/api/announcement_api.py +282 -0
- lighter/api/block_api.py +863 -0
- lighter/api/bridge_api.py +282 -0
- lighter/api/candlestick_api.py +719 -0
- lighter/api/funding_api.py +282 -0
- lighter/api/info_api.py +597 -0
- lighter/api/notification_api.py +358 -0
- lighter/api/order_api.py +2829 -0
- lighter/api/referral_api.py +334 -0
- lighter/api/root_api.py +529 -0
- lighter/api/transaction_api.py +3373 -0
- lighter/api_client.py +784 -0
- lighter/api_response.py +21 -0
- lighter/configuration.py +475 -0
- lighter/errors.py +2 -0
- lighter/exceptions.py +199 -0
- lighter/models/__init__.py +144 -0
- lighter/models/account.py +122 -0
- lighter/models/account_api_keys.py +112 -0
- lighter/models/account_limits.py +106 -0
- lighter/models/account_margin_stats.py +110 -0
- lighter/models/account_market_stats.py +124 -0
- lighter/models/account_metadata.py +108 -0
- lighter/models/account_metadatas.py +112 -0
- lighter/models/account_pn_l.py +114 -0
- lighter/models/account_position.py +130 -0
- lighter/models/account_stats.py +121 -0
- lighter/models/account_trade_stats.py +114 -0
- lighter/models/announcement.py +104 -0
- lighter/models/announcements.py +112 -0
- lighter/models/api_key.py +106 -0
- lighter/models/block.py +132 -0
- lighter/models/blocks.py +114 -0
- lighter/models/bridge_supported_network.py +104 -0
- lighter/models/candlestick.py +114 -0
- lighter/models/candlesticks.py +114 -0
- lighter/models/contract_address.py +102 -0
- lighter/models/current_height.py +104 -0
- lighter/models/cursor.py +100 -0
- lighter/models/daily_return.py +102 -0
- lighter/models/deposit_history.py +114 -0
- lighter/models/deposit_history_item.py +115 -0
- lighter/models/detailed_account.py +162 -0
- lighter/models/detailed_accounts.py +114 -0
- lighter/models/detailed_candlestick.py +116 -0
- lighter/models/enriched_tx.py +137 -0
- lighter/models/exchange_stats.py +118 -0
- lighter/models/export_data.py +104 -0
- lighter/models/funding.py +106 -0
- lighter/models/funding_rate.py +113 -0
- lighter/models/funding_rates.py +112 -0
- lighter/models/fundings.py +114 -0
- lighter/models/l1_metadata.py +104 -0
- lighter/models/l1_provider_info.py +104 -0
- lighter/models/liq_trade.py +106 -0
- lighter/models/liquidation.py +125 -0
- lighter/models/liquidation_info.py +121 -0
- lighter/models/liquidation_infos.py +114 -0
- lighter/models/market_info.py +124 -0
- lighter/models/next_nonce.py +104 -0
- lighter/models/order.py +188 -0
- lighter/models/order_book.py +127 -0
- lighter/models/order_book_depth.py +123 -0
- lighter/models/order_book_detail.py +159 -0
- lighter/models/order_book_details.py +112 -0
- lighter/models/order_book_orders.py +125 -0
- lighter/models/order_book_stats.py +110 -0
- lighter/models/order_books.py +112 -0
- lighter/models/orders.py +114 -0
- lighter/models/pn_l_entry.py +114 -0
- lighter/models/position_funding.py +119 -0
- lighter/models/position_fundings.py +114 -0
- lighter/models/price_level.py +102 -0
- lighter/models/public_pool.py +148 -0
- lighter/models/public_pool_info.py +130 -0
- lighter/models/public_pool_metadata.py +126 -0
- lighter/models/public_pool_share.py +104 -0
- lighter/models/public_pools.py +114 -0
- lighter/models/referral_point_entry.py +110 -0
- lighter/models/referral_points.py +118 -0
- lighter/models/req_export_data.py +113 -0
- lighter/models/req_get_account.py +109 -0
- lighter/models/req_get_account_active_orders.py +104 -0
- lighter/models/req_get_account_api_keys.py +102 -0
- lighter/models/req_get_account_by_l1_address.py +100 -0
- lighter/models/req_get_account_inactive_orders.py +113 -0
- lighter/models/req_get_account_limits.py +102 -0
- lighter/models/req_get_account_metadata.py +111 -0
- lighter/models/req_get_account_pn_l.py +129 -0
- lighter/models/req_get_account_txs.py +121 -0
- lighter/models/req_get_block.py +109 -0
- lighter/models/req_get_block_txs.py +109 -0
- lighter/models/req_get_by_account.py +109 -0
- lighter/models/req_get_candlesticks.py +118 -0
- lighter/models/req_get_deposit_history.py +118 -0
- lighter/models/req_get_fast_withdraw_info.py +102 -0
- lighter/models/req_get_fundings.py +116 -0
- lighter/models/req_get_l1_metadata.py +102 -0
- lighter/models/req_get_l1_tx.py +100 -0
- lighter/models/req_get_latest_deposit.py +100 -0
- lighter/models/req_get_liquidation_infos.py +109 -0
- lighter/models/req_get_next_nonce.py +102 -0
- lighter/models/req_get_order_book_details.py +100 -0
- lighter/models/req_get_order_book_orders.py +103 -0
- lighter/models/req_get_order_books.py +100 -0
- lighter/models/req_get_position_funding.py +121 -0
- lighter/models/req_get_public_pools.py +119 -0
- lighter/models/req_get_public_pools_metadata.py +119 -0
- lighter/models/req_get_range_with_cursor.py +103 -0
- lighter/models/req_get_range_with_index.py +103 -0
- lighter/models/req_get_range_with_index_sortable.py +115 -0
- lighter/models/req_get_recent_trades.py +103 -0
- lighter/models/req_get_referral_points.py +102 -0
- lighter/models/req_get_trades.py +136 -0
- lighter/models/req_get_transfer_fee_info.py +104 -0
- lighter/models/req_get_transfer_history.py +104 -0
- lighter/models/req_get_tx.py +109 -0
- lighter/models/req_get_withdraw_history.py +116 -0
- lighter/models/resp_change_account_tier.py +102 -0
- lighter/models/resp_get_fast_bridge_info.py +104 -0
- lighter/models/resp_public_pools_metadata.py +112 -0
- lighter/models/resp_send_tx.py +106 -0
- lighter/models/resp_send_tx_batch.py +106 -0
- lighter/models/resp_withdrawal_delay.py +100 -0
- lighter/models/result_code.py +102 -0
- lighter/models/risk_info.py +113 -0
- lighter/models/risk_parameters.py +110 -0
- lighter/models/share_price.py +102 -0
- lighter/models/simple_order.py +112 -0
- lighter/models/status.py +104 -0
- lighter/models/sub_accounts.py +114 -0
- lighter/models/ticker.py +111 -0
- lighter/models/trade.py +153 -0
- lighter/models/trades.py +114 -0
- lighter/models/transfer_fee_info.py +104 -0
- lighter/models/transfer_history.py +114 -0
- lighter/models/transfer_history_item.py +123 -0
- lighter/models/tx.py +129 -0
- lighter/models/tx_hash.py +104 -0
- lighter/models/tx_hashes.py +104 -0
- lighter/models/txs.py +112 -0
- lighter/models/validator_info.py +102 -0
- lighter/models/withdraw_history.py +114 -0
- lighter/models/withdraw_history_item.py +124 -0
- lighter/models/zk_lighter_info.py +100 -0
- lighter/nonce_manager.py +132 -0
- lighter/py.typed +0 -0
- lighter/rest.py +215 -0
- lighter/signer_client.py +917 -0
- lighter/signers/README.md +57 -0
- lighter/signers/signer-amd64.dll +0 -0
- lighter/signers/signer-amd64.so +0 -0
- lighter/signers/signer-arm64.dylib +0 -0
- lighter/transactions/__init__.py +3 -0
- lighter/transactions/cancel_order.py +27 -0
- lighter/transactions/create_order.py +33 -0
- lighter/transactions/withdraw.py +25 -0
- lighter/ws_client.py +165 -0
- qubx_lighter_api-0.1.4.dist-info/METADATA +30 -0
- qubx_lighter_api-0.1.4.dist-info/RECORD +166 -0
- qubx_lighter_api-0.1.4.dist-info/WHEEL +5 -0
- qubx_lighter_api-0.1.4.dist-info/licenses/LICENSE +201 -0
- qubx_lighter_api-0.1.4.dist-info/top_level.txt +1 -0
lighter/__init__.py
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
zkLighter API
|
|
7
|
+
|
|
8
|
+
Public APIs for Lighter
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# import apis into sdk package
|
|
20
|
+
from lighter.api.account_api import AccountApi
|
|
21
|
+
from lighter.api.announcement_api import AnnouncementApi
|
|
22
|
+
from lighter.api.block_api import BlockApi
|
|
23
|
+
from lighter.api.bridge_api import BridgeApi
|
|
24
|
+
from lighter.api.candlestick_api import CandlestickApi
|
|
25
|
+
from lighter.api.funding_api import FundingApi
|
|
26
|
+
from lighter.api.info_api import InfoApi
|
|
27
|
+
from lighter.api.notification_api import NotificationApi
|
|
28
|
+
from lighter.api.order_api import OrderApi
|
|
29
|
+
from lighter.api.referral_api import ReferralApi
|
|
30
|
+
from lighter.api.root_api import RootApi
|
|
31
|
+
from lighter.api.transaction_api import TransactionApi
|
|
32
|
+
|
|
33
|
+
# import ApiClient
|
|
34
|
+
from lighter.api_response import ApiResponse
|
|
35
|
+
from lighter.api_client import ApiClient
|
|
36
|
+
from lighter.configuration import Configuration
|
|
37
|
+
from lighter.exceptions import OpenApiException
|
|
38
|
+
from lighter.exceptions import ApiTypeError
|
|
39
|
+
from lighter.exceptions import ApiValueError
|
|
40
|
+
from lighter.exceptions import ApiKeyError
|
|
41
|
+
from lighter.exceptions import ApiAttributeError
|
|
42
|
+
from lighter.exceptions import ApiException
|
|
43
|
+
|
|
44
|
+
# import models into sdk package
|
|
45
|
+
from lighter.models.account import Account
|
|
46
|
+
from lighter.models.account_api_keys import AccountApiKeys
|
|
47
|
+
from lighter.models.account_limits import AccountLimits
|
|
48
|
+
from lighter.models.account_margin_stats import AccountMarginStats
|
|
49
|
+
from lighter.models.account_market_stats import AccountMarketStats
|
|
50
|
+
from lighter.models.account_metadata import AccountMetadata
|
|
51
|
+
from lighter.models.account_metadatas import AccountMetadatas
|
|
52
|
+
from lighter.models.account_pn_l import AccountPnL
|
|
53
|
+
from lighter.models.account_position import AccountPosition
|
|
54
|
+
from lighter.models.account_stats import AccountStats
|
|
55
|
+
from lighter.models.account_trade_stats import AccountTradeStats
|
|
56
|
+
from lighter.models.announcement import Announcement
|
|
57
|
+
from lighter.models.announcements import Announcements
|
|
58
|
+
from lighter.models.api_key import ApiKey
|
|
59
|
+
from lighter.models.block import Block
|
|
60
|
+
from lighter.models.blocks import Blocks
|
|
61
|
+
from lighter.models.bridge_supported_network import BridgeSupportedNetwork
|
|
62
|
+
from lighter.models.candlestick import Candlestick
|
|
63
|
+
from lighter.models.candlesticks import Candlesticks
|
|
64
|
+
from lighter.models.contract_address import ContractAddress
|
|
65
|
+
from lighter.models.current_height import CurrentHeight
|
|
66
|
+
from lighter.models.cursor import Cursor
|
|
67
|
+
from lighter.models.daily_return import DailyReturn
|
|
68
|
+
from lighter.models.deposit_history import DepositHistory
|
|
69
|
+
from lighter.models.deposit_history_item import DepositHistoryItem
|
|
70
|
+
from lighter.models.detailed_account import DetailedAccount
|
|
71
|
+
from lighter.models.detailed_accounts import DetailedAccounts
|
|
72
|
+
from lighter.models.detailed_candlestick import DetailedCandlestick
|
|
73
|
+
from lighter.models.enriched_tx import EnrichedTx
|
|
74
|
+
from lighter.models.exchange_stats import ExchangeStats
|
|
75
|
+
from lighter.models.export_data import ExportData
|
|
76
|
+
from lighter.models.funding import Funding
|
|
77
|
+
from lighter.models.funding_rate import FundingRate
|
|
78
|
+
from lighter.models.funding_rates import FundingRates
|
|
79
|
+
from lighter.models.fundings import Fundings
|
|
80
|
+
from lighter.models.l1_metadata import L1Metadata
|
|
81
|
+
from lighter.models.l1_provider_info import L1ProviderInfo
|
|
82
|
+
from lighter.models.liq_trade import LiqTrade
|
|
83
|
+
from lighter.models.liquidation import Liquidation
|
|
84
|
+
from lighter.models.liquidation_info import LiquidationInfo
|
|
85
|
+
from lighter.models.liquidation_infos import LiquidationInfos
|
|
86
|
+
from lighter.models.market_info import MarketInfo
|
|
87
|
+
from lighter.models.next_nonce import NextNonce
|
|
88
|
+
from lighter.models.order import Order
|
|
89
|
+
from lighter.models.order_book import OrderBook
|
|
90
|
+
from lighter.models.order_book_depth import OrderBookDepth
|
|
91
|
+
from lighter.models.order_book_detail import OrderBookDetail
|
|
92
|
+
from lighter.models.order_book_details import OrderBookDetails
|
|
93
|
+
from lighter.models.order_book_orders import OrderBookOrders
|
|
94
|
+
from lighter.models.order_book_stats import OrderBookStats
|
|
95
|
+
from lighter.models.order_books import OrderBooks
|
|
96
|
+
from lighter.models.orders import Orders
|
|
97
|
+
from lighter.models.pn_l_entry import PnLEntry
|
|
98
|
+
from lighter.models.position_funding import PositionFunding
|
|
99
|
+
from lighter.models.position_fundings import PositionFundings
|
|
100
|
+
from lighter.models.price_level import PriceLevel
|
|
101
|
+
from lighter.models.public_pool import PublicPool
|
|
102
|
+
from lighter.models.public_pool_info import PublicPoolInfo
|
|
103
|
+
from lighter.models.public_pool_metadata import PublicPoolMetadata
|
|
104
|
+
from lighter.models.public_pool_share import PublicPoolShare
|
|
105
|
+
from lighter.models.public_pools import PublicPools
|
|
106
|
+
from lighter.models.referral_point_entry import ReferralPointEntry
|
|
107
|
+
from lighter.models.referral_points import ReferralPoints
|
|
108
|
+
from lighter.models.req_export_data import ReqExportData
|
|
109
|
+
from lighter.models.req_get_account import ReqGetAccount
|
|
110
|
+
from lighter.models.req_get_account_active_orders import ReqGetAccountActiveOrders
|
|
111
|
+
from lighter.models.req_get_account_api_keys import ReqGetAccountApiKeys
|
|
112
|
+
from lighter.models.req_get_account_by_l1_address import ReqGetAccountByL1Address
|
|
113
|
+
from lighter.models.req_get_account_inactive_orders import ReqGetAccountInactiveOrders
|
|
114
|
+
from lighter.models.req_get_account_limits import ReqGetAccountLimits
|
|
115
|
+
from lighter.models.req_get_account_metadata import ReqGetAccountMetadata
|
|
116
|
+
from lighter.models.req_get_account_pn_l import ReqGetAccountPnL
|
|
117
|
+
from lighter.models.req_get_account_txs import ReqGetAccountTxs
|
|
118
|
+
from lighter.models.req_get_block import ReqGetBlock
|
|
119
|
+
from lighter.models.req_get_block_txs import ReqGetBlockTxs
|
|
120
|
+
from lighter.models.req_get_by_account import ReqGetByAccount
|
|
121
|
+
from lighter.models.req_get_candlesticks import ReqGetCandlesticks
|
|
122
|
+
from lighter.models.req_get_deposit_history import ReqGetDepositHistory
|
|
123
|
+
from lighter.models.req_get_fast_withdraw_info import ReqGetFastWithdrawInfo
|
|
124
|
+
from lighter.models.req_get_fundings import ReqGetFundings
|
|
125
|
+
from lighter.models.req_get_l1_metadata import ReqGetL1Metadata
|
|
126
|
+
from lighter.models.req_get_l1_tx import ReqGetL1Tx
|
|
127
|
+
from lighter.models.req_get_latest_deposit import ReqGetLatestDeposit
|
|
128
|
+
from lighter.models.req_get_liquidation_infos import ReqGetLiquidationInfos
|
|
129
|
+
from lighter.models.req_get_next_nonce import ReqGetNextNonce
|
|
130
|
+
from lighter.models.req_get_order_book_details import ReqGetOrderBookDetails
|
|
131
|
+
from lighter.models.req_get_order_book_orders import ReqGetOrderBookOrders
|
|
132
|
+
from lighter.models.req_get_order_books import ReqGetOrderBooks
|
|
133
|
+
from lighter.models.req_get_position_funding import ReqGetPositionFunding
|
|
134
|
+
from lighter.models.req_get_public_pools import ReqGetPublicPools
|
|
135
|
+
from lighter.models.req_get_public_pools_metadata import ReqGetPublicPoolsMetadata
|
|
136
|
+
from lighter.models.req_get_range_with_cursor import ReqGetRangeWithCursor
|
|
137
|
+
from lighter.models.req_get_range_with_index import ReqGetRangeWithIndex
|
|
138
|
+
from lighter.models.req_get_range_with_index_sortable import ReqGetRangeWithIndexSortable
|
|
139
|
+
from lighter.models.req_get_recent_trades import ReqGetRecentTrades
|
|
140
|
+
from lighter.models.req_get_referral_points import ReqGetReferralPoints
|
|
141
|
+
from lighter.models.req_get_trades import ReqGetTrades
|
|
142
|
+
from lighter.models.req_get_transfer_fee_info import ReqGetTransferFeeInfo
|
|
143
|
+
from lighter.models.req_get_transfer_history import ReqGetTransferHistory
|
|
144
|
+
from lighter.models.req_get_tx import ReqGetTx
|
|
145
|
+
from lighter.models.req_get_withdraw_history import ReqGetWithdrawHistory
|
|
146
|
+
from lighter.models.resp_change_account_tier import RespChangeAccountTier
|
|
147
|
+
from lighter.models.resp_get_fast_bridge_info import RespGetFastBridgeInfo
|
|
148
|
+
from lighter.models.resp_public_pools_metadata import RespPublicPoolsMetadata
|
|
149
|
+
from lighter.models.resp_send_tx import RespSendTx
|
|
150
|
+
from lighter.models.resp_send_tx_batch import RespSendTxBatch
|
|
151
|
+
from lighter.models.resp_withdrawal_delay import RespWithdrawalDelay
|
|
152
|
+
from lighter.models.result_code import ResultCode
|
|
153
|
+
from lighter.models.risk_info import RiskInfo
|
|
154
|
+
from lighter.models.risk_parameters import RiskParameters
|
|
155
|
+
from lighter.models.share_price import SharePrice
|
|
156
|
+
from lighter.models.simple_order import SimpleOrder
|
|
157
|
+
from lighter.models.status import Status
|
|
158
|
+
from lighter.models.sub_accounts import SubAccounts
|
|
159
|
+
from lighter.models.ticker import Ticker
|
|
160
|
+
from lighter.models.trade import Trade
|
|
161
|
+
from lighter.models.trades import Trades
|
|
162
|
+
from lighter.models.transfer_fee_info import TransferFeeInfo
|
|
163
|
+
from lighter.models.transfer_history import TransferHistory
|
|
164
|
+
from lighter.models.transfer_history_item import TransferHistoryItem
|
|
165
|
+
from lighter.models.tx import Tx
|
|
166
|
+
from lighter.models.tx_hash import TxHash
|
|
167
|
+
from lighter.models.tx_hashes import TxHashes
|
|
168
|
+
from lighter.models.txs import Txs
|
|
169
|
+
from lighter.models.validator_info import ValidatorInfo
|
|
170
|
+
from lighter.models.withdraw_history import WithdrawHistory
|
|
171
|
+
from lighter.models.withdraw_history_item import WithdrawHistoryItem
|
|
172
|
+
from lighter.models.zk_lighter_info import ZkLighterInfo
|
|
173
|
+
from lighter.ws_client import WsClient
|
|
174
|
+
from lighter.signer_client import SignerClient, create_api_key
|
lighter/api/__init__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from lighter.api.account_api import AccountApi
|
|
5
|
+
from lighter.api.announcement_api import AnnouncementApi
|
|
6
|
+
from lighter.api.block_api import BlockApi
|
|
7
|
+
from lighter.api.bridge_api import BridgeApi
|
|
8
|
+
from lighter.api.candlestick_api import CandlestickApi
|
|
9
|
+
from lighter.api.funding_api import FundingApi
|
|
10
|
+
from lighter.api.info_api import InfoApi
|
|
11
|
+
from lighter.api.notification_api import NotificationApi
|
|
12
|
+
from lighter.api.order_api import OrderApi
|
|
13
|
+
from lighter.api.referral_api import ReferralApi
|
|
14
|
+
from lighter.api.root_api import RootApi
|
|
15
|
+
from lighter.api.transaction_api import TransactionApi
|
|
16
|
+
|