qubx-lighter-api 0.1.4__tar.gz
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.
- qubx_lighter_api-0.1.4/LICENSE +201 -0
- qubx_lighter_api-0.1.4/PKG-INFO +30 -0
- qubx_lighter_api-0.1.4/README.md +198 -0
- qubx_lighter_api-0.1.4/lighter/__init__.py +174 -0
- qubx_lighter_api-0.1.4/lighter/api/__init__.py +16 -0
- qubx_lighter_api-0.1.4/lighter/api/account_api.py +3892 -0
- qubx_lighter_api-0.1.4/lighter/api/announcement_api.py +282 -0
- qubx_lighter_api-0.1.4/lighter/api/block_api.py +863 -0
- qubx_lighter_api-0.1.4/lighter/api/bridge_api.py +282 -0
- qubx_lighter_api-0.1.4/lighter/api/candlestick_api.py +719 -0
- qubx_lighter_api-0.1.4/lighter/api/funding_api.py +282 -0
- qubx_lighter_api-0.1.4/lighter/api/info_api.py +597 -0
- qubx_lighter_api-0.1.4/lighter/api/notification_api.py +358 -0
- qubx_lighter_api-0.1.4/lighter/api/order_api.py +2829 -0
- qubx_lighter_api-0.1.4/lighter/api/referral_api.py +334 -0
- qubx_lighter_api-0.1.4/lighter/api/root_api.py +529 -0
- qubx_lighter_api-0.1.4/lighter/api/transaction_api.py +3373 -0
- qubx_lighter_api-0.1.4/lighter/api_client.py +784 -0
- qubx_lighter_api-0.1.4/lighter/api_response.py +21 -0
- qubx_lighter_api-0.1.4/lighter/configuration.py +475 -0
- qubx_lighter_api-0.1.4/lighter/errors.py +2 -0
- qubx_lighter_api-0.1.4/lighter/exceptions.py +199 -0
- qubx_lighter_api-0.1.4/lighter/models/__init__.py +144 -0
- qubx_lighter_api-0.1.4/lighter/models/account.py +122 -0
- qubx_lighter_api-0.1.4/lighter/models/account_api_keys.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/account_limits.py +106 -0
- qubx_lighter_api-0.1.4/lighter/models/account_margin_stats.py +110 -0
- qubx_lighter_api-0.1.4/lighter/models/account_market_stats.py +124 -0
- qubx_lighter_api-0.1.4/lighter/models/account_metadata.py +108 -0
- qubx_lighter_api-0.1.4/lighter/models/account_metadatas.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/account_pn_l.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/account_position.py +130 -0
- qubx_lighter_api-0.1.4/lighter/models/account_stats.py +121 -0
- qubx_lighter_api-0.1.4/lighter/models/account_trade_stats.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/announcement.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/announcements.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/api_key.py +106 -0
- qubx_lighter_api-0.1.4/lighter/models/block.py +132 -0
- qubx_lighter_api-0.1.4/lighter/models/blocks.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/bridge_supported_network.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/candlestick.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/candlesticks.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/contract_address.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/current_height.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/cursor.py +100 -0
- qubx_lighter_api-0.1.4/lighter/models/daily_return.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/deposit_history.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/deposit_history_item.py +115 -0
- qubx_lighter_api-0.1.4/lighter/models/detailed_account.py +162 -0
- qubx_lighter_api-0.1.4/lighter/models/detailed_accounts.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/detailed_candlestick.py +116 -0
- qubx_lighter_api-0.1.4/lighter/models/enriched_tx.py +137 -0
- qubx_lighter_api-0.1.4/lighter/models/exchange_stats.py +118 -0
- qubx_lighter_api-0.1.4/lighter/models/export_data.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/funding.py +106 -0
- qubx_lighter_api-0.1.4/lighter/models/funding_rate.py +113 -0
- qubx_lighter_api-0.1.4/lighter/models/funding_rates.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/fundings.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/l1_metadata.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/l1_provider_info.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/liq_trade.py +106 -0
- qubx_lighter_api-0.1.4/lighter/models/liquidation.py +125 -0
- qubx_lighter_api-0.1.4/lighter/models/liquidation_info.py +121 -0
- qubx_lighter_api-0.1.4/lighter/models/liquidation_infos.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/market_info.py +124 -0
- qubx_lighter_api-0.1.4/lighter/models/next_nonce.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/order.py +188 -0
- qubx_lighter_api-0.1.4/lighter/models/order_book.py +127 -0
- qubx_lighter_api-0.1.4/lighter/models/order_book_depth.py +123 -0
- qubx_lighter_api-0.1.4/lighter/models/order_book_detail.py +159 -0
- qubx_lighter_api-0.1.4/lighter/models/order_book_details.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/order_book_orders.py +125 -0
- qubx_lighter_api-0.1.4/lighter/models/order_book_stats.py +110 -0
- qubx_lighter_api-0.1.4/lighter/models/order_books.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/orders.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/pn_l_entry.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/position_funding.py +119 -0
- qubx_lighter_api-0.1.4/lighter/models/position_fundings.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/price_level.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/public_pool.py +148 -0
- qubx_lighter_api-0.1.4/lighter/models/public_pool_info.py +130 -0
- qubx_lighter_api-0.1.4/lighter/models/public_pool_metadata.py +126 -0
- qubx_lighter_api-0.1.4/lighter/models/public_pool_share.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/public_pools.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/referral_point_entry.py +110 -0
- qubx_lighter_api-0.1.4/lighter/models/referral_points.py +118 -0
- qubx_lighter_api-0.1.4/lighter/models/req_export_data.py +113 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account.py +109 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_active_orders.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_api_keys.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_by_l1_address.py +100 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_inactive_orders.py +113 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_limits.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_metadata.py +111 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_pn_l.py +129 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_account_txs.py +121 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_block.py +109 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_block_txs.py +109 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_by_account.py +109 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_candlesticks.py +118 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_deposit_history.py +118 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_fast_withdraw_info.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_fundings.py +116 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_l1_metadata.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_l1_tx.py +100 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_latest_deposit.py +100 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_liquidation_infos.py +109 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_next_nonce.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_order_book_details.py +100 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_order_book_orders.py +103 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_order_books.py +100 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_position_funding.py +121 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_public_pools.py +119 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_public_pools_metadata.py +119 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_range_with_cursor.py +103 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_range_with_index.py +103 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_range_with_index_sortable.py +115 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_recent_trades.py +103 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_referral_points.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_trades.py +136 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_transfer_fee_info.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_transfer_history.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_tx.py +109 -0
- qubx_lighter_api-0.1.4/lighter/models/req_get_withdraw_history.py +116 -0
- qubx_lighter_api-0.1.4/lighter/models/resp_change_account_tier.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/resp_get_fast_bridge_info.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/resp_public_pools_metadata.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/resp_send_tx.py +106 -0
- qubx_lighter_api-0.1.4/lighter/models/resp_send_tx_batch.py +106 -0
- qubx_lighter_api-0.1.4/lighter/models/resp_withdrawal_delay.py +100 -0
- qubx_lighter_api-0.1.4/lighter/models/result_code.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/risk_info.py +113 -0
- qubx_lighter_api-0.1.4/lighter/models/risk_parameters.py +110 -0
- qubx_lighter_api-0.1.4/lighter/models/share_price.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/simple_order.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/status.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/sub_accounts.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/ticker.py +111 -0
- qubx_lighter_api-0.1.4/lighter/models/trade.py +153 -0
- qubx_lighter_api-0.1.4/lighter/models/trades.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/transfer_fee_info.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/transfer_history.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/transfer_history_item.py +123 -0
- qubx_lighter_api-0.1.4/lighter/models/tx.py +129 -0
- qubx_lighter_api-0.1.4/lighter/models/tx_hash.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/tx_hashes.py +104 -0
- qubx_lighter_api-0.1.4/lighter/models/txs.py +112 -0
- qubx_lighter_api-0.1.4/lighter/models/validator_info.py +102 -0
- qubx_lighter_api-0.1.4/lighter/models/withdraw_history.py +114 -0
- qubx_lighter_api-0.1.4/lighter/models/withdraw_history_item.py +124 -0
- qubx_lighter_api-0.1.4/lighter/models/zk_lighter_info.py +100 -0
- qubx_lighter_api-0.1.4/lighter/nonce_manager.py +132 -0
- qubx_lighter_api-0.1.4/lighter/py.typed +0 -0
- qubx_lighter_api-0.1.4/lighter/rest.py +215 -0
- qubx_lighter_api-0.1.4/lighter/signer_client.py +917 -0
- qubx_lighter_api-0.1.4/lighter/signers/README.md +57 -0
- qubx_lighter_api-0.1.4/lighter/signers/signer-amd64.dll +0 -0
- qubx_lighter_api-0.1.4/lighter/signers/signer-amd64.so +0 -0
- qubx_lighter_api-0.1.4/lighter/signers/signer-arm64.dylib +0 -0
- qubx_lighter_api-0.1.4/lighter/transactions/__init__.py +3 -0
- qubx_lighter_api-0.1.4/lighter/transactions/cancel_order.py +27 -0
- qubx_lighter_api-0.1.4/lighter/transactions/create_order.py +33 -0
- qubx_lighter_api-0.1.4/lighter/transactions/withdraw.py +25 -0
- qubx_lighter_api-0.1.4/lighter/ws_client.py +165 -0
- qubx_lighter_api-0.1.4/pyproject.toml +79 -0
- qubx_lighter_api-0.1.4/qubx_lighter_api.egg-info/PKG-INFO +30 -0
- qubx_lighter_api-0.1.4/qubx_lighter_api.egg-info/SOURCES.txt +172 -0
- qubx_lighter_api-0.1.4/qubx_lighter_api.egg-info/dependency_links.txt +1 -0
- qubx_lighter_api-0.1.4/qubx_lighter_api.egg-info/requires.txt +9 -0
- qubx_lighter_api-0.1.4/qubx_lighter_api.egg-info/top_level.txt +1 -0
- qubx_lighter_api-0.1.4/setup.cfg +7 -0
- qubx_lighter_api-0.1.4/setup.py +54 -0
- qubx_lighter_api-0.1.4/test/test_account.py +86 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: qubx-lighter-api
|
|
3
|
+
Version: 0.1.4
|
|
4
|
+
Summary: Python SDK for lighter.xyz
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: OpenAPI Generator community
|
|
7
|
+
Author-email: team@openapitools.org
|
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: urllib3<2.1.0,>=1.25.3
|
|
12
|
+
Requires-Dist: python-dateutil
|
|
13
|
+
Requires-Dist: aiohttp>=3.0.0
|
|
14
|
+
Requires-Dist: aiohttp-retry>=2.8.3
|
|
15
|
+
Requires-Dist: pydantic>=2
|
|
16
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
17
|
+
Requires-Dist: websockets>=12.0.0
|
|
18
|
+
Requires-Dist: eth-account>=0.13.4
|
|
19
|
+
Requires-Dist: requests>=2.31.0
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
24
|
+
Dynamic: keywords
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
Dynamic: requires-dist
|
|
27
|
+
Dynamic: summary
|
|
28
|
+
|
|
29
|
+
Python SDK for Lighter trading. Includes api clients and signer.
|
|
30
|
+
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# Lighter Python
|
|
2
|
+
|
|
3
|
+
Python SDK for Lighter
|
|
4
|
+
|
|
5
|
+
## Requirements.
|
|
6
|
+
|
|
7
|
+
Python 3.8+
|
|
8
|
+
|
|
9
|
+
## Installation & Usage
|
|
10
|
+
### pip install
|
|
11
|
+
|
|
12
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
pip install git+https://github.com/elliottech/lighter-python.git
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Then import the package:
|
|
20
|
+
```python
|
|
21
|
+
import lighter
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Tests
|
|
25
|
+
|
|
26
|
+
Execute `pytest` to run the tests.
|
|
27
|
+
|
|
28
|
+
## Getting Started
|
|
29
|
+
|
|
30
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
|
|
34
|
+
import lighter
|
|
35
|
+
import asyncio
|
|
36
|
+
|
|
37
|
+
async def main():
|
|
38
|
+
client = lighter.ApiClient()
|
|
39
|
+
account_api = lighter.AccountApi(client)
|
|
40
|
+
account = await account_api.get_account(by="index", value="1")
|
|
41
|
+
print(account)
|
|
42
|
+
|
|
43
|
+
if __name__ == "__main__":
|
|
44
|
+
asyncio.run(main())
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
# Examples
|
|
49
|
+
## [Read API Functions](examples/get_info.py)
|
|
50
|
+
```sh
|
|
51
|
+
python examples/get_info.py
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## [Websocket Sync Order Books & Accounts](examples/ws.py)
|
|
55
|
+
```sh
|
|
56
|
+
python examples/ws.py
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## [Create & Cancel Orders](examples/create_cancel_order.py)
|
|
60
|
+
```sh
|
|
61
|
+
python examples/create_cancel_order.py
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Documentation for API Endpoints
|
|
65
|
+
|
|
66
|
+
All URIs are relative to *https://mainnet.zklighter.elliot.ai*
|
|
67
|
+
|
|
68
|
+
Class | Method | HTTP request | Description
|
|
69
|
+
------------ | ------------- | ------------- | -------------
|
|
70
|
+
*AccountApi* | [**account**](docs/AccountApi.md#account) | **GET** /api/v1/account | account
|
|
71
|
+
*AccountApi* | [**accounts_by_l1_address**](docs/AccountApi.md#accounts_by_l1_address) | **GET** /api/v1/accountsByL1Address | accountsByL1Address
|
|
72
|
+
*AccountApi* | [**apikeys**](docs/AccountApi.md#apikeys) | **GET** /api/v1/apikeys | apikeys
|
|
73
|
+
*AccountApi* | [**pnl**](docs/AccountApi.md#pnl) | **GET** /api/v1/pnl | pnl
|
|
74
|
+
*AccountApi* | [**public_pools**](docs/AccountApi.md#public_pools) | **GET** /api/v1/publicPools | publicPools
|
|
75
|
+
*BlockApi* | [**block**](docs/BlockApi.md#block) | **GET** /api/v1/block | block
|
|
76
|
+
*BlockApi* | [**blocks**](docs/BlockApi.md#blocks) | **GET** /api/v1/blocks | blocks
|
|
77
|
+
*BlockApi* | [**current_height**](docs/BlockApi.md#current_height) | **GET** /api/v1/currentHeight | currentHeight
|
|
78
|
+
*CandlestickApi* | [**candlesticks**](docs/CandlestickApi.md#candlesticks) | **GET** /api/v1/candlesticks | candlesticks
|
|
79
|
+
*CandlestickApi* | [**fundings**](docs/CandlestickApi.md#fundings) | **GET** /api/v1/fundings | fundings
|
|
80
|
+
*OrderApi* | [**account_inactive_orders**](docs/OrderApi.md#account_inactive_orders) | **GET** /api/v1/accountInactiveOrders | accountInactiveOrders
|
|
81
|
+
*OrderApi* | [**exchange_stats**](docs/OrderApi.md#exchange_stats) | **GET** /api/v1/exchangeStats | exchangeStats
|
|
82
|
+
*OrderApi* | [**order_book_details**](docs/OrderApi.md#order_book_details) | **GET** /api/v1/orderBookDetails | orderBookDetails
|
|
83
|
+
*OrderApi* | [**order_book_orders**](docs/OrderApi.md#order_book_orders) | **GET** /api/v1/orderBookOrders | orderBookOrders
|
|
84
|
+
*OrderApi* | [**order_books**](docs/OrderApi.md#order_books) | **GET** /api/v1/orderBooks | orderBooks
|
|
85
|
+
*OrderApi* | [**recent_trades**](docs/OrderApi.md#recent_trades) | **GET** /api/v1/recentTrades | recentTrades
|
|
86
|
+
*OrderApi* | [**trades**](docs/OrderApi.md#trades) | **GET** /api/v1/trades | trades
|
|
87
|
+
*RootApi* | [**info**](docs/RootApi.md#info) | **GET** /info | info
|
|
88
|
+
*RootApi* | [**status**](docs/RootApi.md#status) | **GET** / | status
|
|
89
|
+
*TransactionApi* | [**account_txs**](docs/TransactionApi.md#account_txs) | **GET** /api/v1/accountTxs | accountTxs
|
|
90
|
+
*TransactionApi* | [**block_txs**](docs/TransactionApi.md#block_txs) | **GET** /api/v1/blockTxs | blockTxs
|
|
91
|
+
*TransactionApi* | [**deposit_history**](docs/TransactionApi.md#deposit_history) | **GET** /api/v1/deposit/history | deposit_history
|
|
92
|
+
*TransactionApi* | [**next_nonce**](docs/TransactionApi.md#next_nonce) | **GET** /api/v1/nextNonce | nextNonce
|
|
93
|
+
*TransactionApi* | [**send_tx**](docs/TransactionApi.md#send_tx) | **POST** /api/v1/sendTx | sendTx
|
|
94
|
+
*TransactionApi* | [**send_tx_batch**](docs/TransactionApi.md#send_tx_batch) | **POST** /api/v1/sendTxBatch | sendTxBatch
|
|
95
|
+
*TransactionApi* | [**tx**](docs/TransactionApi.md#tx) | **GET** /api/v1/tx | tx
|
|
96
|
+
*TransactionApi* | [**tx_from_l1_tx_hash**](docs/TransactionApi.md#tx_from_l1_tx_hash) | **GET** /api/v1/txFromL1TxHash | txFromL1TxHash
|
|
97
|
+
*TransactionApi* | [**txs**](docs/TransactionApi.md#txs) | **GET** /api/v1/txs | txs
|
|
98
|
+
*TransactionApi* | [**withdraw_history**](docs/TransactionApi.md#withdraw_history) | **GET** /api/v1/withdraw/history | withdraw_history
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Documentation For Models
|
|
102
|
+
|
|
103
|
+
- [Account](docs/Account.md)
|
|
104
|
+
- [AccountApiKeys](docs/AccountApiKeys.md)
|
|
105
|
+
- [AccountMarketStats](docs/AccountMarketStats.md)
|
|
106
|
+
- [AccountMetadata](docs/AccountMetadata.md)
|
|
107
|
+
- [AccountPnL](docs/AccountPnL.md)
|
|
108
|
+
- [AccountPosition](docs/AccountPosition.md)
|
|
109
|
+
- [AccountStats](docs/AccountStats.md)
|
|
110
|
+
- [ApiKey](docs/ApiKey.md)
|
|
111
|
+
- [Block](docs/Block.md)
|
|
112
|
+
- [Blocks](docs/Blocks.md)
|
|
113
|
+
- [BridgeSupportedNetwork](docs/BridgeSupportedNetwork.md)
|
|
114
|
+
- [Candlestick](docs/Candlestick.md)
|
|
115
|
+
- [Candlesticks](docs/Candlesticks.md)
|
|
116
|
+
- [ContractAddress](docs/ContractAddress.md)
|
|
117
|
+
- [CurrentHeight](docs/CurrentHeight.md)
|
|
118
|
+
- [Cursor](docs/Cursor.md)
|
|
119
|
+
- [DepositHistory](docs/DepositHistory.md)
|
|
120
|
+
- [DepositHistoryItem](docs/DepositHistoryItem.md)
|
|
121
|
+
- [DetailedAccount](docs/DetailedAccount.md)
|
|
122
|
+
- [DetailedAccounts](docs/DetailedAccounts.md)
|
|
123
|
+
- [DetailedCandlestick](docs/DetailedCandlestick.md)
|
|
124
|
+
- [EnrichedTx](docs/EnrichedTx.md)
|
|
125
|
+
- [ExchangeStats](docs/ExchangeStats.md)
|
|
126
|
+
- [Funding](docs/Funding.md)
|
|
127
|
+
- [Fundings](docs/Fundings.md)
|
|
128
|
+
- [L1ProviderInfo](docs/L1ProviderInfo.md)
|
|
129
|
+
- [Liquidation](docs/Liquidation.md)
|
|
130
|
+
- [MarketInfo](docs/MarketInfo.md)
|
|
131
|
+
- [NextNonce](docs/NextNonce.md)
|
|
132
|
+
- [Order](docs/Order.md)
|
|
133
|
+
- [OrderBook](docs/OrderBook.md)
|
|
134
|
+
- [OrderBookDepth](docs/OrderBookDepth.md)
|
|
135
|
+
- [OrderBookDetail](docs/OrderBookDetail.md)
|
|
136
|
+
- [OrderBookDetails](docs/OrderBookDetails.md)
|
|
137
|
+
- [OrderBookOrders](docs/OrderBookOrders.md)
|
|
138
|
+
- [OrderBookStats](docs/OrderBookStats.md)
|
|
139
|
+
- [OrderBooks](docs/OrderBooks.md)
|
|
140
|
+
- [Orders](docs/Orders.md)
|
|
141
|
+
- [PnLEntry](docs/PnLEntry.md)
|
|
142
|
+
- [PositionFunding](docs/PositionFunding.md)
|
|
143
|
+
- [PriceLevel](docs/PriceLevel.md)
|
|
144
|
+
- [PublicPool](docs/PublicPool.md)
|
|
145
|
+
- [PublicPoolInfo](docs/PublicPoolInfo.md)
|
|
146
|
+
- [PublicPoolShare](docs/PublicPoolShare.md)
|
|
147
|
+
- [PublicPools](docs/PublicPools.md)
|
|
148
|
+
- [ReqGetAccount](docs/ReqGetAccount.md)
|
|
149
|
+
- [ReqGetAccountApiKeys](docs/ReqGetAccountApiKeys.md)
|
|
150
|
+
- [ReqGetAccountByL1Address](docs/ReqGetAccountByL1Address.md)
|
|
151
|
+
- [ReqGetAccountInactiveOrders](docs/ReqGetAccountInactiveOrders.md)
|
|
152
|
+
- [ReqGetAccountPnL](docs/ReqGetAccountPnL.md)
|
|
153
|
+
- [ReqGetAccountTxs](docs/ReqGetAccountTxs.md)
|
|
154
|
+
- [ReqGetBlock](docs/ReqGetBlock.md)
|
|
155
|
+
- [ReqGetBlockTxs](docs/ReqGetBlockTxs.md)
|
|
156
|
+
- [ReqGetByAccount](docs/ReqGetByAccount.md)
|
|
157
|
+
- [ReqGetCandlesticks](docs/ReqGetCandlesticks.md)
|
|
158
|
+
- [ReqGetDepositHistory](docs/ReqGetDepositHistory.md)
|
|
159
|
+
- [ReqGetFundings](docs/ReqGetFundings.md)
|
|
160
|
+
- [ReqGetL1Tx](docs/ReqGetL1Tx.md)
|
|
161
|
+
- [ReqGetLatestDeposit](docs/ReqGetLatestDeposit.md)
|
|
162
|
+
- [ReqGetNextNonce](docs/ReqGetNextNonce.md)
|
|
163
|
+
- [ReqGetOrderBookDetails](docs/ReqGetOrderBookDetails.md)
|
|
164
|
+
- [ReqGetOrderBookOrders](docs/ReqGetOrderBookOrders.md)
|
|
165
|
+
- [ReqGetOrderBooks](docs/ReqGetOrderBooks.md)
|
|
166
|
+
- [ReqGetPublicPools](docs/ReqGetPublicPools.md)
|
|
167
|
+
- [ReqGetRangeWithCursor](docs/ReqGetRangeWithCursor.md)
|
|
168
|
+
- [ReqGetRangeWithIndex](docs/ReqGetRangeWithIndex.md)
|
|
169
|
+
- [ReqGetRangeWithIndexSortable](docs/ReqGetRangeWithIndexSortable.md)
|
|
170
|
+
- [ReqGetRecentTrades](docs/ReqGetRecentTrades.md)
|
|
171
|
+
- [ReqGetTrades](docs/ReqGetTrades.md)
|
|
172
|
+
- [ReqGetTx](docs/ReqGetTx.md)
|
|
173
|
+
- [ReqGetWithdrawHistory](docs/ReqGetWithdrawHistory.md)
|
|
174
|
+
- [ResultCode](docs/ResultCode.md)
|
|
175
|
+
- [SimpleOrder](docs/SimpleOrder.md)
|
|
176
|
+
- [Status](docs/Status.md)
|
|
177
|
+
- [SubAccounts](docs/SubAccounts.md)
|
|
178
|
+
- [Ticker](docs/Ticker.md)
|
|
179
|
+
- [Trade](docs/Trade.md)
|
|
180
|
+
- [Trades](docs/Trades.md)
|
|
181
|
+
- [Tx](docs/Tx.md)
|
|
182
|
+
- [TxHash](docs/TxHash.md)
|
|
183
|
+
- [TxHashes](docs/TxHashes.md)
|
|
184
|
+
- [Txs](docs/Txs.md)
|
|
185
|
+
- [ValidatorInfo](docs/ValidatorInfo.md)
|
|
186
|
+
- [WithdrawHistory](docs/WithdrawHistory.md)
|
|
187
|
+
- [WithdrawHistoryItem](docs/WithdrawHistoryItem.md)
|
|
188
|
+
- [ZkLighterInfo](docs/ZkLighterInfo.md)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
[//]: # (<a id="documentation-for-authorization"></a>)
|
|
192
|
+
|
|
193
|
+
[//]: # (## Documentation For Authorization)
|
|
194
|
+
|
|
195
|
+
[//]: # ()
|
|
196
|
+
[//]: # (Endpoints do not require authorization.)
|
|
197
|
+
|
|
198
|
+
|
|
@@ -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
|
+
|