lighter-sdk 0.1.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- lighter/__init__.py +140 -0
- lighter/api/__init__.py +11 -0
- lighter/api/account_api.py +2371 -0
- lighter/api/block_api.py +863 -0
- lighter/api/candlestick_api.py +718 -0
- lighter/api/info_api.py +282 -0
- lighter/api/order_api.py +2734 -0
- lighter/api/root_api.py +529 -0
- lighter/api/transaction_api.py +3525 -0
- lighter/api_client.py +784 -0
- lighter/api_response.py +21 -0
- lighter/configuration.py +475 -0
- lighter/exceptions.py +199 -0
- lighter/models/__init__.py +112 -0
- lighter/models/account.py +110 -0
- lighter/models/account_api_keys.py +104 -0
- lighter/models/account_market_stats.py +98 -0
- lighter/models/account_metadata.py +94 -0
- lighter/models/account_pn_l.py +106 -0
- lighter/models/account_position.py +112 -0
- lighter/models/account_stats.py +102 -0
- lighter/models/accounts.py +106 -0
- lighter/models/api_key.py +98 -0
- lighter/models/block.py +124 -0
- lighter/models/blocks.py +106 -0
- lighter/models/bridge_supported_network.py +96 -0
- lighter/models/candlestick.py +106 -0
- lighter/models/candlesticks.py +106 -0
- lighter/models/contract_address.py +94 -0
- lighter/models/current_height.py +96 -0
- lighter/models/cursor.py +92 -0
- lighter/models/deposit_history.py +106 -0
- lighter/models/deposit_history_item.py +105 -0
- lighter/models/detailed_account.py +152 -0
- lighter/models/detailed_accounts.py +106 -0
- lighter/models/detailed_candlestick.py +108 -0
- lighter/models/enriched_tx.py +129 -0
- lighter/models/exchange_stats.py +110 -0
- lighter/models/fee_bucket.py +96 -0
- lighter/models/funding.py +98 -0
- lighter/models/fundings.py +106 -0
- lighter/models/is_whitelisted.py +98 -0
- lighter/models/l1_provider_info.py +98 -0
- lighter/models/layer2_basic_info.py +100 -0
- lighter/models/liquidation.py +100 -0
- lighter/models/market_info.py +116 -0
- lighter/models/next_nonce.py +96 -0
- lighter/models/order.py +159 -0
- lighter/models/order_book.py +119 -0
- lighter/models/order_book_depth.py +115 -0
- lighter/models/order_book_detail.py +151 -0
- lighter/models/order_book_details.py +104 -0
- lighter/models/order_book_orders.py +117 -0
- lighter/models/order_book_stats.py +102 -0
- lighter/models/order_books.py +104 -0
- lighter/models/orders.py +106 -0
- lighter/models/pn_l_entry.py +94 -0
- lighter/models/position_funding.py +111 -0
- lighter/models/price_level.py +94 -0
- lighter/models/public_pool.py +128 -0
- lighter/models/public_pool_info.py +100 -0
- lighter/models/public_pool_share.py +96 -0
- lighter/models/public_pools.py +106 -0
- lighter/models/req_get_account.py +101 -0
- lighter/models/req_get_account_active_orders.py +96 -0
- lighter/models/req_get_account_api_keys.py +94 -0
- lighter/models/req_get_account_by_l1_address.py +92 -0
- lighter/models/req_get_account_inactive_orders.py +103 -0
- lighter/models/req_get_account_orders.py +99 -0
- lighter/models/req_get_account_pending_txs.py +106 -0
- lighter/models/req_get_account_pn_l.py +118 -0
- lighter/models/req_get_account_txs.py +111 -0
- lighter/models/req_get_block.py +101 -0
- lighter/models/req_get_block_txs.py +101 -0
- lighter/models/req_get_by_account.py +101 -0
- lighter/models/req_get_candlesticks.py +109 -0
- lighter/models/req_get_deposit_history.py +106 -0
- lighter/models/req_get_fee_bucket.py +92 -0
- lighter/models/req_get_fundings.py +107 -0
- lighter/models/req_get_l1_tx.py +92 -0
- lighter/models/req_get_latest_deposit.py +92 -0
- lighter/models/req_get_next_nonce.py +94 -0
- lighter/models/req_get_order_book_details.py +92 -0
- lighter/models/req_get_order_book_orders.py +95 -0
- lighter/models/req_get_order_books.py +92 -0
- lighter/models/req_get_public_pools.py +109 -0
- lighter/models/req_get_range_with_cursor.py +95 -0
- lighter/models/req_get_range_with_index.py +95 -0
- lighter/models/req_get_range_with_index_sortable.py +107 -0
- lighter/models/req_get_recent_trades.py +95 -0
- lighter/models/req_get_trades.py +126 -0
- lighter/models/req_get_tx.py +101 -0
- lighter/models/req_get_withdraw_history.py +106 -0
- lighter/models/req_is_whitelisted.py +92 -0
- lighter/models/result_code.py +94 -0
- lighter/models/simple_order.py +102 -0
- lighter/models/status.py +94 -0
- lighter/models/sub_accounts.py +106 -0
- lighter/models/ticker.py +103 -0
- lighter/models/trade.py +125 -0
- lighter/models/trades.py +106 -0
- lighter/models/tx.py +121 -0
- lighter/models/tx_hash.py +96 -0
- lighter/models/tx_hashes.py +96 -0
- lighter/models/txs.py +104 -0
- lighter/models/validator_info.py +94 -0
- lighter/models/withdraw_history.py +110 -0
- lighter/models/withdraw_history_cursor.py +94 -0
- lighter/models/withdraw_history_item.py +114 -0
- lighter/models/zk_lighter_info.py +92 -0
- lighter/py.typed +0 -0
- lighter/rest.py +215 -0
- lighter/signer_client.py +440 -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 +160 -0
- lighter_sdk-0.1.0.dist-info/LICENSE +201 -0
- lighter_sdk-0.1.0.dist-info/METADATA +26 -0
- lighter_sdk-0.1.0.dist-info/RECORD +125 -0
- lighter_sdk-0.1.0.dist-info/WHEEL +5 -0
- lighter_sdk-0.1.0.dist-info/top_level.txt +1 -0
lighter/__init__.py
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# flake8: noqa
|
4
|
+
|
5
|
+
"""
|
6
|
+
|
7
|
+
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
9
|
+
|
10
|
+
The version of the OpenAPI document:
|
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.block_api import BlockApi
|
22
|
+
from lighter.api.candlestick_api import CandlestickApi
|
23
|
+
from lighter.api.info_api import InfoApi
|
24
|
+
from lighter.api.order_api import OrderApi
|
25
|
+
from lighter.api.root_api import RootApi
|
26
|
+
from lighter.api.transaction_api import TransactionApi
|
27
|
+
|
28
|
+
# import ApiClient
|
29
|
+
from lighter.api_response import ApiResponse
|
30
|
+
from lighter.api_client import ApiClient
|
31
|
+
from lighter.configuration import Configuration
|
32
|
+
from lighter.exceptions import OpenApiException
|
33
|
+
from lighter.exceptions import ApiTypeError
|
34
|
+
from lighter.exceptions import ApiValueError
|
35
|
+
from lighter.exceptions import ApiKeyError
|
36
|
+
from lighter.exceptions import ApiAttributeError
|
37
|
+
from lighter.exceptions import ApiException
|
38
|
+
|
39
|
+
# import models into sdk package
|
40
|
+
from lighter.models.account import Account
|
41
|
+
from lighter.models.account_api_keys import AccountApiKeys
|
42
|
+
from lighter.models.account_market_stats import AccountMarketStats
|
43
|
+
from lighter.models.account_metadata import AccountMetadata
|
44
|
+
from lighter.models.account_pn_l import AccountPnL
|
45
|
+
from lighter.models.account_position import AccountPosition
|
46
|
+
from lighter.models.account_stats import AccountStats
|
47
|
+
from lighter.models.accounts import Accounts
|
48
|
+
from lighter.models.api_key import ApiKey
|
49
|
+
from lighter.models.block import Block
|
50
|
+
from lighter.models.blocks import Blocks
|
51
|
+
from lighter.models.bridge_supported_network import BridgeSupportedNetwork
|
52
|
+
from lighter.models.candlestick import Candlestick
|
53
|
+
from lighter.models.candlesticks import Candlesticks
|
54
|
+
from lighter.models.contract_address import ContractAddress
|
55
|
+
from lighter.models.current_height import CurrentHeight
|
56
|
+
from lighter.models.cursor import Cursor
|
57
|
+
from lighter.models.deposit_history import DepositHistory
|
58
|
+
from lighter.models.deposit_history_item import DepositHistoryItem
|
59
|
+
from lighter.models.detailed_account import DetailedAccount
|
60
|
+
from lighter.models.detailed_accounts import DetailedAccounts
|
61
|
+
from lighter.models.detailed_candlestick import DetailedCandlestick
|
62
|
+
from lighter.models.enriched_tx import EnrichedTx
|
63
|
+
from lighter.models.exchange_stats import ExchangeStats
|
64
|
+
from lighter.models.fee_bucket import FeeBucket
|
65
|
+
from lighter.models.funding import Funding
|
66
|
+
from lighter.models.fundings import Fundings
|
67
|
+
from lighter.models.is_whitelisted import IsWhitelisted
|
68
|
+
from lighter.models.l1_provider_info import L1ProviderInfo
|
69
|
+
from lighter.models.layer2_basic_info import Layer2BasicInfo
|
70
|
+
from lighter.models.liquidation import Liquidation
|
71
|
+
from lighter.models.market_info import MarketInfo
|
72
|
+
from lighter.models.next_nonce import NextNonce
|
73
|
+
from lighter.models.order import Order
|
74
|
+
from lighter.models.order_book import OrderBook
|
75
|
+
from lighter.models.order_book_depth import OrderBookDepth
|
76
|
+
from lighter.models.order_book_detail import OrderBookDetail
|
77
|
+
from lighter.models.order_book_details import OrderBookDetails
|
78
|
+
from lighter.models.order_book_orders import OrderBookOrders
|
79
|
+
from lighter.models.order_book_stats import OrderBookStats
|
80
|
+
from lighter.models.order_books import OrderBooks
|
81
|
+
from lighter.models.orders import Orders
|
82
|
+
from lighter.models.pn_l_entry import PnLEntry
|
83
|
+
from lighter.models.position_funding import PositionFunding
|
84
|
+
from lighter.models.price_level import PriceLevel
|
85
|
+
from lighter.models.public_pool import PublicPool
|
86
|
+
from lighter.models.public_pool_info import PublicPoolInfo
|
87
|
+
from lighter.models.public_pool_share import PublicPoolShare
|
88
|
+
from lighter.models.public_pools import PublicPools
|
89
|
+
from lighter.models.req_get_account import ReqGetAccount
|
90
|
+
from lighter.models.req_get_account_active_orders import ReqGetAccountActiveOrders
|
91
|
+
from lighter.models.req_get_account_api_keys import ReqGetAccountApiKeys
|
92
|
+
from lighter.models.req_get_account_by_l1_address import ReqGetAccountByL1Address
|
93
|
+
from lighter.models.req_get_account_inactive_orders import ReqGetAccountInactiveOrders
|
94
|
+
from lighter.models.req_get_account_orders import ReqGetAccountOrders
|
95
|
+
from lighter.models.req_get_account_pending_txs import ReqGetAccountPendingTxs
|
96
|
+
from lighter.models.req_get_account_pn_l import ReqGetAccountPnL
|
97
|
+
from lighter.models.req_get_account_txs import ReqGetAccountTxs
|
98
|
+
from lighter.models.req_get_block import ReqGetBlock
|
99
|
+
from lighter.models.req_get_block_txs import ReqGetBlockTxs
|
100
|
+
from lighter.models.req_get_by_account import ReqGetByAccount
|
101
|
+
from lighter.models.req_get_candlesticks import ReqGetCandlesticks
|
102
|
+
from lighter.models.req_get_deposit_history import ReqGetDepositHistory
|
103
|
+
from lighter.models.req_get_fee_bucket import ReqGetFeeBucket
|
104
|
+
from lighter.models.req_get_fundings import ReqGetFundings
|
105
|
+
from lighter.models.req_get_l1_tx import ReqGetL1Tx
|
106
|
+
from lighter.models.req_get_latest_deposit import ReqGetLatestDeposit
|
107
|
+
from lighter.models.req_get_next_nonce import ReqGetNextNonce
|
108
|
+
from lighter.models.req_get_order_book_details import ReqGetOrderBookDetails
|
109
|
+
from lighter.models.req_get_order_book_orders import ReqGetOrderBookOrders
|
110
|
+
from lighter.models.req_get_order_books import ReqGetOrderBooks
|
111
|
+
from lighter.models.req_get_public_pools import ReqGetPublicPools
|
112
|
+
from lighter.models.req_get_range_with_cursor import ReqGetRangeWithCursor
|
113
|
+
from lighter.models.req_get_range_with_index import ReqGetRangeWithIndex
|
114
|
+
from lighter.models.req_get_range_with_index_sortable import (
|
115
|
+
ReqGetRangeWithIndexSortable,
|
116
|
+
)
|
117
|
+
from lighter.models.req_get_recent_trades import ReqGetRecentTrades
|
118
|
+
from lighter.models.req_get_trades import ReqGetTrades
|
119
|
+
from lighter.models.req_get_tx import ReqGetTx
|
120
|
+
from lighter.models.req_get_withdraw_history import ReqGetWithdrawHistory
|
121
|
+
from lighter.models.req_is_whitelisted import ReqIsWhitelisted
|
122
|
+
from lighter.models.result_code import ResultCode
|
123
|
+
from lighter.models.simple_order import SimpleOrder
|
124
|
+
from lighter.models.status import Status
|
125
|
+
from lighter.models.sub_accounts import SubAccounts
|
126
|
+
from lighter.models.ticker import Ticker
|
127
|
+
from lighter.models.trade import Trade
|
128
|
+
from lighter.models.trades import Trades
|
129
|
+
from lighter.models.tx import Tx
|
130
|
+
from lighter.models.tx_hash import TxHash
|
131
|
+
from lighter.models.tx_hashes import TxHashes
|
132
|
+
from lighter.models.txs import Txs
|
133
|
+
from lighter.models.validator_info import ValidatorInfo
|
134
|
+
from lighter.models.withdraw_history import WithdrawHistory
|
135
|
+
from lighter.models.withdraw_history_cursor import WithdrawHistoryCursor
|
136
|
+
from lighter.models.withdraw_history_item import WithdrawHistoryItem
|
137
|
+
from lighter.models.zk_lighter_info import ZkLighterInfo
|
138
|
+
|
139
|
+
from lighter.ws_client import WsClient
|
140
|
+
from lighter.signer_client import SignerClient
|
lighter/api/__init__.py
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# flake8: noqa
|
2
|
+
|
3
|
+
# import apis into api package
|
4
|
+
from lighter.api.account_api import AccountApi
|
5
|
+
from lighter.api.block_api import BlockApi
|
6
|
+
from lighter.api.candlestick_api import CandlestickApi
|
7
|
+
from lighter.api.info_api import InfoApi
|
8
|
+
from lighter.api.order_api import OrderApi
|
9
|
+
from lighter.api.root_api import RootApi
|
10
|
+
from lighter.api.transaction_api import TransactionApi
|
11
|
+
|