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.
Files changed (166) hide show
  1. lighter/__init__.py +174 -0
  2. lighter/api/__init__.py +16 -0
  3. lighter/api/account_api.py +3892 -0
  4. lighter/api/announcement_api.py +282 -0
  5. lighter/api/block_api.py +863 -0
  6. lighter/api/bridge_api.py +282 -0
  7. lighter/api/candlestick_api.py +719 -0
  8. lighter/api/funding_api.py +282 -0
  9. lighter/api/info_api.py +597 -0
  10. lighter/api/notification_api.py +358 -0
  11. lighter/api/order_api.py +2829 -0
  12. lighter/api/referral_api.py +334 -0
  13. lighter/api/root_api.py +529 -0
  14. lighter/api/transaction_api.py +3373 -0
  15. lighter/api_client.py +784 -0
  16. lighter/api_response.py +21 -0
  17. lighter/configuration.py +475 -0
  18. lighter/errors.py +2 -0
  19. lighter/exceptions.py +199 -0
  20. lighter/models/__init__.py +144 -0
  21. lighter/models/account.py +122 -0
  22. lighter/models/account_api_keys.py +112 -0
  23. lighter/models/account_limits.py +106 -0
  24. lighter/models/account_margin_stats.py +110 -0
  25. lighter/models/account_market_stats.py +124 -0
  26. lighter/models/account_metadata.py +108 -0
  27. lighter/models/account_metadatas.py +112 -0
  28. lighter/models/account_pn_l.py +114 -0
  29. lighter/models/account_position.py +130 -0
  30. lighter/models/account_stats.py +121 -0
  31. lighter/models/account_trade_stats.py +114 -0
  32. lighter/models/announcement.py +104 -0
  33. lighter/models/announcements.py +112 -0
  34. lighter/models/api_key.py +106 -0
  35. lighter/models/block.py +132 -0
  36. lighter/models/blocks.py +114 -0
  37. lighter/models/bridge_supported_network.py +104 -0
  38. lighter/models/candlestick.py +114 -0
  39. lighter/models/candlesticks.py +114 -0
  40. lighter/models/contract_address.py +102 -0
  41. lighter/models/current_height.py +104 -0
  42. lighter/models/cursor.py +100 -0
  43. lighter/models/daily_return.py +102 -0
  44. lighter/models/deposit_history.py +114 -0
  45. lighter/models/deposit_history_item.py +115 -0
  46. lighter/models/detailed_account.py +162 -0
  47. lighter/models/detailed_accounts.py +114 -0
  48. lighter/models/detailed_candlestick.py +116 -0
  49. lighter/models/enriched_tx.py +137 -0
  50. lighter/models/exchange_stats.py +118 -0
  51. lighter/models/export_data.py +104 -0
  52. lighter/models/funding.py +106 -0
  53. lighter/models/funding_rate.py +113 -0
  54. lighter/models/funding_rates.py +112 -0
  55. lighter/models/fundings.py +114 -0
  56. lighter/models/l1_metadata.py +104 -0
  57. lighter/models/l1_provider_info.py +104 -0
  58. lighter/models/liq_trade.py +106 -0
  59. lighter/models/liquidation.py +125 -0
  60. lighter/models/liquidation_info.py +121 -0
  61. lighter/models/liquidation_infos.py +114 -0
  62. lighter/models/market_info.py +124 -0
  63. lighter/models/next_nonce.py +104 -0
  64. lighter/models/order.py +188 -0
  65. lighter/models/order_book.py +127 -0
  66. lighter/models/order_book_depth.py +123 -0
  67. lighter/models/order_book_detail.py +159 -0
  68. lighter/models/order_book_details.py +112 -0
  69. lighter/models/order_book_orders.py +125 -0
  70. lighter/models/order_book_stats.py +110 -0
  71. lighter/models/order_books.py +112 -0
  72. lighter/models/orders.py +114 -0
  73. lighter/models/pn_l_entry.py +114 -0
  74. lighter/models/position_funding.py +119 -0
  75. lighter/models/position_fundings.py +114 -0
  76. lighter/models/price_level.py +102 -0
  77. lighter/models/public_pool.py +148 -0
  78. lighter/models/public_pool_info.py +130 -0
  79. lighter/models/public_pool_metadata.py +126 -0
  80. lighter/models/public_pool_share.py +104 -0
  81. lighter/models/public_pools.py +114 -0
  82. lighter/models/referral_point_entry.py +110 -0
  83. lighter/models/referral_points.py +118 -0
  84. lighter/models/req_export_data.py +113 -0
  85. lighter/models/req_get_account.py +109 -0
  86. lighter/models/req_get_account_active_orders.py +104 -0
  87. lighter/models/req_get_account_api_keys.py +102 -0
  88. lighter/models/req_get_account_by_l1_address.py +100 -0
  89. lighter/models/req_get_account_inactive_orders.py +113 -0
  90. lighter/models/req_get_account_limits.py +102 -0
  91. lighter/models/req_get_account_metadata.py +111 -0
  92. lighter/models/req_get_account_pn_l.py +129 -0
  93. lighter/models/req_get_account_txs.py +121 -0
  94. lighter/models/req_get_block.py +109 -0
  95. lighter/models/req_get_block_txs.py +109 -0
  96. lighter/models/req_get_by_account.py +109 -0
  97. lighter/models/req_get_candlesticks.py +118 -0
  98. lighter/models/req_get_deposit_history.py +118 -0
  99. lighter/models/req_get_fast_withdraw_info.py +102 -0
  100. lighter/models/req_get_fundings.py +116 -0
  101. lighter/models/req_get_l1_metadata.py +102 -0
  102. lighter/models/req_get_l1_tx.py +100 -0
  103. lighter/models/req_get_latest_deposit.py +100 -0
  104. lighter/models/req_get_liquidation_infos.py +109 -0
  105. lighter/models/req_get_next_nonce.py +102 -0
  106. lighter/models/req_get_order_book_details.py +100 -0
  107. lighter/models/req_get_order_book_orders.py +103 -0
  108. lighter/models/req_get_order_books.py +100 -0
  109. lighter/models/req_get_position_funding.py +121 -0
  110. lighter/models/req_get_public_pools.py +119 -0
  111. lighter/models/req_get_public_pools_metadata.py +119 -0
  112. lighter/models/req_get_range_with_cursor.py +103 -0
  113. lighter/models/req_get_range_with_index.py +103 -0
  114. lighter/models/req_get_range_with_index_sortable.py +115 -0
  115. lighter/models/req_get_recent_trades.py +103 -0
  116. lighter/models/req_get_referral_points.py +102 -0
  117. lighter/models/req_get_trades.py +136 -0
  118. lighter/models/req_get_transfer_fee_info.py +104 -0
  119. lighter/models/req_get_transfer_history.py +104 -0
  120. lighter/models/req_get_tx.py +109 -0
  121. lighter/models/req_get_withdraw_history.py +116 -0
  122. lighter/models/resp_change_account_tier.py +102 -0
  123. lighter/models/resp_get_fast_bridge_info.py +104 -0
  124. lighter/models/resp_public_pools_metadata.py +112 -0
  125. lighter/models/resp_send_tx.py +106 -0
  126. lighter/models/resp_send_tx_batch.py +106 -0
  127. lighter/models/resp_withdrawal_delay.py +100 -0
  128. lighter/models/result_code.py +102 -0
  129. lighter/models/risk_info.py +113 -0
  130. lighter/models/risk_parameters.py +110 -0
  131. lighter/models/share_price.py +102 -0
  132. lighter/models/simple_order.py +112 -0
  133. lighter/models/status.py +104 -0
  134. lighter/models/sub_accounts.py +114 -0
  135. lighter/models/ticker.py +111 -0
  136. lighter/models/trade.py +153 -0
  137. lighter/models/trades.py +114 -0
  138. lighter/models/transfer_fee_info.py +104 -0
  139. lighter/models/transfer_history.py +114 -0
  140. lighter/models/transfer_history_item.py +123 -0
  141. lighter/models/tx.py +129 -0
  142. lighter/models/tx_hash.py +104 -0
  143. lighter/models/tx_hashes.py +104 -0
  144. lighter/models/txs.py +112 -0
  145. lighter/models/validator_info.py +102 -0
  146. lighter/models/withdraw_history.py +114 -0
  147. lighter/models/withdraw_history_item.py +124 -0
  148. lighter/models/zk_lighter_info.py +100 -0
  149. lighter/nonce_manager.py +132 -0
  150. lighter/py.typed +0 -0
  151. lighter/rest.py +215 -0
  152. lighter/signer_client.py +917 -0
  153. lighter/signers/README.md +57 -0
  154. lighter/signers/signer-amd64.dll +0 -0
  155. lighter/signers/signer-amd64.so +0 -0
  156. lighter/signers/signer-arm64.dylib +0 -0
  157. lighter/transactions/__init__.py +3 -0
  158. lighter/transactions/cancel_order.py +27 -0
  159. lighter/transactions/create_order.py +33 -0
  160. lighter/transactions/withdraw.py +25 -0
  161. lighter/ws_client.py +165 -0
  162. qubx_lighter_api-0.1.4.dist-info/METADATA +30 -0
  163. qubx_lighter_api-0.1.4.dist-info/RECORD +166 -0
  164. qubx_lighter_api-0.1.4.dist-info/WHEEL +5 -0
  165. qubx_lighter_api-0.1.4.dist-info/licenses/LICENSE +201 -0
  166. 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
@@ -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
+