From 33436cc7b0c515f287e999b5db453a8e46b7b4ef Mon Sep 17 00:00:00 2001 From: abel Date: Wed, 20 Dec 2023 17:23:50 -0300 Subject: [PATCH] (feat) Added logic to provide access to the new `AccountPortfolioBalances` and `PositionsV2` endpoints provided by Indexer --- Makefile | 4 +- .../derivative_exchange_rpc/7_Positions.py | 2 +- .../portfolio_rpc/1_AccountPortfolio.py | 2 +- pyinjective/async_client.py | 18 +- .../grpc/indexer_grpc_derivative_api.py | 24 ++ .../grpc/indexer_grpc_portfolio_api.py | 6 + .../proto/cosmos/ics23/v1/proofs_pb2.py | 8 +- .../exchange/injective_accounts_rpc_pb2.py | 92 +++---- .../exchange/injective_campaign_rpc_pb2.py | 18 +- .../injective_derivative_exchange_rpc_pb2.py | 136 +++++----- ...ective_derivative_exchange_rpc_pb2_grpc.py | 35 +++ .../exchange/injective_portfolio_rpc_pb2.py | 20 +- .../injective_portfolio_rpc_pb2_grpc.py | 34 +++ .../proto/injective/wasmx/v1/events_pb2.py | 34 --- .../injective/wasmx/v1/events_pb2_grpc.py | 4 - .../proto/injective/wasmx/v1/genesis_pb2.py | 35 --- .../injective/wasmx/v1/genesis_pb2_grpc.py | 4 - .../proto/injective/wasmx/v1/proposal_pb2.py | 56 ----- .../injective/wasmx/v1/proposal_pb2_grpc.py | 4 - .../proto/injective/wasmx/v1/query_pb2.py | 51 ---- .../injective/wasmx/v1/query_pb2_grpc.py | 138 ----------- .../proto/injective/wasmx/v1/tx_pb2.py | 77 ------ .../proto/injective/wasmx/v1/tx_pb2_grpc.py | 234 ------------------ .../proto/injective/wasmx/v1/wasmx_pb2.py | 41 --- .../injective/wasmx/v1/wasmx_pb2_grpc.py | 4 - .../configurable_derivative_query_servicer.py | 4 + .../configurable_portfolio_query_servicer.py | 6 + .../grpc/test_indexer_grpc_account_api.py | 4 + .../grpc/test_indexer_grpc_derivative_api.py | 72 ++++++ .../grpc/test_indexer_grpc_portfolio_api.py | 62 +++++ .../test_async_client_deprecation_warnings.py | 8 +- 31 files changed, 411 insertions(+), 826 deletions(-) delete mode 100644 pyinjective/proto/injective/wasmx/v1/events_pb2.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/events_pb2_grpc.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/genesis_pb2.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/genesis_pb2_grpc.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/proposal_pb2.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/proposal_pb2_grpc.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/query_pb2.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/query_pb2_grpc.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/tx_pb2.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/tx_pb2_grpc.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/wasmx_pb2.py delete mode 100644 pyinjective/proto/injective/wasmx/v1/wasmx_pb2_grpc.py diff --git a/Makefile b/Makefile index 06334018..6f1690a6 100644 --- a/Makefile +++ b/Makefile @@ -28,10 +28,10 @@ clean-all: $(call clean_repos) clone-injective-core: - git clone https://github.com/InjectiveLabs/injective-core.git -b v1.12.6-testnet --depth 1 --single-branch + git clone https://github.com/InjectiveLabs/injective-core.git -b v1.12.8-testnet --depth 1 --single-branch clone-injective-indexer: - git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.12.59 --depth 1 --single-branch + git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.12.67 --depth 1 --single-branch clone-cometbft: git clone https://github.com/cometbft/cometbft.git -b v0.37.2 --depth 1 --single-branch diff --git a/examples/exchange_client/derivative_exchange_rpc/7_Positions.py b/examples/exchange_client/derivative_exchange_rpc/7_Positions.py index e0ffb8b1..06be45a7 100644 --- a/examples/exchange_client/derivative_exchange_rpc/7_Positions.py +++ b/examples/exchange_client/derivative_exchange_rpc/7_Positions.py @@ -19,7 +19,7 @@ async def main() -> None: skip = 4 limit = 4 pagination = PaginationOption(skip=skip, limit=limit) - positions = await client.fetch_derivative_positions( + positions = await client.fetch_derivative_positions_v2( market_ids=market_ids, subaccount_id=subaccount_id, direction=direction, diff --git a/examples/exchange_client/portfolio_rpc/1_AccountPortfolio.py b/examples/exchange_client/portfolio_rpc/1_AccountPortfolio.py index 232f8582..ea6ef020 100644 --- a/examples/exchange_client/portfolio_rpc/1_AccountPortfolio.py +++ b/examples/exchange_client/portfolio_rpc/1_AccountPortfolio.py @@ -9,7 +9,7 @@ async def main() -> None: network = Network.testnet() client = AsyncClient(network) account_address = "inj1clw20s2uxeyxtam6f7m84vgae92s9eh7vygagt" - portfolio = await client.fetch_account_portfolio(account_address=account_address) + portfolio = await client.fetch_account_portfolio_balances(account_address=account_address) print(portfolio) diff --git a/pyinjective/async_client.py b/pyinjective/async_client.py index 75c3d159..3bfd30d1 100644 --- a/pyinjective/async_client.py +++ b/pyinjective/async_client.py @@ -2105,9 +2105,9 @@ async def listen_derivative_trades_updates( async def get_derivative_positions(self, **kwargs): """ - This method is deprecated and will be removed soon. Please use `fetch_derivative_positions` instead + This method is deprecated and will be removed soon. Please use `fetch_derivative_positions_v2` instead """ - warn("This method is deprecated. Use fetch_derivative_positions instead", DeprecationWarning, stacklevel=2) + warn("This method is deprecated. Use fetch_derivative_positions_v2 instead", DeprecationWarning, stacklevel=2) req = derivative_exchange_rpc_pb.PositionsRequest( market_id=kwargs.get("market_id"), market_ids=kwargs.get("market_ids"), @@ -2119,7 +2119,7 @@ async def get_derivative_positions(self, **kwargs): ) return await self.stubDerivativeExchange.Positions(req) - async def fetch_derivative_positions( + async def fetch_derivative_positions_v2( self, market_ids: Optional[List[str]] = None, subaccount_id: Optional[str] = None, @@ -2127,7 +2127,7 @@ async def fetch_derivative_positions( subaccount_total_positions: Optional[bool] = None, pagination: Optional[PaginationOption] = None, ) -> Dict[str, Any]: - return await self.exchange_derivative_api.fetch_positions( + return await self.exchange_derivative_api.fetch_positions_v2( market_ids=market_ids, subaccount_id=subaccount_id, direction=direction, @@ -2344,14 +2344,16 @@ async def fetch_binary_options_market(self, market_id: str) -> Dict[str, Any]: async def get_account_portfolio(self, account_address: str): """ - This method is deprecated and will be removed soon. Please use `fetch_account_portfolio` instead + This method is deprecated and will be removed soon. Please use `fetch_account_portfolio_balances` instead """ - warn("This method is deprecated. Use fetch_account_portfolio instead", DeprecationWarning, stacklevel=2) + warn( + "This method is deprecated. Use fetch_account_portfolio_balances instead", DeprecationWarning, stacklevel=2 + ) req = portfolio_rpc_pb.AccountPortfolioRequest(account_address=account_address) return await self.stubPortfolio.AccountPortfolio(req) - async def fetch_account_portfolio(self, account_address: str) -> Dict[str, Any]: - return await self.exchange_portfolio_api.fetch_account_portfolio(account_address=account_address) + async def fetch_account_portfolio_balances(self, account_address: str) -> Dict[str, Any]: + return await self.exchange_portfolio_api.fetch_account_portfolio_balances(account_address=account_address) async def stream_account_portfolio(self, account_address: str, **kwargs): """ diff --git a/pyinjective/client/indexer/grpc/indexer_grpc_derivative_api.py b/pyinjective/client/indexer/grpc/indexer_grpc_derivative_api.py index 2b69608e..7f28c7ac 100644 --- a/pyinjective/client/indexer/grpc/indexer_grpc_derivative_api.py +++ b/pyinjective/client/indexer/grpc/indexer_grpc_derivative_api.py @@ -127,6 +127,30 @@ async def fetch_positions( return response + async def fetch_positions_v2( + self, + market_ids: Optional[List[str]] = None, + subaccount_id: Optional[str] = None, + direction: Optional[str] = None, + subaccount_total_positions: Optional[bool] = None, + pagination: Optional[PaginationOption] = None, + ) -> Dict[str, Any]: + pagination = pagination or PaginationOption() + request = exchange_derivative_pb.PositionsV2Request( + market_ids=market_ids, + subaccount_id=subaccount_id, + skip=pagination.skip, + limit=pagination.limit, + start_time=pagination.start_time, + end_time=pagination.end_time, + direction=direction, + subaccount_total_positions=subaccount_total_positions, + ) + + response = await self._execute_call(call=self._stub.PositionsV2, request=request) + + return response + async def fetch_liquidable_positions( self, market_id: Optional[str] = None, diff --git a/pyinjective/client/indexer/grpc/indexer_grpc_portfolio_api.py b/pyinjective/client/indexer/grpc/indexer_grpc_portfolio_api.py index a8fd319c..510f7054 100644 --- a/pyinjective/client/indexer/grpc/indexer_grpc_portfolio_api.py +++ b/pyinjective/client/indexer/grpc/indexer_grpc_portfolio_api.py @@ -20,5 +20,11 @@ async def fetch_account_portfolio(self, account_address: str) -> Dict[str, Any]: return response + async def fetch_account_portfolio_balances(self, account_address: str) -> Dict[str, Any]: + request = exchange_portfolio_pb.AccountPortfolioBalancesRequest(account_address=account_address) + response = await self._execute_call(call=self._stub.AccountPortfolioBalances, request=request) + + return response + async def _execute_call(self, call: Callable, request) -> Dict[str, Any]: return await self._assistant.execute_call(call=call, request=request) diff --git a/pyinjective/proto/cosmos/ics23/v1/proofs_pb2.py b/pyinjective/proto/cosmos/ics23/v1/proofs_pb2.py index 25677bb0..3b17a4a9 100644 --- a/pyinjective/proto/cosmos/ics23/v1/proofs_pb2.py +++ b/pyinjective/proto/cosmos/ics23/v1/proofs_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/ics23/v1/proofs.proto\x12\x0f\x63osmos.ics23.v1\"{\n\x0e\x45xistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12%\n\x04leaf\x18\x03 \x01(\x0b\x32\x17.cosmos.ics23.v1.LeafOp\x12&\n\x04path\x18\x04 \x03(\x0b\x32\x18.cosmos.ics23.v1.InnerOp\"\x7f\n\x11NonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12-\n\x04left\x18\x02 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProof\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProof\"\xef\x01\n\x0f\x43ommitmentProof\x12\x30\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProofH\x00\x12\x36\n\x08nonexist\x18\x02 \x01(\x0b\x32\".cosmos.ics23.v1.NonExistenceProofH\x00\x12,\n\x05\x62\x61tch\x18\x03 \x01(\x0b\x32\x1b.cosmos.ics23.v1.BatchProofH\x00\x12;\n\ncompressed\x18\x04 \x01(\x0b\x32%.cosmos.ics23.v1.CompressedBatchProofH\x00\x42\x07\n\x05proof\"\xc8\x01\n\x06LeafOp\x12%\n\x04hash\x18\x01 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12,\n\x0bprehash_key\x18\x02 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12.\n\rprehash_value\x18\x03 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12)\n\x06length\x18\x04 \x01(\x0e\x32\x19.cosmos.ics23.v1.LengthOp\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\"P\n\x07InnerOp\x12%\n\x04hash\x18\x01 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12\x0e\n\x06prefix\x18\x02 \x01(\x0c\x12\x0e\n\x06suffix\x18\x03 \x01(\x0c\"\xb4\x01\n\tProofSpec\x12*\n\tleaf_spec\x18\x01 \x01(\x0b\x32\x17.cosmos.ics23.v1.LeafOp\x12.\n\ninner_spec\x18\x02 \x01(\x0b\x32\x1a.cosmos.ics23.v1.InnerSpec\x12\x11\n\tmax_depth\x18\x03 \x01(\x05\x12\x11\n\tmin_depth\x18\x04 \x01(\x05\x12%\n\x1dprehash_key_before_comparison\x18\x05 \x01(\x08\"\xa6\x01\n\tInnerSpec\x12\x13\n\x0b\x63hild_order\x18\x01 \x03(\x05\x12\x12\n\nchild_size\x18\x02 \x01(\x05\x12\x19\n\x11min_prefix_length\x18\x03 \x01(\x05\x12\x19\n\x11max_prefix_length\x18\x04 \x01(\x05\x12\x13\n\x0b\x65mpty_child\x18\x05 \x01(\x0c\x12%\n\x04hash\x18\x06 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\":\n\nBatchProof\x12,\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x1b.cosmos.ics23.v1.BatchEntry\"\x7f\n\nBatchEntry\x12\x30\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProofH\x00\x12\x36\n\x08nonexist\x18\x02 \x01(\x0b\x32\".cosmos.ics23.v1.NonExistenceProofH\x00\x42\x07\n\x05proof\"\x7f\n\x14\x43ompressedBatchProof\x12\x36\n\x07\x65ntries\x18\x01 \x03(\x0b\x32%.cosmos.ics23.v1.CompressedBatchEntry\x12/\n\rlookup_inners\x18\x02 \x03(\x0b\x32\x18.cosmos.ics23.v1.InnerOp\"\x9d\x01\n\x14\x43ompressedBatchEntry\x12:\n\x05\x65xist\x18\x01 \x01(\x0b\x32).cosmos.ics23.v1.CompressedExistenceProofH\x00\x12@\n\x08nonexist\x18\x02 \x01(\x0b\x32,.cosmos.ics23.v1.CompressedNonExistenceProofH\x00\x42\x07\n\x05proof\"k\n\x18\x43ompressedExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12%\n\x04leaf\x18\x03 \x01(\x0b\x32\x17.cosmos.ics23.v1.LeafOp\x12\x0c\n\x04path\x18\x04 \x03(\x05\"\x9d\x01\n\x1b\x43ompressedNonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x37\n\x04left\x18\x02 \x01(\x0b\x32).cosmos.ics23.v1.CompressedExistenceProof\x12\x38\n\x05right\x18\x03 \x01(\x0b\x32).cosmos.ics23.v1.CompressedExistenceProof*\x93\x01\n\x06HashOp\x12\x0b\n\x07NO_HASH\x10\x00\x12\n\n\x06SHA256\x10\x01\x12\n\n\x06SHA512\x10\x02\x12\n\n\x06KECCAK\x10\x03\x12\r\n\tRIPEMD160\x10\x04\x12\x0b\n\x07\x42ITCOIN\x10\x05\x12\x0e\n\nSHA512_256\x10\x06\x12\x0f\n\x0b\x42LAKE2B_512\x10\x07\x12\x0f\n\x0b\x42LAKE2S_256\x10\x08\x12\n\n\x06\x42LAKE3\x10\t*\xab\x01\n\x08LengthOp\x12\r\n\tNO_PREFIX\x10\x00\x12\r\n\tVAR_PROTO\x10\x01\x12\x0b\n\x07VAR_RLP\x10\x02\x12\x0f\n\x0b\x46IXED32_BIG\x10\x03\x12\x12\n\x0e\x46IXED32_LITTLE\x10\x04\x12\x0f\n\x0b\x46IXED64_BIG\x10\x05\x12\x12\n\x0e\x46IXED64_LITTLE\x10\x06\x12\x14\n\x10REQUIRE_32_BYTES\x10\x07\x12\x14\n\x10REQUIRE_64_BYTES\x10\x08\x42\"Z github.com/cosmos/ics23/go;ics23b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63osmos/ics23/v1/proofs.proto\x12\x0f\x63osmos.ics23.v1\"{\n\x0e\x45xistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12%\n\x04leaf\x18\x03 \x01(\x0b\x32\x17.cosmos.ics23.v1.LeafOp\x12&\n\x04path\x18\x04 \x03(\x0b\x32\x18.cosmos.ics23.v1.InnerOp\"\x7f\n\x11NonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12-\n\x04left\x18\x02 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProof\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProof\"\xef\x01\n\x0f\x43ommitmentProof\x12\x30\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProofH\x00\x12\x36\n\x08nonexist\x18\x02 \x01(\x0b\x32\".cosmos.ics23.v1.NonExistenceProofH\x00\x12,\n\x05\x62\x61tch\x18\x03 \x01(\x0b\x32\x1b.cosmos.ics23.v1.BatchProofH\x00\x12;\n\ncompressed\x18\x04 \x01(\x0b\x32%.cosmos.ics23.v1.CompressedBatchProofH\x00\x42\x07\n\x05proof\"\xc8\x01\n\x06LeafOp\x12%\n\x04hash\x18\x01 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12,\n\x0bprehash_key\x18\x02 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12.\n\rprehash_value\x18\x03 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12)\n\x06length\x18\x04 \x01(\x0e\x32\x19.cosmos.ics23.v1.LengthOp\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\"P\n\x07InnerOp\x12%\n\x04hash\x18\x01 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\x12\x0e\n\x06prefix\x18\x02 \x01(\x0c\x12\x0e\n\x06suffix\x18\x03 \x01(\x0c\"\xb4\x01\n\tProofSpec\x12*\n\tleaf_spec\x18\x01 \x01(\x0b\x32\x17.cosmos.ics23.v1.LeafOp\x12.\n\ninner_spec\x18\x02 \x01(\x0b\x32\x1a.cosmos.ics23.v1.InnerSpec\x12\x11\n\tmax_depth\x18\x03 \x01(\x05\x12\x11\n\tmin_depth\x18\x04 \x01(\x05\x12%\n\x1dprehash_key_before_comparison\x18\x05 \x01(\x08\"\xa6\x01\n\tInnerSpec\x12\x13\n\x0b\x63hild_order\x18\x01 \x03(\x05\x12\x12\n\nchild_size\x18\x02 \x01(\x05\x12\x19\n\x11min_prefix_length\x18\x03 \x01(\x05\x12\x19\n\x11max_prefix_length\x18\x04 \x01(\x05\x12\x13\n\x0b\x65mpty_child\x18\x05 \x01(\x0c\x12%\n\x04hash\x18\x06 \x01(\x0e\x32\x17.cosmos.ics23.v1.HashOp\":\n\nBatchProof\x12,\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x1b.cosmos.ics23.v1.BatchEntry\"\x7f\n\nBatchEntry\x12\x30\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x1f.cosmos.ics23.v1.ExistenceProofH\x00\x12\x36\n\x08nonexist\x18\x02 \x01(\x0b\x32\".cosmos.ics23.v1.NonExistenceProofH\x00\x42\x07\n\x05proof\"\x7f\n\x14\x43ompressedBatchProof\x12\x36\n\x07\x65ntries\x18\x01 \x03(\x0b\x32%.cosmos.ics23.v1.CompressedBatchEntry\x12/\n\rlookup_inners\x18\x02 \x03(\x0b\x32\x18.cosmos.ics23.v1.InnerOp\"\x9d\x01\n\x14\x43ompressedBatchEntry\x12:\n\x05\x65xist\x18\x01 \x01(\x0b\x32).cosmos.ics23.v1.CompressedExistenceProofH\x00\x12@\n\x08nonexist\x18\x02 \x01(\x0b\x32,.cosmos.ics23.v1.CompressedNonExistenceProofH\x00\x42\x07\n\x05proof\"k\n\x18\x43ompressedExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12%\n\x04leaf\x18\x03 \x01(\x0b\x32\x17.cosmos.ics23.v1.LeafOp\x12\x0c\n\x04path\x18\x04 \x03(\x05\"\x9d\x01\n\x1b\x43ompressedNonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x37\n\x04left\x18\x02 \x01(\x0b\x32).cosmos.ics23.v1.CompressedExistenceProof\x12\x38\n\x05right\x18\x03 \x01(\x0b\x32).cosmos.ics23.v1.CompressedExistenceProof*\x96\x01\n\x06HashOp\x12\x0b\n\x07NO_HASH\x10\x00\x12\n\n\x06SHA256\x10\x01\x12\n\n\x06SHA512\x10\x02\x12\r\n\tKECCAK256\x10\x03\x12\r\n\tRIPEMD160\x10\x04\x12\x0b\n\x07\x42ITCOIN\x10\x05\x12\x0e\n\nSHA512_256\x10\x06\x12\x0f\n\x0b\x42LAKE2B_512\x10\x07\x12\x0f\n\x0b\x42LAKE2S_256\x10\x08\x12\n\n\x06\x42LAKE3\x10\t*\xab\x01\n\x08LengthOp\x12\r\n\tNO_PREFIX\x10\x00\x12\r\n\tVAR_PROTO\x10\x01\x12\x0b\n\x07VAR_RLP\x10\x02\x12\x0f\n\x0b\x46IXED32_BIG\x10\x03\x12\x12\n\x0e\x46IXED32_LITTLE\x10\x04\x12\x0f\n\x0b\x46IXED64_BIG\x10\x05\x12\x12\n\x0e\x46IXED64_LITTLE\x10\x06\x12\x14\n\x10REQUIRE_32_BYTES\x10\x07\x12\x14\n\x10REQUIRE_64_BYTES\x10\x08\x42\"Z github.com/cosmos/ics23/go;ics23b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -23,9 +23,9 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'Z github.com/cosmos/ics23/go;ics23' _globals['_HASHOP']._serialized_start=1930 - _globals['_HASHOP']._serialized_end=2077 - _globals['_LENGTHOP']._serialized_start=2080 - _globals['_LENGTHOP']._serialized_end=2251 + _globals['_HASHOP']._serialized_end=2080 + _globals['_LENGTHOP']._serialized_start=2083 + _globals['_LENGTHOP']._serialized_end=2254 _globals['_EXISTENCEPROOF']._serialized_start=49 _globals['_EXISTENCEPROOF']._serialized_end=172 _globals['_NONEXISTENCEPROOF']._serialized_start=174 diff --git a/pyinjective/proto/exchange/injective_accounts_rpc_pb2.py b/pyinjective/proto/exchange/injective_accounts_rpc_pb2.py index 2ec5ce74..c164a8dc 100644 --- a/pyinjective/proto/exchange/injective_accounts_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_accounts_rpc_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_accounts_rpc.proto\x12\x16injective_accounts_rpc\"+\n\x10PortfolioRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\"P\n\x11PortfolioResponse\x12;\n\tportfolio\x18\x01 \x01(\x0b\x32(.injective_accounts_rpc.AccountPortfolio\"\xb8\x01\n\x10\x41\x63\x63ountPortfolio\x12\x17\n\x0fportfolio_value\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\x12\x16\n\x0elocked_balance\x18\x03 \x01(\t\x12\x16\n\x0eunrealized_pnl\x18\x04 \x01(\t\x12@\n\x0bsubaccounts\x18\x05 \x03(\x0b\x32+.injective_accounts_rpc.SubaccountPortfolio\"w\n\x13SubaccountPortfolio\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\x12\x16\n\x0elocked_balance\x18\x03 \x01(\t\x12\x16\n\x0eunrealized_pnl\x18\x04 \x01(\t\"P\n\x12OrderStatesRequest\x12\x19\n\x11spot_order_hashes\x18\x01 \x03(\t\x12\x1f\n\x17\x64\x65rivative_order_hashes\x18\x02 \x03(\t\"\xa5\x01\n\x13OrderStatesResponse\x12\x43\n\x11spot_order_states\x18\x01 \x03(\x0b\x32(.injective_accounts_rpc.OrderStateRecord\x12I\n\x17\x64\x65rivative_order_states\x18\x02 \x03(\x0b\x32(.injective_accounts_rpc.OrderStateRecord\"\xe4\x01\n\x10OrderStateRecord\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x11\n\tmarket_id\x18\x03 \x01(\t\x12\x12\n\norder_type\x18\x04 \x01(\t\x12\x12\n\norder_side\x18\x05 \x01(\t\x12\r\n\x05state\x18\x06 \x01(\t\x12\x17\n\x0fquantity_filled\x18\x07 \x01(\t\x12\x1a\n\x12quantity_remaining\x18\x08 \x01(\t\x12\x12\n\ncreated_at\x18\t \x01(\x12\x12\x12\n\nupdated_at\x18\n \x01(\x12\"1\n\x16SubaccountsListRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\".\n\x17SubaccountsListResponse\x12\x13\n\x0bsubaccounts\x18\x01 \x03(\t\"F\n\x1dSubaccountBalancesListRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x0e\n\x06\x64\x65noms\x18\x02 \x03(\t\"]\n\x1eSubaccountBalancesListResponse\x12;\n\x08\x62\x61lances\x18\x01 \x03(\x0b\x32).injective_accounts_rpc.SubaccountBalance\"\x8e\x01\n\x11SubaccountBalance\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x03 \x01(\t\x12:\n\x07\x64\x65posit\x18\x04 \x01(\x0b\x32).injective_accounts_rpc.SubaccountDeposit\"E\n\x11SubaccountDeposit\x12\x15\n\rtotal_balance\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\"H\n SubaccountBalanceEndpointRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\"_\n!SubaccountBalanceEndpointResponse\x12:\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32).injective_accounts_rpc.SubaccountBalance\"G\n\x1eStreamSubaccountBalanceRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x0e\n\x06\x64\x65noms\x18\x02 \x03(\t\"p\n\x1fStreamSubaccountBalanceResponse\x12:\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32).injective_accounts_rpc.SubaccountBalance\x12\x11\n\ttimestamp\x18\x02 \x01(\x12\"\x87\x01\n\x18SubaccountHistoryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\x12\x16\n\x0etransfer_types\x18\x03 \x03(\t\x12\x0c\n\x04skip\x18\x04 \x01(\x04\x12\r\n\x05limit\x18\x05 \x01(\x11\x12\x10\n\x08\x65nd_time\x18\x06 \x01(\x12\"\x91\x01\n\x19SubaccountHistoryResponse\x12\x44\n\ttransfers\x18\x01 \x03(\x0b\x32\x31.injective_accounts_rpc.SubaccountBalanceTransfer\x12.\n\x06paging\x18\x02 \x01(\x0b\x32\x1e.injective_accounts_rpc.Paging\"\xeb\x01\n\x19SubaccountBalanceTransfer\x12\x15\n\rtransfer_type\x18\x01 \x01(\t\x12\x19\n\x11src_subaccount_id\x18\x02 \x01(\t\x12\x1b\n\x13src_account_address\x18\x03 \x01(\t\x12\x19\n\x11\x64st_subaccount_id\x18\x04 \x01(\t\x12\x1b\n\x13\x64st_account_address\x18\x05 \x01(\t\x12\x32\n\x06\x61mount\x18\x06 \x01(\x0b\x32\".injective_accounts_rpc.CosmosCoin\x12\x13\n\x0b\x65xecuted_at\x18\x07 \x01(\x12\"+\n\nCosmosCoin\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\"\\\n\x06Paging\x12\r\n\x05total\x18\x01 \x01(\x12\x12\x0c\n\x04\x66rom\x18\x02 \x01(\x11\x12\n\n\x02to\x18\x03 \x01(\x11\x12\x1b\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12\x12\x0c\n\x04next\x18\x05 \x03(\t\"b\n\x1dSubaccountOrderSummaryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x17\n\x0forder_direction\x18\x03 \x01(\t\"\\\n\x1eSubaccountOrderSummaryResponse\x12\x19\n\x11spot_orders_total\x18\x01 \x01(\x12\x12\x1f\n\x17\x64\x65rivative_orders_total\x18\x02 \x01(\x12\"8\n\x0eRewardsRequest\x12\r\n\x05\x65poch\x18\x01 \x01(\x12\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\t\"B\n\x0fRewardsResponse\x12/\n\x07rewards\x18\x01 \x03(\x0b\x32\x1e.injective_accounts_rpc.Reward\"h\n\x06Reward\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\x12-\n\x07rewards\x18\x02 \x03(\x0b\x32\x1c.injective_accounts_rpc.Coin\x12\x16\n\x0e\x64istributed_at\x18\x03 \x01(\x12\"%\n\x04\x43oin\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t2\xe0\x08\n\x14InjectiveAccountsRPC\x12`\n\tPortfolio\x12(.injective_accounts_rpc.PortfolioRequest\x1a).injective_accounts_rpc.PortfolioResponse\x12\x66\n\x0bOrderStates\x12*.injective_accounts_rpc.OrderStatesRequest\x1a+.injective_accounts_rpc.OrderStatesResponse\x12r\n\x0fSubaccountsList\x12..injective_accounts_rpc.SubaccountsListRequest\x1a/.injective_accounts_rpc.SubaccountsListResponse\x12\x87\x01\n\x16SubaccountBalancesList\x12\x35.injective_accounts_rpc.SubaccountBalancesListRequest\x1a\x36.injective_accounts_rpc.SubaccountBalancesListResponse\x12\x90\x01\n\x19SubaccountBalanceEndpoint\x12\x38.injective_accounts_rpc.SubaccountBalanceEndpointRequest\x1a\x39.injective_accounts_rpc.SubaccountBalanceEndpointResponse\x12\x8c\x01\n\x17StreamSubaccountBalance\x12\x36.injective_accounts_rpc.StreamSubaccountBalanceRequest\x1a\x37.injective_accounts_rpc.StreamSubaccountBalanceResponse0\x01\x12x\n\x11SubaccountHistory\x12\x30.injective_accounts_rpc.SubaccountHistoryRequest\x1a\x31.injective_accounts_rpc.SubaccountHistoryResponse\x12\x87\x01\n\x16SubaccountOrderSummary\x12\x35.injective_accounts_rpc.SubaccountOrderSummaryRequest\x1a\x36.injective_accounts_rpc.SubaccountOrderSummaryResponse\x12Z\n\x07Rewards\x12&.injective_accounts_rpc.RewardsRequest\x1a\'.injective_accounts_rpc.RewardsResponseB\x1bZ\x19/injective_accounts_rpcpbb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_accounts_rpc.proto\x12\x16injective_accounts_rpc\"+\n\x10PortfolioRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\"P\n\x11PortfolioResponse\x12;\n\tportfolio\x18\x01 \x01(\x0b\x32(.injective_accounts_rpc.AccountPortfolio\"\xb8\x01\n\x10\x41\x63\x63ountPortfolio\x12\x17\n\x0fportfolio_value\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\x12\x16\n\x0elocked_balance\x18\x03 \x01(\t\x12\x16\n\x0eunrealized_pnl\x18\x04 \x01(\t\x12@\n\x0bsubaccounts\x18\x05 \x03(\x0b\x32+.injective_accounts_rpc.SubaccountPortfolio\"w\n\x13SubaccountPortfolio\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\x12\x16\n\x0elocked_balance\x18\x03 \x01(\t\x12\x16\n\x0eunrealized_pnl\x18\x04 \x01(\t\"P\n\x12OrderStatesRequest\x12\x19\n\x11spot_order_hashes\x18\x01 \x03(\t\x12\x1f\n\x17\x64\x65rivative_order_hashes\x18\x02 \x03(\t\"\xa5\x01\n\x13OrderStatesResponse\x12\x43\n\x11spot_order_states\x18\x01 \x03(\x0b\x32(.injective_accounts_rpc.OrderStateRecord\x12I\n\x17\x64\x65rivative_order_states\x18\x02 \x03(\x0b\x32(.injective_accounts_rpc.OrderStateRecord\"\x83\x02\n\x10OrderStateRecord\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x11\n\tmarket_id\x18\x03 \x01(\t\x12\x12\n\norder_type\x18\x04 \x01(\t\x12\x12\n\norder_side\x18\x05 \x01(\t\x12\r\n\x05state\x18\x06 \x01(\t\x12\x17\n\x0fquantity_filled\x18\x07 \x01(\t\x12\x1a\n\x12quantity_remaining\x18\x08 \x01(\t\x12\x12\n\ncreated_at\x18\t \x01(\x12\x12\x12\n\nupdated_at\x18\n \x01(\x12\x12\r\n\x05price\x18\x0b \x01(\t\x12\x0e\n\x06margin\x18\x0c \x01(\t\"1\n\x16SubaccountsListRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\".\n\x17SubaccountsListResponse\x12\x13\n\x0bsubaccounts\x18\x01 \x03(\t\"F\n\x1dSubaccountBalancesListRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x0e\n\x06\x64\x65noms\x18\x02 \x03(\t\"]\n\x1eSubaccountBalancesListResponse\x12;\n\x08\x62\x61lances\x18\x01 \x03(\x0b\x32).injective_accounts_rpc.SubaccountBalance\"\x8e\x01\n\x11SubaccountBalance\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x03 \x01(\t\x12:\n\x07\x64\x65posit\x18\x04 \x01(\x0b\x32).injective_accounts_rpc.SubaccountDeposit\"E\n\x11SubaccountDeposit\x12\x15\n\rtotal_balance\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\"H\n SubaccountBalanceEndpointRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\"_\n!SubaccountBalanceEndpointResponse\x12:\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32).injective_accounts_rpc.SubaccountBalance\"G\n\x1eStreamSubaccountBalanceRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x0e\n\x06\x64\x65noms\x18\x02 \x03(\t\"p\n\x1fStreamSubaccountBalanceResponse\x12:\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32).injective_accounts_rpc.SubaccountBalance\x12\x11\n\ttimestamp\x18\x02 \x01(\x12\"\x87\x01\n\x18SubaccountHistoryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\x12\x16\n\x0etransfer_types\x18\x03 \x03(\t\x12\x0c\n\x04skip\x18\x04 \x01(\x04\x12\r\n\x05limit\x18\x05 \x01(\x11\x12\x10\n\x08\x65nd_time\x18\x06 \x01(\x12\"\x91\x01\n\x19SubaccountHistoryResponse\x12\x44\n\ttransfers\x18\x01 \x03(\x0b\x32\x31.injective_accounts_rpc.SubaccountBalanceTransfer\x12.\n\x06paging\x18\x02 \x01(\x0b\x32\x1e.injective_accounts_rpc.Paging\"\xeb\x01\n\x19SubaccountBalanceTransfer\x12\x15\n\rtransfer_type\x18\x01 \x01(\t\x12\x19\n\x11src_subaccount_id\x18\x02 \x01(\t\x12\x1b\n\x13src_account_address\x18\x03 \x01(\t\x12\x19\n\x11\x64st_subaccount_id\x18\x04 \x01(\t\x12\x1b\n\x13\x64st_account_address\x18\x05 \x01(\t\x12\x32\n\x06\x61mount\x18\x06 \x01(\x0b\x32\".injective_accounts_rpc.CosmosCoin\x12\x13\n\x0b\x65xecuted_at\x18\x07 \x01(\x12\"+\n\nCosmosCoin\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\"\\\n\x06Paging\x12\r\n\x05total\x18\x01 \x01(\x12\x12\x0c\n\x04\x66rom\x18\x02 \x01(\x11\x12\n\n\x02to\x18\x03 \x01(\x11\x12\x1b\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12\x12\x0c\n\x04next\x18\x05 \x03(\t\"b\n\x1dSubaccountOrderSummaryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x17\n\x0forder_direction\x18\x03 \x01(\t\"\\\n\x1eSubaccountOrderSummaryResponse\x12\x19\n\x11spot_orders_total\x18\x01 \x01(\x12\x12\x1f\n\x17\x64\x65rivative_orders_total\x18\x02 \x01(\x12\"8\n\x0eRewardsRequest\x12\r\n\x05\x65poch\x18\x01 \x01(\x12\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\t\"B\n\x0fRewardsResponse\x12/\n\x07rewards\x18\x01 \x03(\x0b\x32\x1e.injective_accounts_rpc.Reward\"h\n\x06Reward\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\x12-\n\x07rewards\x18\x02 \x03(\x0b\x32\x1c.injective_accounts_rpc.Coin\x12\x16\n\x0e\x64istributed_at\x18\x03 \x01(\x12\"%\n\x04\x43oin\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t2\xe0\x08\n\x14InjectiveAccountsRPC\x12`\n\tPortfolio\x12(.injective_accounts_rpc.PortfolioRequest\x1a).injective_accounts_rpc.PortfolioResponse\x12\x66\n\x0bOrderStates\x12*.injective_accounts_rpc.OrderStatesRequest\x1a+.injective_accounts_rpc.OrderStatesResponse\x12r\n\x0fSubaccountsList\x12..injective_accounts_rpc.SubaccountsListRequest\x1a/.injective_accounts_rpc.SubaccountsListResponse\x12\x87\x01\n\x16SubaccountBalancesList\x12\x35.injective_accounts_rpc.SubaccountBalancesListRequest\x1a\x36.injective_accounts_rpc.SubaccountBalancesListResponse\x12\x90\x01\n\x19SubaccountBalanceEndpoint\x12\x38.injective_accounts_rpc.SubaccountBalanceEndpointRequest\x1a\x39.injective_accounts_rpc.SubaccountBalanceEndpointResponse\x12\x8c\x01\n\x17StreamSubaccountBalance\x12\x36.injective_accounts_rpc.StreamSubaccountBalanceRequest\x1a\x37.injective_accounts_rpc.StreamSubaccountBalanceResponse0\x01\x12x\n\x11SubaccountHistory\x12\x30.injective_accounts_rpc.SubaccountHistoryRequest\x1a\x31.injective_accounts_rpc.SubaccountHistoryResponse\x12\x87\x01\n\x16SubaccountOrderSummary\x12\x35.injective_accounts_rpc.SubaccountOrderSummaryRequest\x1a\x36.injective_accounts_rpc.SubaccountOrderSummaryResponse\x12Z\n\x07Rewards\x12&.injective_accounts_rpc.RewardsRequest\x1a\'.injective_accounts_rpc.RewardsResponseB\x1bZ\x19/injective_accounts_rpcpbb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -35,49 +35,49 @@ _globals['_ORDERSTATESRESPONSE']._serialized_start=583 _globals['_ORDERSTATESRESPONSE']._serialized_end=748 _globals['_ORDERSTATERECORD']._serialized_start=751 - _globals['_ORDERSTATERECORD']._serialized_end=979 - _globals['_SUBACCOUNTSLISTREQUEST']._serialized_start=981 - _globals['_SUBACCOUNTSLISTREQUEST']._serialized_end=1030 - _globals['_SUBACCOUNTSLISTRESPONSE']._serialized_start=1032 - _globals['_SUBACCOUNTSLISTRESPONSE']._serialized_end=1078 - _globals['_SUBACCOUNTBALANCESLISTREQUEST']._serialized_start=1080 - _globals['_SUBACCOUNTBALANCESLISTREQUEST']._serialized_end=1150 - _globals['_SUBACCOUNTBALANCESLISTRESPONSE']._serialized_start=1152 - _globals['_SUBACCOUNTBALANCESLISTRESPONSE']._serialized_end=1245 - _globals['_SUBACCOUNTBALANCE']._serialized_start=1248 - _globals['_SUBACCOUNTBALANCE']._serialized_end=1390 - _globals['_SUBACCOUNTDEPOSIT']._serialized_start=1392 - _globals['_SUBACCOUNTDEPOSIT']._serialized_end=1461 - _globals['_SUBACCOUNTBALANCEENDPOINTREQUEST']._serialized_start=1463 - _globals['_SUBACCOUNTBALANCEENDPOINTREQUEST']._serialized_end=1535 - _globals['_SUBACCOUNTBALANCEENDPOINTRESPONSE']._serialized_start=1537 - _globals['_SUBACCOUNTBALANCEENDPOINTRESPONSE']._serialized_end=1632 - _globals['_STREAMSUBACCOUNTBALANCEREQUEST']._serialized_start=1634 - _globals['_STREAMSUBACCOUNTBALANCEREQUEST']._serialized_end=1705 - _globals['_STREAMSUBACCOUNTBALANCERESPONSE']._serialized_start=1707 - _globals['_STREAMSUBACCOUNTBALANCERESPONSE']._serialized_end=1819 - _globals['_SUBACCOUNTHISTORYREQUEST']._serialized_start=1822 - _globals['_SUBACCOUNTHISTORYREQUEST']._serialized_end=1957 - _globals['_SUBACCOUNTHISTORYRESPONSE']._serialized_start=1960 - _globals['_SUBACCOUNTHISTORYRESPONSE']._serialized_end=2105 - _globals['_SUBACCOUNTBALANCETRANSFER']._serialized_start=2108 - _globals['_SUBACCOUNTBALANCETRANSFER']._serialized_end=2343 - _globals['_COSMOSCOIN']._serialized_start=2345 - _globals['_COSMOSCOIN']._serialized_end=2388 - _globals['_PAGING']._serialized_start=2390 - _globals['_PAGING']._serialized_end=2482 - _globals['_SUBACCOUNTORDERSUMMARYREQUEST']._serialized_start=2484 - _globals['_SUBACCOUNTORDERSUMMARYREQUEST']._serialized_end=2582 - _globals['_SUBACCOUNTORDERSUMMARYRESPONSE']._serialized_start=2584 - _globals['_SUBACCOUNTORDERSUMMARYRESPONSE']._serialized_end=2676 - _globals['_REWARDSREQUEST']._serialized_start=2678 - _globals['_REWARDSREQUEST']._serialized_end=2734 - _globals['_REWARDSRESPONSE']._serialized_start=2736 - _globals['_REWARDSRESPONSE']._serialized_end=2802 - _globals['_REWARD']._serialized_start=2804 - _globals['_REWARD']._serialized_end=2908 - _globals['_COIN']._serialized_start=2910 - _globals['_COIN']._serialized_end=2947 - _globals['_INJECTIVEACCOUNTSRPC']._serialized_start=2950 - _globals['_INJECTIVEACCOUNTSRPC']._serialized_end=4070 + _globals['_ORDERSTATERECORD']._serialized_end=1010 + _globals['_SUBACCOUNTSLISTREQUEST']._serialized_start=1012 + _globals['_SUBACCOUNTSLISTREQUEST']._serialized_end=1061 + _globals['_SUBACCOUNTSLISTRESPONSE']._serialized_start=1063 + _globals['_SUBACCOUNTSLISTRESPONSE']._serialized_end=1109 + _globals['_SUBACCOUNTBALANCESLISTREQUEST']._serialized_start=1111 + _globals['_SUBACCOUNTBALANCESLISTREQUEST']._serialized_end=1181 + _globals['_SUBACCOUNTBALANCESLISTRESPONSE']._serialized_start=1183 + _globals['_SUBACCOUNTBALANCESLISTRESPONSE']._serialized_end=1276 + _globals['_SUBACCOUNTBALANCE']._serialized_start=1279 + _globals['_SUBACCOUNTBALANCE']._serialized_end=1421 + _globals['_SUBACCOUNTDEPOSIT']._serialized_start=1423 + _globals['_SUBACCOUNTDEPOSIT']._serialized_end=1492 + _globals['_SUBACCOUNTBALANCEENDPOINTREQUEST']._serialized_start=1494 + _globals['_SUBACCOUNTBALANCEENDPOINTREQUEST']._serialized_end=1566 + _globals['_SUBACCOUNTBALANCEENDPOINTRESPONSE']._serialized_start=1568 + _globals['_SUBACCOUNTBALANCEENDPOINTRESPONSE']._serialized_end=1663 + _globals['_STREAMSUBACCOUNTBALANCEREQUEST']._serialized_start=1665 + _globals['_STREAMSUBACCOUNTBALANCEREQUEST']._serialized_end=1736 + _globals['_STREAMSUBACCOUNTBALANCERESPONSE']._serialized_start=1738 + _globals['_STREAMSUBACCOUNTBALANCERESPONSE']._serialized_end=1850 + _globals['_SUBACCOUNTHISTORYREQUEST']._serialized_start=1853 + _globals['_SUBACCOUNTHISTORYREQUEST']._serialized_end=1988 + _globals['_SUBACCOUNTHISTORYRESPONSE']._serialized_start=1991 + _globals['_SUBACCOUNTHISTORYRESPONSE']._serialized_end=2136 + _globals['_SUBACCOUNTBALANCETRANSFER']._serialized_start=2139 + _globals['_SUBACCOUNTBALANCETRANSFER']._serialized_end=2374 + _globals['_COSMOSCOIN']._serialized_start=2376 + _globals['_COSMOSCOIN']._serialized_end=2419 + _globals['_PAGING']._serialized_start=2421 + _globals['_PAGING']._serialized_end=2513 + _globals['_SUBACCOUNTORDERSUMMARYREQUEST']._serialized_start=2515 + _globals['_SUBACCOUNTORDERSUMMARYREQUEST']._serialized_end=2613 + _globals['_SUBACCOUNTORDERSUMMARYRESPONSE']._serialized_start=2615 + _globals['_SUBACCOUNTORDERSUMMARYRESPONSE']._serialized_end=2707 + _globals['_REWARDSREQUEST']._serialized_start=2709 + _globals['_REWARDSREQUEST']._serialized_end=2765 + _globals['_REWARDSRESPONSE']._serialized_start=2767 + _globals['_REWARDSRESPONSE']._serialized_end=2833 + _globals['_REWARD']._serialized_start=2835 + _globals['_REWARD']._serialized_end=2939 + _globals['_COIN']._serialized_start=2941 + _globals['_COIN']._serialized_end=2978 + _globals['_INJECTIVEACCOUNTSRPC']._serialized_start=2981 + _globals['_INJECTIVEACCOUNTSRPC']._serialized_end=4101 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_campaign_rpc_pb2.py b/pyinjective/proto/exchange/injective_campaign_rpc_pb2.py index 6b017d93..6fbcac44 100644 --- a/pyinjective/proto/exchange/injective_campaign_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_campaign_rpc_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_campaign_rpc.proto\x12\x16injective_campaign_rpc\"n\n\x0eRankingRequest\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\t\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x0c\n\x04skip\x18\x05 \x01(\x04\"\xaa\x01\n\x0fRankingResponse\x12\x32\n\x08\x63\x61mpaign\x18\x01 \x01(\x0b\x32 .injective_campaign_rpc.Campaign\x12\x33\n\x05users\x18\x02 \x03(\x0b\x32$.injective_campaign_rpc.CampaignUser\x12.\n\x06paging\x18\x03 \x01(\x0b\x32\x1e.injective_campaign_rpc.Paging\"\x99\x01\n\x08\x43\x61mpaign\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x13\n\x0btotal_score\x18\x04 \x01(\t\x12\x14\n\x0clast_updated\x18\x05 \x01(\x12\x12\x12\n\nstart_date\x18\x06 \x01(\x12\x12\x10\n\x08\x65nd_date\x18\x07 \x01(\x12\x12\x14\n\x0cis_claimable\x18\x08 \x01(\x08\"\xd3\x01\n\x0c\x43\x61mpaignUser\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\t\x12\x18\n\x10\x63ontract_updated\x18\x05 \x01(\x08\x12\x14\n\x0c\x62lock_height\x18\x06 \x01(\x12\x12\x12\n\nblock_time\x18\x07 \x01(\x12\x12\x18\n\x10purchased_amount\x18\x08 \x01(\t\x12\x15\n\rgalxe_updated\x18\t \x01(\x08\"\\\n\x06Paging\x12\r\n\x05total\x18\x01 \x01(\x12\x12\x0c\n\x04\x66rom\x18\x02 \x01(\x11\x12\n\n\x02to\x18\x03 \x01(\x11\x12\x1b\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12\x12\x0c\n\x04next\x18\x05 \x03(\t\"\\\n\x11ListGuildsRequest\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x11\x12\x0c\n\x04skip\x18\x03 \x01(\x11\x12\x0f\n\x07sort_by\x18\x04 \x01(\t\"\xca\x01\n\x12ListGuildsResponse\x12-\n\x06guilds\x18\x01 \x03(\x0b\x32\x1d.injective_campaign_rpc.Guild\x12.\n\x06paging\x18\x02 \x01(\x0b\x32\x1e.injective_campaign_rpc.Paging\x12\x12\n\nupdated_at\x18\x03 \x01(\x12\x12\x41\n\x10\x63\x61mpaign_summary\x18\x04 \x01(\x0b\x32\'.injective_campaign_rpc.CampaignSummary\"\xb9\x02\n\x05Guild\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x10\n\x08guild_id\x18\x02 \x01(\t\x12\x16\n\x0emaster_address\x18\x03 \x01(\t\x12\x12\n\ncreated_at\x18\x04 \x01(\x12\x12\x11\n\ttvl_score\x18\x05 \x01(\t\x12\x14\n\x0cvolume_score\x18\x06 \x01(\t\x12\x16\n\x0erank_by_volume\x18\x07 \x01(\x11\x12\x13\n\x0brank_by_tvl\x18\x08 \x01(\x11\x12\x0c\n\x04logo\x18\t \x01(\t\x12\x11\n\ttotal_tvl\x18\n \x01(\t\x12\x12\n\nupdated_at\x18\x0b \x01(\x12\x12\x0c\n\x04name\x18\x0e \x01(\t\x12\x11\n\tis_active\x18\r \x01(\x08\x12\x16\n\x0emaster_balance\x18\x0f \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x10 \x01(\t\"\xf8\x01\n\x0f\x43\x61mpaignSummary\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x19\n\x11\x63\x61mpaign_contract\x18\x02 \x01(\t\x12\x1a\n\x12total_guilds_count\x18\x03 \x01(\x11\x12\x11\n\ttotal_tvl\x18\x04 \x01(\t\x12\x19\n\x11total_average_tvl\x18\x05 \x01(\t\x12\x14\n\x0ctotal_volume\x18\x06 \x01(\t\x12\x12\n\nupdated_at\x18\x07 \x01(\x12\x12\x1b\n\x13total_members_count\x18\x08 \x01(\x11\x12\x12\n\nstart_time\x18\t \x01(\x12\x12\x10\n\x08\x65nd_time\x18\n \x01(\x12\"\x90\x01\n\x17ListGuildMembersRequest\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x10\n\x08guild_id\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x11\x12\x0c\n\x04skip\x18\x04 \x01(\x11\x12\x1a\n\x12include_guild_info\x18\x05 \x01(\x08\x12\x0f\n\x07sort_by\x18\x06 \x01(\t\"\xb3\x01\n\x18ListGuildMembersResponse\x12\x34\n\x07members\x18\x01 \x03(\x0b\x32#.injective_campaign_rpc.GuildMember\x12.\n\x06paging\x18\x02 \x01(\x0b\x32\x1e.injective_campaign_rpc.Paging\x12\x31\n\nguild_info\x18\x03 \x01(\x0b\x32\x1d.injective_campaign_rpc.Guild\"\xd9\x01\n\x0bGuildMember\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x10\n\x08guild_id\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\x12\x11\n\tjoined_at\x18\x04 \x01(\x12\x12\x11\n\ttvl_score\x18\x05 \x01(\t\x12\x14\n\x0cvolume_score\x18\x06 \x01(\t\x12\x11\n\ttotal_tvl\x18\x07 \x01(\t\x12\x1f\n\x17volume_score_percentage\x18\x08 \x01(\x01\x12\x1c\n\x14tvl_score_percentage\x18\t \x01(\x01\"C\n\x15GetGuildMemberRequest\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\"K\n\x16GetGuildMemberResponse\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.injective_campaign_rpc.GuildMember2\xbf\x03\n\x14InjectiveCampaignRPC\x12Z\n\x07Ranking\x12&.injective_campaign_rpc.RankingRequest\x1a\'.injective_campaign_rpc.RankingResponse\x12\x63\n\nListGuilds\x12).injective_campaign_rpc.ListGuildsRequest\x1a*.injective_campaign_rpc.ListGuildsResponse\x12u\n\x10ListGuildMembers\x12/.injective_campaign_rpc.ListGuildMembersRequest\x1a\x30.injective_campaign_rpc.ListGuildMembersResponse\x12o\n\x0eGetGuildMember\x12-.injective_campaign_rpc.GetGuildMemberRequest\x1a..injective_campaign_rpc.GetGuildMemberResponseB\x1bZ\x19/injective_campaign_rpcpbb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_campaign_rpc.proto\x12\x16injective_campaign_rpc\"n\n\x0eRankingRequest\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\t\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x0c\n\x04skip\x18\x05 \x01(\x04\"\xaa\x01\n\x0fRankingResponse\x12\x32\n\x08\x63\x61mpaign\x18\x01 \x01(\x0b\x32 .injective_campaign_rpc.Campaign\x12\x33\n\x05users\x18\x02 \x03(\x0b\x32$.injective_campaign_rpc.CampaignUser\x12.\n\x06paging\x18\x03 \x01(\x0b\x32\x1e.injective_campaign_rpc.Paging\"\x99\x01\n\x08\x43\x61mpaign\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x13\n\x0btotal_score\x18\x04 \x01(\t\x12\x14\n\x0clast_updated\x18\x05 \x01(\x12\x12\x12\n\nstart_date\x18\x06 \x01(\x12\x12\x10\n\x08\x65nd_date\x18\x07 \x01(\x12\x12\x14\n\x0cis_claimable\x18\x08 \x01(\x08\"\xd3\x01\n\x0c\x43\x61mpaignUser\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\t\x12\x18\n\x10\x63ontract_updated\x18\x05 \x01(\x08\x12\x14\n\x0c\x62lock_height\x18\x06 \x01(\x12\x12\x12\n\nblock_time\x18\x07 \x01(\x12\x12\x18\n\x10purchased_amount\x18\x08 \x01(\t\x12\x15\n\rgalxe_updated\x18\t \x01(\x08\"\\\n\x06Paging\x12\r\n\x05total\x18\x01 \x01(\x12\x12\x0c\n\x04\x66rom\x18\x02 \x01(\x11\x12\n\n\x02to\x18\x03 \x01(\x11\x12\x1b\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12\x12\x0c\n\x04next\x18\x05 \x03(\t\"\\\n\x11ListGuildsRequest\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x11\x12\x0c\n\x04skip\x18\x03 \x01(\x11\x12\x0f\n\x07sort_by\x18\x04 \x01(\t\"\xca\x01\n\x12ListGuildsResponse\x12-\n\x06guilds\x18\x01 \x03(\x0b\x32\x1d.injective_campaign_rpc.Guild\x12.\n\x06paging\x18\x02 \x01(\x0b\x32\x1e.injective_campaign_rpc.Paging\x12\x12\n\nupdated_at\x18\x03 \x01(\x12\x12\x41\n\x10\x63\x61mpaign_summary\x18\x04 \x01(\x0b\x32\'.injective_campaign_rpc.CampaignSummary\"\xb9\x02\n\x05Guild\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x10\n\x08guild_id\x18\x02 \x01(\t\x12\x16\n\x0emaster_address\x18\x03 \x01(\t\x12\x12\n\ncreated_at\x18\x04 \x01(\x12\x12\x11\n\ttvl_score\x18\x05 \x01(\t\x12\x14\n\x0cvolume_score\x18\x06 \x01(\t\x12\x16\n\x0erank_by_volume\x18\x07 \x01(\x11\x12\x13\n\x0brank_by_tvl\x18\x08 \x01(\x11\x12\x0c\n\x04logo\x18\t \x01(\t\x12\x11\n\ttotal_tvl\x18\n \x01(\t\x12\x12\n\nupdated_at\x18\x0b \x01(\x12\x12\x0c\n\x04name\x18\x0e \x01(\t\x12\x11\n\tis_active\x18\r \x01(\x08\x12\x16\n\x0emaster_balance\x18\x0f \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x10 \x01(\t\"\xf8\x01\n\x0f\x43\x61mpaignSummary\x12\x13\n\x0b\x63\x61mpaign_id\x18\x01 \x01(\t\x12\x19\n\x11\x63\x61mpaign_contract\x18\x02 \x01(\t\x12\x1a\n\x12total_guilds_count\x18\x03 \x01(\x11\x12\x11\n\ttotal_tvl\x18\x04 \x01(\t\x12\x19\n\x11total_average_tvl\x18\x05 \x01(\t\x12\x14\n\x0ctotal_volume\x18\x06 \x01(\t\x12\x12\n\nupdated_at\x18\x07 \x01(\x12\x12\x1b\n\x13total_members_count\x18\x08 \x01(\x11\x12\x12\n\nstart_time\x18\t \x01(\x12\x12\x10\n\x08\x65nd_time\x18\n \x01(\x12\"\x90\x01\n\x17ListGuildMembersRequest\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x10\n\x08guild_id\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x11\x12\x0c\n\x04skip\x18\x04 \x01(\x11\x12\x1a\n\x12include_guild_info\x18\x05 \x01(\x08\x12\x0f\n\x07sort_by\x18\x06 \x01(\t\"\xb3\x01\n\x18ListGuildMembersResponse\x12\x34\n\x07members\x18\x01 \x03(\x0b\x32#.injective_campaign_rpc.GuildMember\x12.\n\x06paging\x18\x02 \x01(\x0b\x32\x1e.injective_campaign_rpc.Paging\x12\x31\n\nguild_info\x18\x03 \x01(\x0b\x32\x1d.injective_campaign_rpc.Guild\"\xc0\x02\n\x0bGuildMember\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x10\n\x08guild_id\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\x12\x11\n\tjoined_at\x18\x04 \x01(\x12\x12\x11\n\ttvl_score\x18\x05 \x01(\t\x12\x14\n\x0cvolume_score\x18\x06 \x01(\t\x12\x11\n\ttotal_tvl\x18\x07 \x01(\t\x12\x1f\n\x17volume_score_percentage\x18\x08 \x01(\x01\x12\x1c\n\x14tvl_score_percentage\x18\t \x01(\x01\x12\x30\n\ntvl_reward\x18\n \x03(\x0b\x32\x1c.injective_campaign_rpc.Coin\x12\x33\n\rvolume_reward\x18\x0b \x03(\x0b\x32\x1c.injective_campaign_rpc.Coin\"%\n\x04\x43oin\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\"C\n\x15GetGuildMemberRequest\x12\x19\n\x11\x63\x61mpaign_contract\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\"K\n\x16GetGuildMemberResponse\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.injective_campaign_rpc.GuildMember2\xbf\x03\n\x14InjectiveCampaignRPC\x12Z\n\x07Ranking\x12&.injective_campaign_rpc.RankingRequest\x1a\'.injective_campaign_rpc.RankingResponse\x12\x63\n\nListGuilds\x12).injective_campaign_rpc.ListGuildsRequest\x1a*.injective_campaign_rpc.ListGuildsResponse\x12u\n\x10ListGuildMembers\x12/.injective_campaign_rpc.ListGuildMembersRequest\x1a\x30.injective_campaign_rpc.ListGuildMembersResponse\x12o\n\x0eGetGuildMember\x12-.injective_campaign_rpc.GetGuildMemberRequest\x1a..injective_campaign_rpc.GetGuildMemberResponseB\x1bZ\x19/injective_campaign_rpcpbb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -45,11 +45,13 @@ _globals['_LISTGUILDMEMBERSRESPONSE']._serialized_start=1828 _globals['_LISTGUILDMEMBERSRESPONSE']._serialized_end=2007 _globals['_GUILDMEMBER']._serialized_start=2010 - _globals['_GUILDMEMBER']._serialized_end=2227 - _globals['_GETGUILDMEMBERREQUEST']._serialized_start=2229 - _globals['_GETGUILDMEMBERREQUEST']._serialized_end=2296 - _globals['_GETGUILDMEMBERRESPONSE']._serialized_start=2298 - _globals['_GETGUILDMEMBERRESPONSE']._serialized_end=2373 - _globals['_INJECTIVECAMPAIGNRPC']._serialized_start=2376 - _globals['_INJECTIVECAMPAIGNRPC']._serialized_end=2823 + _globals['_GUILDMEMBER']._serialized_end=2330 + _globals['_COIN']._serialized_start=2332 + _globals['_COIN']._serialized_end=2369 + _globals['_GETGUILDMEMBERREQUEST']._serialized_start=2371 + _globals['_GETGUILDMEMBERREQUEST']._serialized_end=2438 + _globals['_GETGUILDMEMBERRESPONSE']._serialized_start=2440 + _globals['_GETGUILDMEMBERRESPONSE']._serialized_end=2515 + _globals['_INJECTIVECAMPAIGNRPC']._serialized_start=2518 + _globals['_INJECTIVECAMPAIGNRPC']._serialized_end=2965 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py b/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py index 25f4d987..b591863c 100644 --- a/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0exchange/injective_derivative_exchange_rpc.proto\x12!injective_derivative_exchange_rpc\"U\n\x0eMarketsRequest\x12\x15\n\rmarket_status\x18\x01 \x01(\t\x12\x13\n\x0bquote_denom\x18\x02 \x01(\t\x12\x17\n\x0fmarket_statuses\x18\x03 \x03(\t\"[\n\x0fMarketsResponse\x12H\n\x07markets\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfo\"\xff\x05\n\x14\x44\x65rivativeMarketInfo\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x15\n\rmarket_status\x18\x02 \x01(\t\x12\x0e\n\x06ticker\x18\x03 \x01(\t\x12\x13\n\x0boracle_base\x18\x04 \x01(\t\x12\x14\n\x0coracle_quote\x18\x05 \x01(\t\x12\x13\n\x0boracle_type\x18\x06 \x01(\t\x12\x1b\n\x13oracle_scale_factor\x18\x07 \x01(\r\x12\x1c\n\x14initial_margin_ratio\x18\x08 \x01(\t\x12 \n\x18maintenance_margin_ratio\x18\t \x01(\t\x12\x13\n\x0bquote_denom\x18\n \x01(\t\x12\x46\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMeta\x12\x16\n\x0emaker_fee_rate\x18\x0c \x01(\t\x12\x16\n\x0etaker_fee_rate\x18\r \x01(\t\x12\x1c\n\x14service_provider_fee\x18\x0e \x01(\t\x12\x14\n\x0cis_perpetual\x18\x0f \x01(\x08\x12\x1b\n\x13min_price_tick_size\x18\x10 \x01(\t\x12\x1e\n\x16min_quantity_tick_size\x18\x11 \x01(\t\x12U\n\x15perpetual_market_info\x18\x12 \x01(\x0b\x32\x36.injective_derivative_exchange_rpc.PerpetualMarketInfo\x12[\n\x18perpetual_market_funding\x18\x13 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.PerpetualMarketFunding\x12^\n\x1a\x65xpiry_futures_market_info\x18\x14 \x01(\x0b\x32:.injective_derivative_exchange_rpc.ExpiryFuturesMarketInfo\"n\n\tTokenMeta\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x0e\n\x06symbol\x18\x03 \x01(\t\x12\x0c\n\x04logo\x18\x04 \x01(\t\x12\x10\n\x08\x64\x65\x63imals\x18\x05 \x01(\x11\x12\x12\n\nupdated_at\x18\x06 \x01(\x12\"\x8e\x01\n\x13PerpetualMarketInfo\x12\x1f\n\x17hourly_funding_rate_cap\x18\x01 \x01(\t\x12\x1c\n\x14hourly_interest_rate\x18\x02 \x01(\t\x12\x1e\n\x16next_funding_timestamp\x18\x03 \x01(\x12\x12\x18\n\x10\x66unding_interval\x18\x04 \x01(\x12\"f\n\x16PerpetualMarketFunding\x12\x1a\n\x12\x63umulative_funding\x18\x01 \x01(\t\x12\x18\n\x10\x63umulative_price\x18\x02 \x01(\t\x12\x16\n\x0elast_timestamp\x18\x03 \x01(\x12\"Q\n\x17\x45xpiryFuturesMarketInfo\x12\x1c\n\x14\x65xpiration_timestamp\x18\x01 \x01(\x12\x12\x18\n\x10settlement_price\x18\x02 \x01(\t\"\"\n\rMarketRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\"Y\n\x0eMarketResponse\x12G\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfo\")\n\x13StreamMarketRequest\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"\x8a\x01\n\x14StreamMarketResponse\x12G\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfo\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"f\n\x1b\x42inaryOptionsMarketsRequest\x12\x15\n\rmarket_status\x18\x01 \x01(\t\x12\x13\n\x0bquote_denom\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\"\xa6\x01\n\x1c\x42inaryOptionsMarketsResponse\x12K\n\x07markets\x18\x01 \x03(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfo\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xf3\x03\n\x17\x42inaryOptionsMarketInfo\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x15\n\rmarket_status\x18\x02 \x01(\t\x12\x0e\n\x06ticker\x18\x03 \x01(\t\x12\x15\n\roracle_symbol\x18\x04 \x01(\t\x12\x17\n\x0foracle_provider\x18\x05 \x01(\t\x12\x13\n\x0boracle_type\x18\x06 \x01(\t\x12\x1b\n\x13oracle_scale_factor\x18\x07 \x01(\r\x12\x1c\n\x14\x65xpiration_timestamp\x18\x08 \x01(\x12\x12\x1c\n\x14settlement_timestamp\x18\t \x01(\x12\x12\x13\n\x0bquote_denom\x18\n \x01(\t\x12\x46\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMeta\x12\x16\n\x0emaker_fee_rate\x18\x0c \x01(\t\x12\x16\n\x0etaker_fee_rate\x18\r \x01(\t\x12\x1c\n\x14service_provider_fee\x18\x0e \x01(\t\x12\x1b\n\x13min_price_tick_size\x18\x0f \x01(\t\x12\x1e\n\x16min_quantity_tick_size\x18\x10 \x01(\t\x12\x18\n\x10settlement_price\x18\x11 \x01(\t\"\\\n\x06Paging\x12\r\n\x05total\x18\x01 \x01(\x12\x12\x0c\n\x04\x66rom\x18\x02 \x01(\x11\x12\n\n\x02to\x18\x03 \x01(\x11\x12\x1b\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12\x12\x0c\n\x04next\x18\x05 \x03(\t\"/\n\x1a\x42inaryOptionsMarketRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\"i\n\x1b\x42inaryOptionsMarketResponse\x12J\n\x06market\x18\x01 \x01(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfo\"\'\n\x12OrderbookV2Request\x12\x11\n\tmarket_id\x18\x01 \x01(\t\"g\n\x13OrderbookV2Response\x12P\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2\"\xbc\x01\n\x1a\x44\x65rivativeLimitOrderbookV2\x12;\n\x04\x62uys\x18\x01 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevel\x12<\n\x05sells\x18\x02 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevel\x12\x10\n\x08sequence\x18\x03 \x01(\x04\x12\x11\n\ttimestamp\x18\x04 \x01(\x12\"@\n\nPriceLevel\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\")\n\x13OrderbooksV2Request\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"o\n\x14OrderbooksV2Response\x12W\n\norderbooks\x18\x01 \x03(\x0b\x32\x43.injective_derivative_exchange_rpc.SingleDerivativeLimitOrderbookV2\"\x87\x01\n SingleDerivativeLimitOrderbookV2\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12P\n\torderbook\x18\x02 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2\".\n\x18StreamOrderbookV2Request\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"\xab\x01\n\x19StreamOrderbookV2Response\x12P\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\x12\x11\n\tmarket_id\x18\x04 \x01(\t\"2\n\x1cStreamOrderbookUpdateRequest\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"\xb8\x01\n\x1dStreamOrderbookUpdateResponse\x12Y\n\x17orderbook_level_updates\x18\x01 \x01(\x0b\x32\x38.injective_derivative_exchange_rpc.OrderbookLevelUpdates\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\x12\x11\n\tmarket_id\x18\x04 \x01(\t\"\xd7\x01\n\x15OrderbookLevelUpdates\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x10\n\x08sequence\x18\x02 \x01(\x04\x12\x41\n\x04\x62uys\x18\x03 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdate\x12\x42\n\x05sells\x18\x04 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdate\x12\x12\n\nupdated_at\x18\x05 \x01(\x12\"Y\n\x10PriceLevelUpdate\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t\x12\x11\n\tis_active\x18\x03 \x01(\x08\x12\x11\n\ttimestamp\x18\x04 \x01(\x12\"\xaa\x02\n\rOrdersRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x12\n\norder_side\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x0c\n\x04skip\x18\x04 \x01(\x04\x12\r\n\x05limit\x18\x05 \x01(\x11\x12\x12\n\nstart_time\x18\x06 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x07 \x01(\x12\x12\x12\n\nmarket_ids\x18\x08 \x03(\t\x12\x16\n\x0eis_conditional\x18\t \x01(\t\x12\x12\n\norder_type\x18\n \x01(\t\x12\x18\n\x10include_inactive\x18\x0b \x01(\x08\x12\x1f\n\x17subaccount_total_orders\x18\x0c \x01(\x08\x12\x10\n\x08trade_id\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x94\x01\n\x0eOrdersResponse\x12G\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrder\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xd8\x03\n\x14\x44\x65rivativeLimitOrder\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x12\n\norder_side\x18\x02 \x01(\t\x12\x11\n\tmarket_id\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x16\n\x0eis_reduce_only\x18\x05 \x01(\x08\x12\x0e\n\x06margin\x18\x06 \x01(\t\x12\r\n\x05price\x18\x07 \x01(\t\x12\x10\n\x08quantity\x18\x08 \x01(\t\x12\x19\n\x11unfilled_quantity\x18\t \x01(\t\x12\x15\n\rtrigger_price\x18\n \x01(\t\x12\x15\n\rfee_recipient\x18\x0b \x01(\t\x12\r\n\x05state\x18\x0c \x01(\t\x12\x12\n\ncreated_at\x18\r \x01(\x12\x12\x12\n\nupdated_at\x18\x0e \x01(\x12\x12\x14\n\x0corder_number\x18\x0f \x01(\x12\x12\x12\n\norder_type\x18\x10 \x01(\t\x12\x16\n\x0eis_conditional\x18\x11 \x01(\x08\x12\x12\n\ntrigger_at\x18\x12 \x01(\x04\x12\x19\n\x11placed_order_hash\x18\x13 \x01(\t\x12\x16\n\x0e\x65xecution_type\x18\x14 \x01(\t\x12\x0f\n\x07tx_hash\x18\x15 \x01(\t\x12\x0b\n\x03\x63id\x18\x16 \x01(\t\"\xca\x01\n\x10PositionsRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x12\n\nstart_time\x18\x05 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x06 \x01(\x12\x12\x12\n\nmarket_ids\x18\x07 \x03(\t\x12\x11\n\tdirection\x18\x08 \x01(\t\x12\"\n\x1asubaccount_total_positions\x18\t \x01(\x08\"\x98\x01\n\x11PositionsResponse\x12H\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePosition\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\x97\x02\n\x12\x44\x65rivativePosition\x12\x0e\n\x06ticker\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\t\x12\x13\n\x0b\x65ntry_price\x18\x06 \x01(\t\x12\x0e\n\x06margin\x18\x07 \x01(\t\x12\x19\n\x11liquidation_price\x18\x08 \x01(\t\x12\x12\n\nmark_price\x18\t \x01(\t\x12&\n\x1e\x61ggregate_reduce_only_quantity\x18\x0b \x01(\t\x12\x12\n\nupdated_at\x18\x0c \x01(\x12\x12\x12\n\ncreated_at\x18\r \x01(\x12\"L\n\x1aLiquidablePositionsRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x0c\n\x04skip\x18\x02 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x11\"g\n\x1bLiquidablePositionsResponse\x12H\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePosition\"\x85\x01\n\x16\x46undingPaymentsRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x10\n\x08\x65nd_time\x18\x05 \x01(\x12\x12\x12\n\nmarket_ids\x18\x06 \x03(\t\"\x99\x01\n\x17\x46undingPaymentsResponse\x12\x43\n\x08payments\x18\x01 \x03(\x0b\x32\x31.injective_derivative_exchange_rpc.FundingPayment\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"]\n\x0e\x46undingPayment\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x0e\n\x06\x61mount\x18\x03 \x01(\t\x12\x11\n\ttimestamp\x18\x04 \x01(\x12\"W\n\x13\x46undingRatesRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x0c\n\x04skip\x18\x02 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x11\x12\x10\n\x08\x65nd_time\x18\x04 \x01(\x12\"\x98\x01\n\x14\x46undingRatesResponse\x12\x45\n\rfunding_rates\x18\x01 \x03(\x0b\x32..injective_derivative_exchange_rpc.FundingRate\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"A\n\x0b\x46undingRate\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x0c\n\x04rate\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"n\n\x16StreamPositionsRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x12\n\nmarket_ids\x18\x03 \x03(\t\x12\x16\n\x0esubaccount_ids\x18\x04 \x03(\t\"u\n\x17StreamPositionsResponse\x12G\n\x08position\x18\x01 \x01(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePosition\x12\x11\n\ttimestamp\x18\x02 \x01(\x12\"\xb0\x02\n\x13StreamOrdersRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x12\n\norder_side\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x0c\n\x04skip\x18\x04 \x01(\x04\x12\r\n\x05limit\x18\x05 \x01(\x11\x12\x12\n\nstart_time\x18\x06 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x07 \x01(\x12\x12\x12\n\nmarket_ids\x18\x08 \x03(\t\x12\x16\n\x0eis_conditional\x18\t \x01(\t\x12\x12\n\norder_type\x18\n \x01(\t\x12\x18\n\x10include_inactive\x18\x0b \x01(\x08\x12\x1f\n\x17subaccount_total_orders\x18\x0c \x01(\x08\x12\x10\n\x08trade_id\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x89\x01\n\x14StreamOrdersResponse\x12\x46\n\x05order\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrder\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"\xa4\x02\n\rTradesRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x8f\x01\n\x0eTradesResponse\x12\x42\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xcf\x02\n\x0f\x44\x65rivativeTrade\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x11\n\tmarket_id\x18\x03 \x01(\t\x12\x1c\n\x14trade_execution_type\x18\x04 \x01(\t\x12\x16\n\x0eis_liquidation\x18\x05 \x01(\x08\x12H\n\x0eposition_delta\x18\x06 \x01(\x0b\x32\x30.injective_derivative_exchange_rpc.PositionDelta\x12\x0e\n\x06payout\x18\x07 \x01(\t\x12\x0b\n\x03\x66\x65\x65\x18\x08 \x01(\t\x12\x13\n\x0b\x65xecuted_at\x18\t \x01(\x12\x12\x15\n\rfee_recipient\x18\n \x01(\t\x12\x10\n\x08trade_id\x18\x0b \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x0c \x01(\t\x12\x0b\n\x03\x63id\x18\r \x01(\t\"w\n\rPositionDelta\x12\x17\n\x0ftrade_direction\x18\x01 \x01(\t\x12\x17\n\x0f\x65xecution_price\x18\x02 \x01(\t\x12\x1a\n\x12\x65xecution_quantity\x18\x03 \x01(\t\x12\x18\n\x10\x65xecution_margin\x18\x04 \x01(\t\"\xa6\x02\n\x0fTradesV2Request\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x91\x01\n\x10TradesV2Response\x12\x42\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xaa\x02\n\x13StreamTradesRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x84\x01\n\x14StreamTradesResponse\x12\x41\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"\xac\x02\n\x15StreamTradesV2Request\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x86\x01\n\x16StreamTradesV2Response\x12\x41\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"d\n\x1bSubaccountOrdersListRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\"\xa2\x01\n\x1cSubaccountOrdersListResponse\x12G\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrder\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\x8f\x01\n\x1bSubaccountTradesListRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x16\n\x0e\x65xecution_type\x18\x03 \x01(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\"b\n\x1cSubaccountTradesListResponse\x12\x42\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\"\xcf\x02\n\x14OrdersHistoryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x13\n\x0border_types\x18\x05 \x03(\t\x12\x11\n\tdirection\x18\x06 \x01(\t\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x16\n\x0eis_conditional\x18\t \x01(\t\x12\x12\n\norder_type\x18\n \x01(\t\x12\r\n\x05state\x18\x0b \x01(\t\x12\x17\n\x0f\x65xecution_types\x18\x0c \x03(\t\x12\x12\n\nmarket_ids\x18\r \x03(\t\x12\x10\n\x08trade_id\x18\x0e \x01(\t\x12\x1b\n\x13\x61\x63tive_markets_only\x18\x0f \x01(\x08\x12\x0b\n\x03\x63id\x18\x10 \x01(\t\"\x9d\x01\n\x15OrdersHistoryResponse\x12I\n\x06orders\x18\x01 \x03(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistory\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xbd\x03\n\x16\x44\x65rivativeOrderHistory\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x11\n\tis_active\x18\x03 \x01(\x08\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x16\n\x0e\x65xecution_type\x18\x05 \x01(\t\x12\x12\n\norder_type\x18\x06 \x01(\t\x12\r\n\x05price\x18\x07 \x01(\t\x12\x15\n\rtrigger_price\x18\x08 \x01(\t\x12\x10\n\x08quantity\x18\t \x01(\t\x12\x17\n\x0f\x66illed_quantity\x18\n \x01(\t\x12\r\n\x05state\x18\x0b \x01(\t\x12\x12\n\ncreated_at\x18\x0c \x01(\x12\x12\x12\n\nupdated_at\x18\r \x01(\x12\x12\x16\n\x0eis_reduce_only\x18\x0e \x01(\x08\x12\x11\n\tdirection\x18\x0f \x01(\t\x12\x16\n\x0eis_conditional\x18\x10 \x01(\x08\x12\x12\n\ntrigger_at\x18\x11 \x01(\x04\x12\x19\n\x11placed_order_hash\x18\x12 \x01(\t\x12\x0e\n\x06margin\x18\x13 \x01(\t\x12\x0f\n\x07tx_hash\x18\x14 \x01(\t\x12\x0b\n\x03\x63id\x18\x15 \x01(\t\"\x96\x01\n\x1aStreamOrdersHistoryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x13\n\x0border_types\x18\x03 \x03(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\r\n\x05state\x18\x05 \x01(\t\x12\x17\n\x0f\x65xecution_types\x18\x06 \x03(\t\"\x92\x01\n\x1bStreamOrdersHistoryResponse\x12H\n\x05order\x18\x01 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistory\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\x32\xc6\x19\n\x1eInjectiveDerivativeExchangeRPC\x12p\n\x07Markets\x12\x31.injective_derivative_exchange_rpc.MarketsRequest\x1a\x32.injective_derivative_exchange_rpc.MarketsResponse\x12m\n\x06Market\x12\x30.injective_derivative_exchange_rpc.MarketRequest\x1a\x31.injective_derivative_exchange_rpc.MarketResponse\x12\x81\x01\n\x0cStreamMarket\x12\x36.injective_derivative_exchange_rpc.StreamMarketRequest\x1a\x37.injective_derivative_exchange_rpc.StreamMarketResponse0\x01\x12\x97\x01\n\x14\x42inaryOptionsMarkets\x12>.injective_derivative_exchange_rpc.BinaryOptionsMarketsRequest\x1a?.injective_derivative_exchange_rpc.BinaryOptionsMarketsResponse\x12\x94\x01\n\x13\x42inaryOptionsMarket\x12=.injective_derivative_exchange_rpc.BinaryOptionsMarketRequest\x1a>.injective_derivative_exchange_rpc.BinaryOptionsMarketResponse\x12|\n\x0bOrderbookV2\x12\x35.injective_derivative_exchange_rpc.OrderbookV2Request\x1a\x36.injective_derivative_exchange_rpc.OrderbookV2Response\x12\x7f\n\x0cOrderbooksV2\x12\x36.injective_derivative_exchange_rpc.OrderbooksV2Request\x1a\x37.injective_derivative_exchange_rpc.OrderbooksV2Response\x12\x90\x01\n\x11StreamOrderbookV2\x12;.injective_derivative_exchange_rpc.StreamOrderbookV2Request\x1a<.injective_derivative_exchange_rpc.StreamOrderbookV2Response0\x01\x12\x9c\x01\n\x15StreamOrderbookUpdate\x12?.injective_derivative_exchange_rpc.StreamOrderbookUpdateRequest\x1a@.injective_derivative_exchange_rpc.StreamOrderbookUpdateResponse0\x01\x12m\n\x06Orders\x12\x30.injective_derivative_exchange_rpc.OrdersRequest\x1a\x31.injective_derivative_exchange_rpc.OrdersResponse\x12v\n\tPositions\x12\x33.injective_derivative_exchange_rpc.PositionsRequest\x1a\x34.injective_derivative_exchange_rpc.PositionsResponse\x12\x94\x01\n\x13LiquidablePositions\x12=.injective_derivative_exchange_rpc.LiquidablePositionsRequest\x1a>.injective_derivative_exchange_rpc.LiquidablePositionsResponse\x12\x88\x01\n\x0f\x46undingPayments\x12\x39.injective_derivative_exchange_rpc.FundingPaymentsRequest\x1a:.injective_derivative_exchange_rpc.FundingPaymentsResponse\x12\x7f\n\x0c\x46undingRates\x12\x36.injective_derivative_exchange_rpc.FundingRatesRequest\x1a\x37.injective_derivative_exchange_rpc.FundingRatesResponse\x12\x8a\x01\n\x0fStreamPositions\x12\x39.injective_derivative_exchange_rpc.StreamPositionsRequest\x1a:.injective_derivative_exchange_rpc.StreamPositionsResponse0\x01\x12\x81\x01\n\x0cStreamOrders\x12\x36.injective_derivative_exchange_rpc.StreamOrdersRequest\x1a\x37.injective_derivative_exchange_rpc.StreamOrdersResponse0\x01\x12m\n\x06Trades\x12\x30.injective_derivative_exchange_rpc.TradesRequest\x1a\x31.injective_derivative_exchange_rpc.TradesResponse\x12s\n\x08TradesV2\x12\x32.injective_derivative_exchange_rpc.TradesV2Request\x1a\x33.injective_derivative_exchange_rpc.TradesV2Response\x12\x81\x01\n\x0cStreamTrades\x12\x36.injective_derivative_exchange_rpc.StreamTradesRequest\x1a\x37.injective_derivative_exchange_rpc.StreamTradesResponse0\x01\x12\x87\x01\n\x0eStreamTradesV2\x12\x38.injective_derivative_exchange_rpc.StreamTradesV2Request\x1a\x39.injective_derivative_exchange_rpc.StreamTradesV2Response0\x01\x12\x97\x01\n\x14SubaccountOrdersList\x12>.injective_derivative_exchange_rpc.SubaccountOrdersListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountOrdersListResponse\x12\x97\x01\n\x14SubaccountTradesList\x12>.injective_derivative_exchange_rpc.SubaccountTradesListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountTradesListResponse\x12\x82\x01\n\rOrdersHistory\x12\x37.injective_derivative_exchange_rpc.OrdersHistoryRequest\x1a\x38.injective_derivative_exchange_rpc.OrdersHistoryResponse\x12\x96\x01\n\x13StreamOrdersHistory\x12=.injective_derivative_exchange_rpc.StreamOrdersHistoryRequest\x1a>.injective_derivative_exchange_rpc.StreamOrdersHistoryResponse0\x01\x42&Z$/injective_derivative_exchange_rpcpbb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0exchange/injective_derivative_exchange_rpc.proto\x12!injective_derivative_exchange_rpc\"U\n\x0eMarketsRequest\x12\x15\n\rmarket_status\x18\x01 \x01(\t\x12\x13\n\x0bquote_denom\x18\x02 \x01(\t\x12\x17\n\x0fmarket_statuses\x18\x03 \x03(\t\"[\n\x0fMarketsResponse\x12H\n\x07markets\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfo\"\xff\x05\n\x14\x44\x65rivativeMarketInfo\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x15\n\rmarket_status\x18\x02 \x01(\t\x12\x0e\n\x06ticker\x18\x03 \x01(\t\x12\x13\n\x0boracle_base\x18\x04 \x01(\t\x12\x14\n\x0coracle_quote\x18\x05 \x01(\t\x12\x13\n\x0boracle_type\x18\x06 \x01(\t\x12\x1b\n\x13oracle_scale_factor\x18\x07 \x01(\r\x12\x1c\n\x14initial_margin_ratio\x18\x08 \x01(\t\x12 \n\x18maintenance_margin_ratio\x18\t \x01(\t\x12\x13\n\x0bquote_denom\x18\n \x01(\t\x12\x46\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMeta\x12\x16\n\x0emaker_fee_rate\x18\x0c \x01(\t\x12\x16\n\x0etaker_fee_rate\x18\r \x01(\t\x12\x1c\n\x14service_provider_fee\x18\x0e \x01(\t\x12\x14\n\x0cis_perpetual\x18\x0f \x01(\x08\x12\x1b\n\x13min_price_tick_size\x18\x10 \x01(\t\x12\x1e\n\x16min_quantity_tick_size\x18\x11 \x01(\t\x12U\n\x15perpetual_market_info\x18\x12 \x01(\x0b\x32\x36.injective_derivative_exchange_rpc.PerpetualMarketInfo\x12[\n\x18perpetual_market_funding\x18\x13 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.PerpetualMarketFunding\x12^\n\x1a\x65xpiry_futures_market_info\x18\x14 \x01(\x0b\x32:.injective_derivative_exchange_rpc.ExpiryFuturesMarketInfo\"n\n\tTokenMeta\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x0e\n\x06symbol\x18\x03 \x01(\t\x12\x0c\n\x04logo\x18\x04 \x01(\t\x12\x10\n\x08\x64\x65\x63imals\x18\x05 \x01(\x11\x12\x12\n\nupdated_at\x18\x06 \x01(\x12\"\x8e\x01\n\x13PerpetualMarketInfo\x12\x1f\n\x17hourly_funding_rate_cap\x18\x01 \x01(\t\x12\x1c\n\x14hourly_interest_rate\x18\x02 \x01(\t\x12\x1e\n\x16next_funding_timestamp\x18\x03 \x01(\x12\x12\x18\n\x10\x66unding_interval\x18\x04 \x01(\x12\"f\n\x16PerpetualMarketFunding\x12\x1a\n\x12\x63umulative_funding\x18\x01 \x01(\t\x12\x18\n\x10\x63umulative_price\x18\x02 \x01(\t\x12\x16\n\x0elast_timestamp\x18\x03 \x01(\x12\"Q\n\x17\x45xpiryFuturesMarketInfo\x12\x1c\n\x14\x65xpiration_timestamp\x18\x01 \x01(\x12\x12\x18\n\x10settlement_price\x18\x02 \x01(\t\"\"\n\rMarketRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\"Y\n\x0eMarketResponse\x12G\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfo\")\n\x13StreamMarketRequest\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"\x8a\x01\n\x14StreamMarketResponse\x12G\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfo\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"f\n\x1b\x42inaryOptionsMarketsRequest\x12\x15\n\rmarket_status\x18\x01 \x01(\t\x12\x13\n\x0bquote_denom\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\"\xa6\x01\n\x1c\x42inaryOptionsMarketsResponse\x12K\n\x07markets\x18\x01 \x03(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfo\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xf3\x03\n\x17\x42inaryOptionsMarketInfo\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x15\n\rmarket_status\x18\x02 \x01(\t\x12\x0e\n\x06ticker\x18\x03 \x01(\t\x12\x15\n\roracle_symbol\x18\x04 \x01(\t\x12\x17\n\x0foracle_provider\x18\x05 \x01(\t\x12\x13\n\x0boracle_type\x18\x06 \x01(\t\x12\x1b\n\x13oracle_scale_factor\x18\x07 \x01(\r\x12\x1c\n\x14\x65xpiration_timestamp\x18\x08 \x01(\x12\x12\x1c\n\x14settlement_timestamp\x18\t \x01(\x12\x12\x13\n\x0bquote_denom\x18\n \x01(\t\x12\x46\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMeta\x12\x16\n\x0emaker_fee_rate\x18\x0c \x01(\t\x12\x16\n\x0etaker_fee_rate\x18\r \x01(\t\x12\x1c\n\x14service_provider_fee\x18\x0e \x01(\t\x12\x1b\n\x13min_price_tick_size\x18\x0f \x01(\t\x12\x1e\n\x16min_quantity_tick_size\x18\x10 \x01(\t\x12\x18\n\x10settlement_price\x18\x11 \x01(\t\"\\\n\x06Paging\x12\r\n\x05total\x18\x01 \x01(\x12\x12\x0c\n\x04\x66rom\x18\x02 \x01(\x11\x12\n\n\x02to\x18\x03 \x01(\x11\x12\x1b\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12\x12\x0c\n\x04next\x18\x05 \x03(\t\"/\n\x1a\x42inaryOptionsMarketRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\"i\n\x1b\x42inaryOptionsMarketResponse\x12J\n\x06market\x18\x01 \x01(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfo\"\'\n\x12OrderbookV2Request\x12\x11\n\tmarket_id\x18\x01 \x01(\t\"g\n\x13OrderbookV2Response\x12P\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2\"\xbc\x01\n\x1a\x44\x65rivativeLimitOrderbookV2\x12;\n\x04\x62uys\x18\x01 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevel\x12<\n\x05sells\x18\x02 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevel\x12\x10\n\x08sequence\x18\x03 \x01(\x04\x12\x11\n\ttimestamp\x18\x04 \x01(\x12\"@\n\nPriceLevel\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\")\n\x13OrderbooksV2Request\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"o\n\x14OrderbooksV2Response\x12W\n\norderbooks\x18\x01 \x03(\x0b\x32\x43.injective_derivative_exchange_rpc.SingleDerivativeLimitOrderbookV2\"\x87\x01\n SingleDerivativeLimitOrderbookV2\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12P\n\torderbook\x18\x02 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2\".\n\x18StreamOrderbookV2Request\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"\xab\x01\n\x19StreamOrderbookV2Response\x12P\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\x12\x11\n\tmarket_id\x18\x04 \x01(\t\"2\n\x1cStreamOrderbookUpdateRequest\x12\x12\n\nmarket_ids\x18\x01 \x03(\t\"\xb8\x01\n\x1dStreamOrderbookUpdateResponse\x12Y\n\x17orderbook_level_updates\x18\x01 \x01(\x0b\x32\x38.injective_derivative_exchange_rpc.OrderbookLevelUpdates\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\x12\x11\n\tmarket_id\x18\x04 \x01(\t\"\xd7\x01\n\x15OrderbookLevelUpdates\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x10\n\x08sequence\x18\x02 \x01(\x04\x12\x41\n\x04\x62uys\x18\x03 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdate\x12\x42\n\x05sells\x18\x04 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdate\x12\x12\n\nupdated_at\x18\x05 \x01(\x12\"Y\n\x10PriceLevelUpdate\x12\r\n\x05price\x18\x01 \x01(\t\x12\x10\n\x08quantity\x18\x02 \x01(\t\x12\x11\n\tis_active\x18\x03 \x01(\x08\x12\x11\n\ttimestamp\x18\x04 \x01(\x12\"\xaa\x02\n\rOrdersRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x12\n\norder_side\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x0c\n\x04skip\x18\x04 \x01(\x04\x12\r\n\x05limit\x18\x05 \x01(\x11\x12\x12\n\nstart_time\x18\x06 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x07 \x01(\x12\x12\x12\n\nmarket_ids\x18\x08 \x03(\t\x12\x16\n\x0eis_conditional\x18\t \x01(\t\x12\x12\n\norder_type\x18\n \x01(\t\x12\x18\n\x10include_inactive\x18\x0b \x01(\x08\x12\x1f\n\x17subaccount_total_orders\x18\x0c \x01(\x08\x12\x10\n\x08trade_id\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x94\x01\n\x0eOrdersResponse\x12G\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrder\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xd8\x03\n\x14\x44\x65rivativeLimitOrder\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x12\n\norder_side\x18\x02 \x01(\t\x12\x11\n\tmarket_id\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x16\n\x0eis_reduce_only\x18\x05 \x01(\x08\x12\x0e\n\x06margin\x18\x06 \x01(\t\x12\r\n\x05price\x18\x07 \x01(\t\x12\x10\n\x08quantity\x18\x08 \x01(\t\x12\x19\n\x11unfilled_quantity\x18\t \x01(\t\x12\x15\n\rtrigger_price\x18\n \x01(\t\x12\x15\n\rfee_recipient\x18\x0b \x01(\t\x12\r\n\x05state\x18\x0c \x01(\t\x12\x12\n\ncreated_at\x18\r \x01(\x12\x12\x12\n\nupdated_at\x18\x0e \x01(\x12\x12\x14\n\x0corder_number\x18\x0f \x01(\x12\x12\x12\n\norder_type\x18\x10 \x01(\t\x12\x16\n\x0eis_conditional\x18\x11 \x01(\x08\x12\x12\n\ntrigger_at\x18\x12 \x01(\x04\x12\x19\n\x11placed_order_hash\x18\x13 \x01(\t\x12\x16\n\x0e\x65xecution_type\x18\x14 \x01(\t\x12\x0f\n\x07tx_hash\x18\x15 \x01(\t\x12\x0b\n\x03\x63id\x18\x16 \x01(\t\"\xca\x01\n\x10PositionsRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x12\n\nstart_time\x18\x05 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x06 \x01(\x12\x12\x12\n\nmarket_ids\x18\x07 \x03(\t\x12\x11\n\tdirection\x18\x08 \x01(\t\x12\"\n\x1asubaccount_total_positions\x18\t \x01(\x08\"\x98\x01\n\x11PositionsResponse\x12H\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePosition\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\x97\x02\n\x12\x44\x65rivativePosition\x12\x0e\n\x06ticker\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\t\x12\x13\n\x0b\x65ntry_price\x18\x06 \x01(\t\x12\x0e\n\x06margin\x18\x07 \x01(\t\x12\x19\n\x11liquidation_price\x18\x08 \x01(\t\x12\x12\n\nmark_price\x18\t \x01(\t\x12&\n\x1e\x61ggregate_reduce_only_quantity\x18\x0b \x01(\t\x12\x12\n\nupdated_at\x18\x0c \x01(\x12\x12\x12\n\ncreated_at\x18\r \x01(\x12\"\xcc\x01\n\x12PositionsV2Request\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x12\n\nstart_time\x18\x05 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x06 \x01(\x12\x12\x12\n\nmarket_ids\x18\x07 \x03(\t\x12\x11\n\tdirection\x18\x08 \x01(\t\x12\"\n\x1asubaccount_total_positions\x18\t \x01(\x08\"\x9c\x01\n\x13PositionsV2Response\x12J\n\tpositions\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativePositionV2\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xdd\x01\n\x14\x44\x65rivativePositionV2\x12\x0e\n\x06ticker\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\t\x12\x13\n\x0b\x65ntry_price\x18\x06 \x01(\t\x12\x0e\n\x06margin\x18\x07 \x01(\t\x12\x19\n\x11liquidation_price\x18\x08 \x01(\t\x12\x12\n\nmark_price\x18\t \x01(\t\x12\x12\n\nupdated_at\x18\x0b \x01(\x12\"L\n\x1aLiquidablePositionsRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x0c\n\x04skip\x18\x02 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x11\"g\n\x1bLiquidablePositionsResponse\x12H\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePosition\"\x85\x01\n\x16\x46undingPaymentsRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x10\n\x08\x65nd_time\x18\x05 \x01(\x12\x12\x12\n\nmarket_ids\x18\x06 \x03(\t\"\x99\x01\n\x17\x46undingPaymentsResponse\x12\x43\n\x08payments\x18\x01 \x03(\x0b\x32\x31.injective_derivative_exchange_rpc.FundingPayment\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"]\n\x0e\x46undingPayment\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x0e\n\x06\x61mount\x18\x03 \x01(\t\x12\x11\n\ttimestamp\x18\x04 \x01(\x12\"W\n\x13\x46undingRatesRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x0c\n\x04skip\x18\x02 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x11\x12\x10\n\x08\x65nd_time\x18\x04 \x01(\x12\"\x98\x01\n\x14\x46undingRatesResponse\x12\x45\n\rfunding_rates\x18\x01 \x03(\x0b\x32..injective_derivative_exchange_rpc.FundingRate\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"A\n\x0b\x46undingRate\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x0c\n\x04rate\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"n\n\x16StreamPositionsRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x12\n\nmarket_ids\x18\x03 \x03(\t\x12\x16\n\x0esubaccount_ids\x18\x04 \x03(\t\"u\n\x17StreamPositionsResponse\x12G\n\x08position\x18\x01 \x01(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePosition\x12\x11\n\ttimestamp\x18\x02 \x01(\x12\"\xb0\x02\n\x13StreamOrdersRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x12\n\norder_side\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x0c\n\x04skip\x18\x04 \x01(\x04\x12\r\n\x05limit\x18\x05 \x01(\x11\x12\x12\n\nstart_time\x18\x06 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x07 \x01(\x12\x12\x12\n\nmarket_ids\x18\x08 \x03(\t\x12\x16\n\x0eis_conditional\x18\t \x01(\t\x12\x12\n\norder_type\x18\n \x01(\t\x12\x18\n\x10include_inactive\x18\x0b \x01(\x08\x12\x1f\n\x17subaccount_total_orders\x18\x0c \x01(\x08\x12\x10\n\x08trade_id\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x89\x01\n\x14StreamOrdersResponse\x12\x46\n\x05order\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrder\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"\xa4\x02\n\rTradesRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x8f\x01\n\x0eTradesResponse\x12\x42\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xcf\x02\n\x0f\x44\x65rivativeTrade\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x11\n\tmarket_id\x18\x03 \x01(\t\x12\x1c\n\x14trade_execution_type\x18\x04 \x01(\t\x12\x16\n\x0eis_liquidation\x18\x05 \x01(\x08\x12H\n\x0eposition_delta\x18\x06 \x01(\x0b\x32\x30.injective_derivative_exchange_rpc.PositionDelta\x12\x0e\n\x06payout\x18\x07 \x01(\t\x12\x0b\n\x03\x66\x65\x65\x18\x08 \x01(\t\x12\x13\n\x0b\x65xecuted_at\x18\t \x01(\x12\x12\x15\n\rfee_recipient\x18\n \x01(\t\x12\x10\n\x08trade_id\x18\x0b \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x0c \x01(\t\x12\x0b\n\x03\x63id\x18\r \x01(\t\"w\n\rPositionDelta\x12\x17\n\x0ftrade_direction\x18\x01 \x01(\t\x12\x17\n\x0f\x65xecution_price\x18\x02 \x01(\t\x12\x1a\n\x12\x65xecution_quantity\x18\x03 \x01(\t\x12\x18\n\x10\x65xecution_margin\x18\x04 \x01(\t\"\xa6\x02\n\x0fTradesV2Request\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x91\x01\n\x10TradesV2Response\x12\x42\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xaa\x02\n\x13StreamTradesRequest\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x84\x01\n\x14StreamTradesResponse\x12\x41\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"\xac\x02\n\x15StreamTradesV2Request\x12\x11\n\tmarket_id\x18\x01 \x01(\t\x12\x16\n\x0e\x65xecution_side\x18\x02 \x01(\t\x12\x11\n\tdirection\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x12\n\nmarket_ids\x18\t \x03(\t\x12\x16\n\x0esubaccount_ids\x18\n \x03(\t\x12\x17\n\x0f\x65xecution_types\x18\x0b \x03(\t\x12\x10\n\x08trade_id\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63\x63ount_address\x18\r \x01(\t\x12\x0b\n\x03\x63id\x18\x0e \x01(\t\"\x86\x01\n\x16StreamTradesV2Response\x12\x41\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\"d\n\x1bSubaccountOrdersListRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\"\xa2\x01\n\x1cSubaccountOrdersListResponse\x12G\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrder\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\x8f\x01\n\x1bSubaccountTradesListRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x16\n\x0e\x65xecution_type\x18\x03 \x01(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\x0c\n\x04skip\x18\x05 \x01(\x04\x12\r\n\x05limit\x18\x06 \x01(\x11\"b\n\x1cSubaccountTradesListResponse\x12\x42\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTrade\"\xcf\x02\n\x14OrdersHistoryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x0c\n\x04skip\x18\x03 \x01(\x04\x12\r\n\x05limit\x18\x04 \x01(\x11\x12\x13\n\x0border_types\x18\x05 \x03(\t\x12\x11\n\tdirection\x18\x06 \x01(\t\x12\x12\n\nstart_time\x18\x07 \x01(\x12\x12\x10\n\x08\x65nd_time\x18\x08 \x01(\x12\x12\x16\n\x0eis_conditional\x18\t \x01(\t\x12\x12\n\norder_type\x18\n \x01(\t\x12\r\n\x05state\x18\x0b \x01(\t\x12\x17\n\x0f\x65xecution_types\x18\x0c \x03(\t\x12\x12\n\nmarket_ids\x18\r \x03(\t\x12\x10\n\x08trade_id\x18\x0e \x01(\t\x12\x1b\n\x13\x61\x63tive_markets_only\x18\x0f \x01(\x08\x12\x0b\n\x03\x63id\x18\x10 \x01(\t\"\x9d\x01\n\x15OrdersHistoryResponse\x12I\n\x06orders\x18\x01 \x03(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistory\x12\x39\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.Paging\"\xbd\x03\n\x16\x44\x65rivativeOrderHistory\x12\x12\n\norder_hash\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x11\n\tis_active\x18\x03 \x01(\x08\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x16\n\x0e\x65xecution_type\x18\x05 \x01(\t\x12\x12\n\norder_type\x18\x06 \x01(\t\x12\r\n\x05price\x18\x07 \x01(\t\x12\x15\n\rtrigger_price\x18\x08 \x01(\t\x12\x10\n\x08quantity\x18\t \x01(\t\x12\x17\n\x0f\x66illed_quantity\x18\n \x01(\t\x12\r\n\x05state\x18\x0b \x01(\t\x12\x12\n\ncreated_at\x18\x0c \x01(\x12\x12\x12\n\nupdated_at\x18\r \x01(\x12\x12\x16\n\x0eis_reduce_only\x18\x0e \x01(\x08\x12\x11\n\tdirection\x18\x0f \x01(\t\x12\x16\n\x0eis_conditional\x18\x10 \x01(\x08\x12\x12\n\ntrigger_at\x18\x11 \x01(\x04\x12\x19\n\x11placed_order_hash\x18\x12 \x01(\t\x12\x0e\n\x06margin\x18\x13 \x01(\t\x12\x0f\n\x07tx_hash\x18\x14 \x01(\t\x12\x0b\n\x03\x63id\x18\x15 \x01(\t\"\x96\x01\n\x1aStreamOrdersHistoryRequest\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x13\n\x0border_types\x18\x03 \x03(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\r\n\x05state\x18\x05 \x01(\t\x12\x17\n\x0f\x65xecution_types\x18\x06 \x03(\t\"\x92\x01\n\x1bStreamOrdersHistoryResponse\x12H\n\x05order\x18\x01 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistory\x12\x16\n\x0eoperation_type\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x12\x32\xc4\x1a\n\x1eInjectiveDerivativeExchangeRPC\x12p\n\x07Markets\x12\x31.injective_derivative_exchange_rpc.MarketsRequest\x1a\x32.injective_derivative_exchange_rpc.MarketsResponse\x12m\n\x06Market\x12\x30.injective_derivative_exchange_rpc.MarketRequest\x1a\x31.injective_derivative_exchange_rpc.MarketResponse\x12\x81\x01\n\x0cStreamMarket\x12\x36.injective_derivative_exchange_rpc.StreamMarketRequest\x1a\x37.injective_derivative_exchange_rpc.StreamMarketResponse0\x01\x12\x97\x01\n\x14\x42inaryOptionsMarkets\x12>.injective_derivative_exchange_rpc.BinaryOptionsMarketsRequest\x1a?.injective_derivative_exchange_rpc.BinaryOptionsMarketsResponse\x12\x94\x01\n\x13\x42inaryOptionsMarket\x12=.injective_derivative_exchange_rpc.BinaryOptionsMarketRequest\x1a>.injective_derivative_exchange_rpc.BinaryOptionsMarketResponse\x12|\n\x0bOrderbookV2\x12\x35.injective_derivative_exchange_rpc.OrderbookV2Request\x1a\x36.injective_derivative_exchange_rpc.OrderbookV2Response\x12\x7f\n\x0cOrderbooksV2\x12\x36.injective_derivative_exchange_rpc.OrderbooksV2Request\x1a\x37.injective_derivative_exchange_rpc.OrderbooksV2Response\x12\x90\x01\n\x11StreamOrderbookV2\x12;.injective_derivative_exchange_rpc.StreamOrderbookV2Request\x1a<.injective_derivative_exchange_rpc.StreamOrderbookV2Response0\x01\x12\x9c\x01\n\x15StreamOrderbookUpdate\x12?.injective_derivative_exchange_rpc.StreamOrderbookUpdateRequest\x1a@.injective_derivative_exchange_rpc.StreamOrderbookUpdateResponse0\x01\x12m\n\x06Orders\x12\x30.injective_derivative_exchange_rpc.OrdersRequest\x1a\x31.injective_derivative_exchange_rpc.OrdersResponse\x12v\n\tPositions\x12\x33.injective_derivative_exchange_rpc.PositionsRequest\x1a\x34.injective_derivative_exchange_rpc.PositionsResponse\x12|\n\x0bPositionsV2\x12\x35.injective_derivative_exchange_rpc.PositionsV2Request\x1a\x36.injective_derivative_exchange_rpc.PositionsV2Response\x12\x94\x01\n\x13LiquidablePositions\x12=.injective_derivative_exchange_rpc.LiquidablePositionsRequest\x1a>.injective_derivative_exchange_rpc.LiquidablePositionsResponse\x12\x88\x01\n\x0f\x46undingPayments\x12\x39.injective_derivative_exchange_rpc.FundingPaymentsRequest\x1a:.injective_derivative_exchange_rpc.FundingPaymentsResponse\x12\x7f\n\x0c\x46undingRates\x12\x36.injective_derivative_exchange_rpc.FundingRatesRequest\x1a\x37.injective_derivative_exchange_rpc.FundingRatesResponse\x12\x8a\x01\n\x0fStreamPositions\x12\x39.injective_derivative_exchange_rpc.StreamPositionsRequest\x1a:.injective_derivative_exchange_rpc.StreamPositionsResponse0\x01\x12\x81\x01\n\x0cStreamOrders\x12\x36.injective_derivative_exchange_rpc.StreamOrdersRequest\x1a\x37.injective_derivative_exchange_rpc.StreamOrdersResponse0\x01\x12m\n\x06Trades\x12\x30.injective_derivative_exchange_rpc.TradesRequest\x1a\x31.injective_derivative_exchange_rpc.TradesResponse\x12s\n\x08TradesV2\x12\x32.injective_derivative_exchange_rpc.TradesV2Request\x1a\x33.injective_derivative_exchange_rpc.TradesV2Response\x12\x81\x01\n\x0cStreamTrades\x12\x36.injective_derivative_exchange_rpc.StreamTradesRequest\x1a\x37.injective_derivative_exchange_rpc.StreamTradesResponse0\x01\x12\x87\x01\n\x0eStreamTradesV2\x12\x38.injective_derivative_exchange_rpc.StreamTradesV2Request\x1a\x39.injective_derivative_exchange_rpc.StreamTradesV2Response0\x01\x12\x97\x01\n\x14SubaccountOrdersList\x12>.injective_derivative_exchange_rpc.SubaccountOrdersListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountOrdersListResponse\x12\x97\x01\n\x14SubaccountTradesList\x12>.injective_derivative_exchange_rpc.SubaccountTradesListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountTradesListResponse\x12\x82\x01\n\rOrdersHistory\x12\x37.injective_derivative_exchange_rpc.OrdersHistoryRequest\x1a\x38.injective_derivative_exchange_rpc.OrdersHistoryResponse\x12\x96\x01\n\x13StreamOrdersHistory\x12=.injective_derivative_exchange_rpc.StreamOrdersHistoryRequest\x1a>.injective_derivative_exchange_rpc.StreamOrdersHistoryResponse0\x01\x42&Z$/injective_derivative_exchange_rpcpbb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -94,68 +94,74 @@ _globals['_POSITIONSRESPONSE']._serialized_end=5569 _globals['_DERIVATIVEPOSITION']._serialized_start=5572 _globals['_DERIVATIVEPOSITION']._serialized_end=5851 - _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_start=5853 - _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_end=5929 - _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_start=5931 - _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_end=6034 - _globals['_FUNDINGPAYMENTSREQUEST']._serialized_start=6037 - _globals['_FUNDINGPAYMENTSREQUEST']._serialized_end=6170 - _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_start=6173 - _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_end=6326 - _globals['_FUNDINGPAYMENT']._serialized_start=6328 - _globals['_FUNDINGPAYMENT']._serialized_end=6421 - _globals['_FUNDINGRATESREQUEST']._serialized_start=6423 - _globals['_FUNDINGRATESREQUEST']._serialized_end=6510 - _globals['_FUNDINGRATESRESPONSE']._serialized_start=6513 - _globals['_FUNDINGRATESRESPONSE']._serialized_end=6665 - _globals['_FUNDINGRATE']._serialized_start=6667 - _globals['_FUNDINGRATE']._serialized_end=6732 - _globals['_STREAMPOSITIONSREQUEST']._serialized_start=6734 - _globals['_STREAMPOSITIONSREQUEST']._serialized_end=6844 - _globals['_STREAMPOSITIONSRESPONSE']._serialized_start=6846 - _globals['_STREAMPOSITIONSRESPONSE']._serialized_end=6963 - _globals['_STREAMORDERSREQUEST']._serialized_start=6966 - _globals['_STREAMORDERSREQUEST']._serialized_end=7270 - _globals['_STREAMORDERSRESPONSE']._serialized_start=7273 - _globals['_STREAMORDERSRESPONSE']._serialized_end=7410 - _globals['_TRADESREQUEST']._serialized_start=7413 - _globals['_TRADESREQUEST']._serialized_end=7705 - _globals['_TRADESRESPONSE']._serialized_start=7708 - _globals['_TRADESRESPONSE']._serialized_end=7851 - _globals['_DERIVATIVETRADE']._serialized_start=7854 - _globals['_DERIVATIVETRADE']._serialized_end=8189 - _globals['_POSITIONDELTA']._serialized_start=8191 - _globals['_POSITIONDELTA']._serialized_end=8310 - _globals['_TRADESV2REQUEST']._serialized_start=8313 - _globals['_TRADESV2REQUEST']._serialized_end=8607 - _globals['_TRADESV2RESPONSE']._serialized_start=8610 - _globals['_TRADESV2RESPONSE']._serialized_end=8755 - _globals['_STREAMTRADESREQUEST']._serialized_start=8758 - _globals['_STREAMTRADESREQUEST']._serialized_end=9056 - _globals['_STREAMTRADESRESPONSE']._serialized_start=9059 - _globals['_STREAMTRADESRESPONSE']._serialized_end=9191 - _globals['_STREAMTRADESV2REQUEST']._serialized_start=9194 - _globals['_STREAMTRADESV2REQUEST']._serialized_end=9494 - _globals['_STREAMTRADESV2RESPONSE']._serialized_start=9497 - _globals['_STREAMTRADESV2RESPONSE']._serialized_end=9631 - _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_start=9633 - _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_end=9733 - _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_start=9736 - _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_end=9898 - _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_start=9901 - _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_end=10044 - _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_start=10046 - _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_end=10144 - _globals['_ORDERSHISTORYREQUEST']._serialized_start=10147 - _globals['_ORDERSHISTORYREQUEST']._serialized_end=10482 - _globals['_ORDERSHISTORYRESPONSE']._serialized_start=10485 - _globals['_ORDERSHISTORYRESPONSE']._serialized_end=10642 - _globals['_DERIVATIVEORDERHISTORY']._serialized_start=10645 - _globals['_DERIVATIVEORDERHISTORY']._serialized_end=11090 - _globals['_STREAMORDERSHISTORYREQUEST']._serialized_start=11093 - _globals['_STREAMORDERSHISTORYREQUEST']._serialized_end=11243 - _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_start=11246 - _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_end=11392 - _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_start=11395 - _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_end=14665 + _globals['_POSITIONSV2REQUEST']._serialized_start=5854 + _globals['_POSITIONSV2REQUEST']._serialized_end=6058 + _globals['_POSITIONSV2RESPONSE']._serialized_start=6061 + _globals['_POSITIONSV2RESPONSE']._serialized_end=6217 + _globals['_DERIVATIVEPOSITIONV2']._serialized_start=6220 + _globals['_DERIVATIVEPOSITIONV2']._serialized_end=6441 + _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_start=6443 + _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_end=6519 + _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_start=6521 + _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_end=6624 + _globals['_FUNDINGPAYMENTSREQUEST']._serialized_start=6627 + _globals['_FUNDINGPAYMENTSREQUEST']._serialized_end=6760 + _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_start=6763 + _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_end=6916 + _globals['_FUNDINGPAYMENT']._serialized_start=6918 + _globals['_FUNDINGPAYMENT']._serialized_end=7011 + _globals['_FUNDINGRATESREQUEST']._serialized_start=7013 + _globals['_FUNDINGRATESREQUEST']._serialized_end=7100 + _globals['_FUNDINGRATESRESPONSE']._serialized_start=7103 + _globals['_FUNDINGRATESRESPONSE']._serialized_end=7255 + _globals['_FUNDINGRATE']._serialized_start=7257 + _globals['_FUNDINGRATE']._serialized_end=7322 + _globals['_STREAMPOSITIONSREQUEST']._serialized_start=7324 + _globals['_STREAMPOSITIONSREQUEST']._serialized_end=7434 + _globals['_STREAMPOSITIONSRESPONSE']._serialized_start=7436 + _globals['_STREAMPOSITIONSRESPONSE']._serialized_end=7553 + _globals['_STREAMORDERSREQUEST']._serialized_start=7556 + _globals['_STREAMORDERSREQUEST']._serialized_end=7860 + _globals['_STREAMORDERSRESPONSE']._serialized_start=7863 + _globals['_STREAMORDERSRESPONSE']._serialized_end=8000 + _globals['_TRADESREQUEST']._serialized_start=8003 + _globals['_TRADESREQUEST']._serialized_end=8295 + _globals['_TRADESRESPONSE']._serialized_start=8298 + _globals['_TRADESRESPONSE']._serialized_end=8441 + _globals['_DERIVATIVETRADE']._serialized_start=8444 + _globals['_DERIVATIVETRADE']._serialized_end=8779 + _globals['_POSITIONDELTA']._serialized_start=8781 + _globals['_POSITIONDELTA']._serialized_end=8900 + _globals['_TRADESV2REQUEST']._serialized_start=8903 + _globals['_TRADESV2REQUEST']._serialized_end=9197 + _globals['_TRADESV2RESPONSE']._serialized_start=9200 + _globals['_TRADESV2RESPONSE']._serialized_end=9345 + _globals['_STREAMTRADESREQUEST']._serialized_start=9348 + _globals['_STREAMTRADESREQUEST']._serialized_end=9646 + _globals['_STREAMTRADESRESPONSE']._serialized_start=9649 + _globals['_STREAMTRADESRESPONSE']._serialized_end=9781 + _globals['_STREAMTRADESV2REQUEST']._serialized_start=9784 + _globals['_STREAMTRADESV2REQUEST']._serialized_end=10084 + _globals['_STREAMTRADESV2RESPONSE']._serialized_start=10087 + _globals['_STREAMTRADESV2RESPONSE']._serialized_end=10221 + _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_start=10223 + _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_end=10323 + _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_start=10326 + _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_end=10488 + _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_start=10491 + _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_end=10634 + _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_start=10636 + _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_end=10734 + _globals['_ORDERSHISTORYREQUEST']._serialized_start=10737 + _globals['_ORDERSHISTORYREQUEST']._serialized_end=11072 + _globals['_ORDERSHISTORYRESPONSE']._serialized_start=11075 + _globals['_ORDERSHISTORYRESPONSE']._serialized_end=11232 + _globals['_DERIVATIVEORDERHISTORY']._serialized_start=11235 + _globals['_DERIVATIVEORDERHISTORY']._serialized_end=11680 + _globals['_STREAMORDERSHISTORYREQUEST']._serialized_start=11683 + _globals['_STREAMORDERSHISTORYREQUEST']._serialized_end=11833 + _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_start=11836 + _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_end=11982 + _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_start=11985 + _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_end=15381 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2_grpc.py b/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2_grpc.py index f6336cc3..352b540a 100644 --- a/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2_grpc.py +++ b/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2_grpc.py @@ -71,6 +71,11 @@ def __init__(self, channel): request_serializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsRequest.SerializeToString, response_deserializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsResponse.FromString, ) + self.PositionsV2 = channel.unary_unary( + '/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/PositionsV2', + request_serializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsV2Request.SerializeToString, + response_deserializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsV2Response.FromString, + ) self.LiquidablePositions = channel.unary_unary( '/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/LiquidablePositions', request_serializer=exchange_dot_injective__derivative__exchange__rpc__pb2.LiquidablePositionsRequest.SerializeToString, @@ -220,6 +225,14 @@ def Positions(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def PositionsV2(self, request, context): + """Positions gets the positions for a trader. V2 removed some redundant fields + and had performance improvements + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def LiquidablePositions(self, request, context): """LiquidablePositions gets all the liquidable positions. """ @@ -370,6 +383,11 @@ def add_InjectiveDerivativeExchangeRPCServicer_to_server(servicer, server): request_deserializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsRequest.FromString, response_serializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsResponse.SerializeToString, ), + 'PositionsV2': grpc.unary_unary_rpc_method_handler( + servicer.PositionsV2, + request_deserializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsV2Request.FromString, + response_serializer=exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsV2Response.SerializeToString, + ), 'LiquidablePositions': grpc.unary_unary_rpc_method_handler( servicer.LiquidablePositions, request_deserializer=exchange_dot_injective__derivative__exchange__rpc__pb2.LiquidablePositionsRequest.FromString, @@ -634,6 +652,23 @@ def Positions(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def PositionsV2(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/PositionsV2', + exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsV2Request.SerializeToString, + exchange_dot_injective__derivative__exchange__rpc__pb2.PositionsV2Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def LiquidablePositions(request, target, diff --git a/pyinjective/proto/exchange/injective_portfolio_rpc_pb2.py b/pyinjective/proto/exchange/injective_portfolio_rpc_pb2.py index 9d765df5..4d3218ba 100644 --- a/pyinjective/proto/exchange/injective_portfolio_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_portfolio_rpc_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&exchange/injective_portfolio_rpc.proto\x12\x17injective_portfolio_rpc\"2\n\x17\x41\x63\x63ountPortfolioRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\"Q\n\x18\x41\x63\x63ountPortfolioResponse\x12\x35\n\tportfolio\x18\x01 \x01(\x0b\x32\".injective_portfolio_rpc.Portfolio\"\xe6\x01\n\tPortfolio\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\x12\x34\n\rbank_balances\x18\x02 \x03(\x0b\x32\x1d.injective_portfolio_rpc.Coin\x12\x41\n\x0bsubaccounts\x18\x03 \x03(\x0b\x32,.injective_portfolio_rpc.SubaccountBalanceV2\x12G\n\x13positions_with_upnl\x18\x04 \x03(\x0b\x32*.injective_portfolio_rpc.PositionsWithUPNL\"%\n\x04\x43oin\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\"x\n\x13SubaccountBalanceV2\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\x12;\n\x07\x64\x65posit\x18\x03 \x01(\x0b\x32*.injective_portfolio_rpc.SubaccountDeposit\"E\n\x11SubaccountDeposit\x12\x15\n\rtotal_balance\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\"j\n\x11PositionsWithUPNL\x12=\n\x08position\x18\x01 \x01(\x0b\x32+.injective_portfolio_rpc.DerivativePosition\x12\x16\n\x0eunrealized_pnl\x18\x02 \x01(\t\"\x97\x02\n\x12\x44\x65rivativePosition\x12\x0e\n\x06ticker\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\t\x12\x13\n\x0b\x65ntry_price\x18\x06 \x01(\t\x12\x0e\n\x06margin\x18\x07 \x01(\t\x12\x19\n\x11liquidation_price\x18\x08 \x01(\t\x12\x12\n\nmark_price\x18\t \x01(\t\x12&\n\x1e\x61ggregate_reduce_only_quantity\x18\x0b \x01(\t\x12\x12\n\nupdated_at\x18\x0c \x01(\x12\x12\x12\n\ncreated_at\x18\r \x01(\x12\"]\n\x1dStreamAccountPortfolioRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\"w\n\x1eStreamAccountPortfolioResponse\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\x12\x0e\n\x06\x61mount\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x11\n\ttimestamp\x18\x05 \x01(\x12\x32\x9e\x02\n\x15InjectivePortfolioRPC\x12w\n\x10\x41\x63\x63ountPortfolio\x12\x30.injective_portfolio_rpc.AccountPortfolioRequest\x1a\x31.injective_portfolio_rpc.AccountPortfolioResponse\x12\x8b\x01\n\x16StreamAccountPortfolio\x12\x36.injective_portfolio_rpc.StreamAccountPortfolioRequest\x1a\x37.injective_portfolio_rpc.StreamAccountPortfolioResponse0\x01\x42\x1cZ\x1a/injective_portfolio_rpcpbb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&exchange/injective_portfolio_rpc.proto\x12\x17injective_portfolio_rpc\"2\n\x17\x41\x63\x63ountPortfolioRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\"Q\n\x18\x41\x63\x63ountPortfolioResponse\x12\x35\n\tportfolio\x18\x01 \x01(\x0b\x32\".injective_portfolio_rpc.Portfolio\"\xe6\x01\n\tPortfolio\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\x12\x34\n\rbank_balances\x18\x02 \x03(\x0b\x32\x1d.injective_portfolio_rpc.Coin\x12\x41\n\x0bsubaccounts\x18\x03 \x03(\x0b\x32,.injective_portfolio_rpc.SubaccountBalanceV2\x12G\n\x13positions_with_upnl\x18\x04 \x03(\x0b\x32*.injective_portfolio_rpc.PositionsWithUPNL\"%\n\x04\x43oin\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\t\"x\n\x13SubaccountBalanceV2\x12\x15\n\rsubaccount_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\x12;\n\x07\x64\x65posit\x18\x03 \x01(\x0b\x32*.injective_portfolio_rpc.SubaccountDeposit\"E\n\x11SubaccountDeposit\x12\x15\n\rtotal_balance\x18\x01 \x01(\t\x12\x19\n\x11\x61vailable_balance\x18\x02 \x01(\t\"j\n\x11PositionsWithUPNL\x12=\n\x08position\x18\x01 \x01(\x0b\x32+.injective_portfolio_rpc.DerivativePosition\x12\x16\n\x0eunrealized_pnl\x18\x02 \x01(\t\"\x97\x02\n\x12\x44\x65rivativePosition\x12\x0e\n\x06ticker\x18\x01 \x01(\t\x12\x11\n\tmarket_id\x18\x02 \x01(\t\x12\x15\n\rsubaccount_id\x18\x03 \x01(\t\x12\x11\n\tdirection\x18\x04 \x01(\t\x12\x10\n\x08quantity\x18\x05 \x01(\t\x12\x13\n\x0b\x65ntry_price\x18\x06 \x01(\t\x12\x0e\n\x06margin\x18\x07 \x01(\t\x12\x19\n\x11liquidation_price\x18\x08 \x01(\t\x12\x12\n\nmark_price\x18\t \x01(\t\x12&\n\x1e\x61ggregate_reduce_only_quantity\x18\x0b \x01(\t\x12\x12\n\nupdated_at\x18\x0c \x01(\x12\x12\x12\n\ncreated_at\x18\r \x01(\x12\":\n\x1f\x41\x63\x63ountPortfolioBalancesRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\"a\n AccountPortfolioBalancesResponse\x12=\n\tportfolio\x18\x01 \x01(\x0b\x32*.injective_portfolio_rpc.PortfolioBalances\"\xa5\x01\n\x11PortfolioBalances\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\x12\x34\n\rbank_balances\x18\x02 \x03(\x0b\x32\x1d.injective_portfolio_rpc.Coin\x12\x41\n\x0bsubaccounts\x18\x03 \x03(\x0b\x32,.injective_portfolio_rpc.SubaccountBalanceV2\"]\n\x1dStreamAccountPortfolioRequest\x12\x17\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\t\x12\x15\n\rsubaccount_id\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\"w\n\x1eStreamAccountPortfolioResponse\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t\x12\x0e\n\x06\x61mount\x18\x03 \x01(\t\x12\x15\n\rsubaccount_id\x18\x04 \x01(\t\x12\x11\n\ttimestamp\x18\x05 \x01(\x12\x32\xb0\x03\n\x15InjectivePortfolioRPC\x12w\n\x10\x41\x63\x63ountPortfolio\x12\x30.injective_portfolio_rpc.AccountPortfolioRequest\x1a\x31.injective_portfolio_rpc.AccountPortfolioResponse\x12\x8f\x01\n\x18\x41\x63\x63ountPortfolioBalances\x12\x38.injective_portfolio_rpc.AccountPortfolioBalancesRequest\x1a\x39.injective_portfolio_rpc.AccountPortfolioBalancesResponse\x12\x8b\x01\n\x16StreamAccountPortfolio\x12\x36.injective_portfolio_rpc.StreamAccountPortfolioRequest\x1a\x37.injective_portfolio_rpc.StreamAccountPortfolioResponse0\x01\x42\x1cZ\x1a/injective_portfolio_rpcpbb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -38,10 +38,16 @@ _globals['_POSITIONSWITHUPNL']._serialized_end=773 _globals['_DERIVATIVEPOSITION']._serialized_start=776 _globals['_DERIVATIVEPOSITION']._serialized_end=1055 - _globals['_STREAMACCOUNTPORTFOLIOREQUEST']._serialized_start=1057 - _globals['_STREAMACCOUNTPORTFOLIOREQUEST']._serialized_end=1150 - _globals['_STREAMACCOUNTPORTFOLIORESPONSE']._serialized_start=1152 - _globals['_STREAMACCOUNTPORTFOLIORESPONSE']._serialized_end=1271 - _globals['_INJECTIVEPORTFOLIORPC']._serialized_start=1274 - _globals['_INJECTIVEPORTFOLIORPC']._serialized_end=1560 + _globals['_ACCOUNTPORTFOLIOBALANCESREQUEST']._serialized_start=1057 + _globals['_ACCOUNTPORTFOLIOBALANCESREQUEST']._serialized_end=1115 + _globals['_ACCOUNTPORTFOLIOBALANCESRESPONSE']._serialized_start=1117 + _globals['_ACCOUNTPORTFOLIOBALANCESRESPONSE']._serialized_end=1214 + _globals['_PORTFOLIOBALANCES']._serialized_start=1217 + _globals['_PORTFOLIOBALANCES']._serialized_end=1382 + _globals['_STREAMACCOUNTPORTFOLIOREQUEST']._serialized_start=1384 + _globals['_STREAMACCOUNTPORTFOLIOREQUEST']._serialized_end=1477 + _globals['_STREAMACCOUNTPORTFOLIORESPONSE']._serialized_start=1479 + _globals['_STREAMACCOUNTPORTFOLIORESPONSE']._serialized_end=1598 + _globals['_INJECTIVEPORTFOLIORPC']._serialized_start=1601 + _globals['_INJECTIVEPORTFOLIORPC']._serialized_end=2033 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_portfolio_rpc_pb2_grpc.py b/pyinjective/proto/exchange/injective_portfolio_rpc_pb2_grpc.py index 2e875c38..b1702ddc 100644 --- a/pyinjective/proto/exchange/injective_portfolio_rpc_pb2_grpc.py +++ b/pyinjective/proto/exchange/injective_portfolio_rpc_pb2_grpc.py @@ -20,6 +20,11 @@ def __init__(self, channel): request_serializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioRequest.SerializeToString, response_deserializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioResponse.FromString, ) + self.AccountPortfolioBalances = channel.unary_unary( + '/injective_portfolio_rpc.InjectivePortfolioRPC/AccountPortfolioBalances', + request_serializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioBalancesRequest.SerializeToString, + response_deserializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioBalancesResponse.FromString, + ) self.StreamAccountPortfolio = channel.unary_stream( '/injective_portfolio_rpc.InjectivePortfolioRPC/StreamAccountPortfolio', request_serializer=exchange_dot_injective__portfolio__rpc__pb2.StreamAccountPortfolioRequest.SerializeToString, @@ -38,6 +43,13 @@ def AccountPortfolio(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def AccountPortfolioBalances(self, request, context): + """Provide the account's portfolio balances + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def StreamAccountPortfolio(self, request, context): """Stream the account's portfolio """ @@ -53,6 +65,11 @@ def add_InjectivePortfolioRPCServicer_to_server(servicer, server): request_deserializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioRequest.FromString, response_serializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioResponse.SerializeToString, ), + 'AccountPortfolioBalances': grpc.unary_unary_rpc_method_handler( + servicer.AccountPortfolioBalances, + request_deserializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioBalancesRequest.FromString, + response_serializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioBalancesResponse.SerializeToString, + ), 'StreamAccountPortfolio': grpc.unary_stream_rpc_method_handler( servicer.StreamAccountPortfolio, request_deserializer=exchange_dot_injective__portfolio__rpc__pb2.StreamAccountPortfolioRequest.FromString, @@ -86,6 +103,23 @@ def AccountPortfolio(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def AccountPortfolioBalances(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/injective_portfolio_rpc.InjectivePortfolioRPC/AccountPortfolioBalances', + exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioBalancesRequest.SerializeToString, + exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioBalancesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def StreamAccountPortfolio(request, target, diff --git a/pyinjective/proto/injective/wasmx/v1/events_pb2.py b/pyinjective/proto/injective/wasmx/v1/events_pb2.py deleted file mode 100644 index 98439a5e..00000000 --- a/pyinjective/proto/injective/wasmx/v1/events_pb2.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/wasmx/v1/events.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from injective.wasmx.v1 import wasmx_pb2 as injective_dot_wasmx_dot_v1_dot_wasmx__pb2 -from injective.wasmx.v1 import proposal_pb2 as injective_dot_wasmx_dot_v1_dot_proposal__pb2 -from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1finjective/wasmx/v1/events.proto\x12\x12injective.wasmx.v1\x1a\x1einjective/wasmx/v1/wasmx.proto\x1a!injective/wasmx/v1/proposal.proto\x1a\x14gogoproto/gogo.proto\"r\n\x16\x45ventContractExecution\x12\x18\n\x10\x63ontract_address\x18\x01 \x01(\t\x12\x10\n\x08response\x18\x02 \x01(\x0c\x12\x13\n\x0bother_error\x18\x03 \x01(\t\x12\x17\n\x0f\x65xecution_error\x18\x04 \x01(\t\"\xf9\x01\n\x17\x45ventContractRegistered\x12\x18\n\x10\x63ontract_address\x18\x01 \x01(\t\x12\x11\n\tgas_price\x18\x03 \x01(\x04\x12\x1b\n\x13should_pin_contract\x18\x04 \x01(\x08\x12\x1c\n\x14is_migration_allowed\x18\x05 \x01(\x08\x12\x0f\n\x07\x63ode_id\x18\x06 \x01(\x04\x12\x15\n\radmin_address\x18\x07 \x01(\t\x12\x17\n\x0fgranter_address\x18\x08 \x01(\t\x12\x35\n\x0c\x66unding_mode\x18\t \x01(\x0e\x32\x1f.injective.wasmx.v1.FundingMode\"5\n\x19\x45ventContractDeregistered\x12\x18\n\x10\x63ontract_address\x18\x01 \x01(\tBMZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/typesb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.wasmx.v1.events_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types' - _globals['_EVENTCONTRACTEXECUTION']._serialized_start=144 - _globals['_EVENTCONTRACTEXECUTION']._serialized_end=258 - _globals['_EVENTCONTRACTREGISTERED']._serialized_start=261 - _globals['_EVENTCONTRACTREGISTERED']._serialized_end=510 - _globals['_EVENTCONTRACTDEREGISTERED']._serialized_start=512 - _globals['_EVENTCONTRACTDEREGISTERED']._serialized_end=565 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/wasmx/v1/events_pb2_grpc.py b/pyinjective/proto/injective/wasmx/v1/events_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/injective/wasmx/v1/events_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/injective/wasmx/v1/genesis_pb2.py b/pyinjective/proto/injective/wasmx/v1/genesis_pb2.py deleted file mode 100644 index 458ed453..00000000 --- a/pyinjective/proto/injective/wasmx/v1/genesis_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/wasmx/v1/genesis.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from injective.wasmx.v1 import wasmx_pb2 as injective_dot_wasmx_dot_v1_dot_wasmx__pb2 -from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n injective/wasmx/v1/genesis.proto\x12\x12injective.wasmx.v1\x1a\x1einjective/wasmx/v1/wasmx.proto\x1a\x14gogoproto/gogo.proto\"u\n\x1dRegisteredContractWithAddress\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x43\n\x13registered_contract\x18\x02 \x01(\x0b\x32&.injective.wasmx.v1.RegisteredContract\"\x97\x01\n\x0cGenesisState\x12\x30\n\x06params\x18\x01 \x01(\x0b\x32\x1a.injective.wasmx.v1.ParamsB\x04\xc8\xde\x1f\x00\x12U\n\x14registered_contracts\x18\x02 \x03(\x0b\x32\x31.injective.wasmx.v1.RegisteredContractWithAddressB\x04\xc8\xde\x1f\x00\x42MZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/typesb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.wasmx.v1.genesis_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types' - _GENESISSTATE.fields_by_name['params']._options = None - _GENESISSTATE.fields_by_name['params']._serialized_options = b'\310\336\037\000' - _GENESISSTATE.fields_by_name['registered_contracts']._options = None - _GENESISSTATE.fields_by_name['registered_contracts']._serialized_options = b'\310\336\037\000' - _globals['_REGISTEREDCONTRACTWITHADDRESS']._serialized_start=110 - _globals['_REGISTEREDCONTRACTWITHADDRESS']._serialized_end=227 - _globals['_GENESISSTATE']._serialized_start=230 - _globals['_GENESISSTATE']._serialized_end=381 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/wasmx/v1/genesis_pb2_grpc.py b/pyinjective/proto/injective/wasmx/v1/genesis_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/injective/wasmx/v1/genesis_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/injective/wasmx/v1/proposal_pb2.py b/pyinjective/proto/injective/wasmx/v1/proposal_pb2.py deleted file mode 100644 index 5c0d113c..00000000 --- a/pyinjective/proto/injective/wasmx/v1/proposal_pb2.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/wasmx/v1/proposal.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from cosmwasm.wasm.v1 import proposal_pb2 as cosmwasm_dot_wasm_dot_v1_dot_proposal__pb2 -from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!injective/wasmx/v1/proposal.proto\x12\x12injective.wasmx.v1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1f\x63osmwasm/wasm/v1/proposal.proto\x1a\x14gogoproto/gogo.proto\"\xcf\x01\n#ContractRegistrationRequestProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\\\n\x1d\x63ontract_registration_request\x18\x03 \x01(\x0b\x32/.injective.wasmx.v1.ContractRegistrationRequestB\x04\xc8\xde\x1f\x00:&\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\"\xd5\x01\n(BatchContractRegistrationRequestProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12]\n\x1e\x63ontract_registration_requests\x18\x03 \x03(\x0b\x32/.injective.wasmx.v1.ContractRegistrationRequestB\x04\xc8\xde\x1f\x00:&\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\"\x84\x01\n#BatchContractDeregistrationProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x11\n\tcontracts\x18\x03 \x03(\t:&\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\"\xb0\x02\n\x1b\x43ontractRegistrationRequest\x12\x18\n\x10\x63ontract_address\x18\x01 \x01(\t\x12\x11\n\tgas_limit\x18\x02 \x01(\x04\x12\x11\n\tgas_price\x18\x03 \x01(\x04\x12\x1b\n\x13should_pin_contract\x18\x04 \x01(\x08\x12\x1c\n\x14is_migration_allowed\x18\x05 \x01(\x08\x12\x0f\n\x07\x63ode_id\x18\x06 \x01(\x04\x12\x15\n\radmin_address\x18\x07 \x01(\t\x12\x17\n\x0fgranter_address\x18\x08 \x01(\t\x12\x35\n\x0c\x66unding_mode\x18\t \x01(\x0e\x32\x1f.injective.wasmx.v1.FundingMode:\x1e\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\"\xa2\x01\n\x16\x42\x61tchStoreCodeProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12<\n\tproposals\x18\x03 \x03(\x0b\x32#.cosmwasm.wasm.v1.StoreCodeProposalB\x04\xc8\xde\x1f\x00:&\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content*G\n\x0b\x46undingMode\x12\x0f\n\x0bUnspecified\x10\x00\x12\x0e\n\nSelfFunded\x10\x01\x12\r\n\tGrantOnly\x10\x02\x12\x08\n\x04\x44ual\x10\x03\x42MZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/typesb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.wasmx.v1.proposal_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types' - _CONTRACTREGISTRATIONREQUESTPROPOSAL.fields_by_name['contract_registration_request']._options = None - _CONTRACTREGISTRATIONREQUESTPROPOSAL.fields_by_name['contract_registration_request']._serialized_options = b'\310\336\037\000' - _CONTRACTREGISTRATIONREQUESTPROPOSAL._options = None - _CONTRACTREGISTRATIONREQUESTPROPOSAL._serialized_options = b'\210\240\037\000\350\240\037\000\312\264-\032cosmos.gov.v1beta1.Content' - _BATCHCONTRACTREGISTRATIONREQUESTPROPOSAL.fields_by_name['contract_registration_requests']._options = None - _BATCHCONTRACTREGISTRATIONREQUESTPROPOSAL.fields_by_name['contract_registration_requests']._serialized_options = b'\310\336\037\000' - _BATCHCONTRACTREGISTRATIONREQUESTPROPOSAL._options = None - _BATCHCONTRACTREGISTRATIONREQUESTPROPOSAL._serialized_options = b'\210\240\037\000\350\240\037\000\312\264-\032cosmos.gov.v1beta1.Content' - _BATCHCONTRACTDEREGISTRATIONPROPOSAL._options = None - _BATCHCONTRACTDEREGISTRATIONPROPOSAL._serialized_options = b'\210\240\037\000\350\240\037\000\312\264-\032cosmos.gov.v1beta1.Content' - _CONTRACTREGISTRATIONREQUEST._options = None - _CONTRACTREGISTRATIONREQUEST._serialized_options = b'\312\264-\032cosmos.gov.v1beta1.Content' - _BATCHSTORECODEPROPOSAL.fields_by_name['proposals']._options = None - _BATCHSTORECODEPROPOSAL.fields_by_name['proposals']._serialized_options = b'\310\336\037\000' - _BATCHSTORECODEPROPOSAL._options = None - _BATCHSTORECODEPROPOSAL._serialized_options = b'\210\240\037\000\350\240\037\000\312\264-\032cosmos.gov.v1beta1.Content' - _globals['_FUNDINGMODE']._serialized_start=1172 - _globals['_FUNDINGMODE']._serialized_end=1243 - _globals['_CONTRACTREGISTRATIONREQUESTPROPOSAL']._serialized_start=140 - _globals['_CONTRACTREGISTRATIONREQUESTPROPOSAL']._serialized_end=347 - _globals['_BATCHCONTRACTREGISTRATIONREQUESTPROPOSAL']._serialized_start=350 - _globals['_BATCHCONTRACTREGISTRATIONREQUESTPROPOSAL']._serialized_end=563 - _globals['_BATCHCONTRACTDEREGISTRATIONPROPOSAL']._serialized_start=566 - _globals['_BATCHCONTRACTDEREGISTRATIONPROPOSAL']._serialized_end=698 - _globals['_CONTRACTREGISTRATIONREQUEST']._serialized_start=701 - _globals['_CONTRACTREGISTRATIONREQUEST']._serialized_end=1005 - _globals['_BATCHSTORECODEPROPOSAL']._serialized_start=1008 - _globals['_BATCHSTORECODEPROPOSAL']._serialized_end=1170 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/wasmx/v1/proposal_pb2_grpc.py b/pyinjective/proto/injective/wasmx/v1/proposal_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/injective/wasmx/v1/proposal_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/injective/wasmx/v1/query_pb2.py b/pyinjective/proto/injective/wasmx/v1/query_pb2.py deleted file mode 100644 index 5edd5832..00000000 --- a/pyinjective/proto/injective/wasmx/v1/query_pb2.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/wasmx/v1/query.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from injective.wasmx.v1 import wasmx_pb2 as injective_dot_wasmx_dot_v1_dot_wasmx__pb2 -from injective.wasmx.v1 import genesis_pb2 as injective_dot_wasmx_dot_v1_dot_genesis__pb2 -from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1einjective/wasmx/v1/query.proto\x12\x12injective.wasmx.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1einjective/wasmx/v1/wasmx.proto\x1a injective/wasmx/v1/genesis.proto\x1a\x14gogoproto/gogo.proto\"\x19\n\x17QueryWasmxParamsRequest\"L\n\x18QueryWasmxParamsResponse\x12\x30\n\x06params\x18\x01 \x01(\x0b\x32\x1a.injective.wasmx.v1.ParamsB\x04\xc8\xde\x1f\x00\"\x19\n\x17QueryModuleStateRequest\"K\n\x18QueryModuleStateResponse\x12/\n\x05state\x18\x01 \x01(\x0b\x32 .injective.wasmx.v1.GenesisState\"@\n$QueryContractRegistrationInfoRequest\x12\x18\n\x10\x63ontract_address\x18\x01 \x01(\t\"a\n%QueryContractRegistrationInfoResponse\x12\x38\n\x08\x63ontract\x18\x01 \x01(\x0b\x32&.injective.wasmx.v1.RegisteredContract2\x84\x04\n\x05Query\x12\x8c\x01\n\x0bWasmxParams\x12+.injective.wasmx.v1.QueryWasmxParamsRequest\x1a,.injective.wasmx.v1.QueryWasmxParamsResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/injective/wasmx/v1/params\x12\xd1\x01\n\x18\x43ontractRegistrationInfo\x12\x38.injective.wasmx.v1.QueryContractRegistrationInfoRequest\x1a\x39.injective.wasmx.v1.QueryContractRegistrationInfoResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/injective/wasmx/v1/registration_info/{contract_address}\x12\x97\x01\n\x10WasmxModuleState\x12+.injective.wasmx.v1.QueryModuleStateRequest\x1a,.injective.wasmx.v1.QueryModuleStateResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /injective/wasmx/v1/module_stateBMZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/typesb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.wasmx.v1.query_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types' - _QUERYWASMXPARAMSRESPONSE.fields_by_name['params']._options = None - _QUERYWASMXPARAMSRESPONSE.fields_by_name['params']._serialized_options = b'\310\336\037\000' - _QUERY.methods_by_name['WasmxParams']._options = None - _QUERY.methods_by_name['WasmxParams']._serialized_options = b'\202\323\344\223\002\034\022\032/injective/wasmx/v1/params' - _QUERY.methods_by_name['ContractRegistrationInfo']._options = None - _QUERY.methods_by_name['ContractRegistrationInfo']._serialized_options = b'\202\323\344\223\002:\0228/injective/wasmx/v1/registration_info/{contract_address}' - _QUERY.methods_by_name['WasmxModuleState']._options = None - _QUERY.methods_by_name['WasmxModuleState']._serialized_options = b'\202\323\344\223\002\"\022 /injective/wasmx/v1/module_state' - _globals['_QUERYWASMXPARAMSREQUEST']._serialized_start=172 - _globals['_QUERYWASMXPARAMSREQUEST']._serialized_end=197 - _globals['_QUERYWASMXPARAMSRESPONSE']._serialized_start=199 - _globals['_QUERYWASMXPARAMSRESPONSE']._serialized_end=275 - _globals['_QUERYMODULESTATEREQUEST']._serialized_start=277 - _globals['_QUERYMODULESTATEREQUEST']._serialized_end=302 - _globals['_QUERYMODULESTATERESPONSE']._serialized_start=304 - _globals['_QUERYMODULESTATERESPONSE']._serialized_end=379 - _globals['_QUERYCONTRACTREGISTRATIONINFOREQUEST']._serialized_start=381 - _globals['_QUERYCONTRACTREGISTRATIONINFOREQUEST']._serialized_end=445 - _globals['_QUERYCONTRACTREGISTRATIONINFORESPONSE']._serialized_start=447 - _globals['_QUERYCONTRACTREGISTRATIONINFORESPONSE']._serialized_end=544 - _globals['_QUERY']._serialized_start=547 - _globals['_QUERY']._serialized_end=1063 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/wasmx/v1/query_pb2_grpc.py b/pyinjective/proto/injective/wasmx/v1/query_pb2_grpc.py deleted file mode 100644 index d43e993c..00000000 --- a/pyinjective/proto/injective/wasmx/v1/query_pb2_grpc.py +++ /dev/null @@ -1,138 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from injective.wasmx.v1 import query_pb2 as injective_dot_wasmx_dot_v1_dot_query__pb2 - - -class QueryStub(object): - """Query defines the gRPC querier service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.WasmxParams = channel.unary_unary( - '/injective.wasmx.v1.Query/WasmxParams', - request_serializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryWasmxParamsRequest.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryWasmxParamsResponse.FromString, - ) - self.ContractRegistrationInfo = channel.unary_unary( - '/injective.wasmx.v1.Query/ContractRegistrationInfo', - request_serializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryContractRegistrationInfoRequest.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryContractRegistrationInfoResponse.FromString, - ) - self.WasmxModuleState = channel.unary_unary( - '/injective.wasmx.v1.Query/WasmxModuleState', - request_serializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryModuleStateRequest.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryModuleStateResponse.FromString, - ) - - -class QueryServicer(object): - """Query defines the gRPC querier service. - """ - - def WasmxParams(self, request, context): - """Retrieves wasmx params - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ContractRegistrationInfo(self, request, context): - """Retrieves contract registration info - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WasmxModuleState(self, request, context): - """Retrieves the entire wasmx module's state - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_QueryServicer_to_server(servicer, server): - rpc_method_handlers = { - 'WasmxParams': grpc.unary_unary_rpc_method_handler( - servicer.WasmxParams, - request_deserializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryWasmxParamsRequest.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryWasmxParamsResponse.SerializeToString, - ), - 'ContractRegistrationInfo': grpc.unary_unary_rpc_method_handler( - servicer.ContractRegistrationInfo, - request_deserializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryContractRegistrationInfoRequest.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryContractRegistrationInfoResponse.SerializeToString, - ), - 'WasmxModuleState': grpc.unary_unary_rpc_method_handler( - servicer.WasmxModuleState, - request_deserializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryModuleStateRequest.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_query__pb2.QueryModuleStateResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'injective.wasmx.v1.Query', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class Query(object): - """Query defines the gRPC querier service. - """ - - @staticmethod - def WasmxParams(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Query/WasmxParams', - injective_dot_wasmx_dot_v1_dot_query__pb2.QueryWasmxParamsRequest.SerializeToString, - injective_dot_wasmx_dot_v1_dot_query__pb2.QueryWasmxParamsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ContractRegistrationInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Query/ContractRegistrationInfo', - injective_dot_wasmx_dot_v1_dot_query__pb2.QueryContractRegistrationInfoRequest.SerializeToString, - injective_dot_wasmx_dot_v1_dot_query__pb2.QueryContractRegistrationInfoResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WasmxModuleState(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Query/WasmxModuleState', - injective_dot_wasmx_dot_v1_dot_query__pb2.QueryModuleStateRequest.SerializeToString, - injective_dot_wasmx_dot_v1_dot_query__pb2.QueryModuleStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyinjective/proto/injective/wasmx/v1/tx_pb2.py b/pyinjective/proto/injective/wasmx/v1/tx_pb2.py deleted file mode 100644 index 205467f5..00000000 --- a/pyinjective/proto/injective/wasmx/v1/tx_pb2.py +++ /dev/null @@ -1,77 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/wasmx/v1/tx.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 -from injective.wasmx.v1 import wasmx_pb2 as injective_dot_wasmx_dot_v1_dot_wasmx__pb2 -from injective.wasmx.v1 import proposal_pb2 as injective_dot_wasmx_dot_v1_dot_proposal__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1binjective/wasmx/v1/tx.proto\x12\x12injective.wasmx.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x1einjective/wasmx/v1/wasmx.proto\x1a!injective/wasmx/v1/proposal.proto\"e\n\x18MsgExecuteContractCompat\x12\x0e\n\x06sender\x18\x01 \x01(\t\x12\x10\n\x08\x63ontract\x18\x02 \x01(\t\x12\x0b\n\x03msg\x18\x03 \x01(\t\x12\r\n\x05\x66unds\x18\x04 \x01(\t:\x0b\x82\xe7\xb0*\x06sender\"0\n MsgExecuteContractCompatResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\x8d\x01\n\x11MsgUpdateContract\x12\x0e\n\x06sender\x18\x01 \x01(\t\x12\x18\n\x10\x63ontract_address\x18\x02 \x01(\t\x12\x11\n\tgas_limit\x18\x03 \x01(\x04\x12\x11\n\tgas_price\x18\x04 \x01(\x04\x12\x1b\n\radmin_address\x18\x05 \x01(\tB\x04\xc8\xde\x1f\x01:\x0b\x82\xe7\xb0*\x06sender\"\x1b\n\x19MsgUpdateContractResponse\"L\n\x13MsgActivateContract\x12\x0e\n\x06sender\x18\x01 \x01(\t\x12\x18\n\x10\x63ontract_address\x18\x02 \x01(\t:\x0b\x82\xe7\xb0*\x06sender\"\x1d\n\x1bMsgActivateContractResponse\"N\n\x15MsgDeactivateContract\x12\x0e\n\x06sender\x18\x01 \x01(\t\x12\x18\n\x10\x63ontract_address\x18\x02 \x01(\t:\x0b\x82\xe7\xb0*\x06sender\"\x1f\n\x1dMsgDeactivateContractResponse\"\x80\x01\n\x0fMsgUpdateParams\x12+\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressString\x12\x30\n\x06params\x18\x02 \x01(\x0b\x32\x1a.injective.wasmx.v1.ParamsB\x04\xc8\xde\x1f\x00:\x0e\x82\xe7\xb0*\tauthority\"\x19\n\x17MsgUpdateParamsResponse\"\x90\x01\n\x13MsgRegisterContract\x12\x0e\n\x06sender\x18\x01 \x01(\t\x12\\\n\x1d\x63ontract_registration_request\x18\x02 \x01(\x0b\x32/.injective.wasmx.v1.ContractRegistrationRequestB\x04\xc8\xde\x1f\x00:\x0b\x82\xe7\xb0*\x06sender\"\x1d\n\x1bMsgRegisterContractResponse2\xba\x05\n\x03Msg\x12t\n\x1cUpdateRegistryContractParams\x12%.injective.wasmx.v1.MsgUpdateContract\x1a-.injective.wasmx.v1.MsgUpdateContractResponse\x12t\n\x18\x41\x63tivateRegistryContract\x12\'.injective.wasmx.v1.MsgActivateContract\x1a/.injective.wasmx.v1.MsgActivateContractResponse\x12z\n\x1a\x44\x65\x61\x63tivateRegistryContract\x12).injective.wasmx.v1.MsgDeactivateContract\x1a\x31.injective.wasmx.v1.MsgDeactivateContractResponse\x12{\n\x15\x45xecuteContractCompat\x12,.injective.wasmx.v1.MsgExecuteContractCompat\x1a\x34.injective.wasmx.v1.MsgExecuteContractCompatResponse\x12`\n\x0cUpdateParams\x12#.injective.wasmx.v1.MsgUpdateParams\x1a+.injective.wasmx.v1.MsgUpdateParamsResponse\x12l\n\x10RegisterContract\x12\'.injective.wasmx.v1.MsgRegisterContract\x1a/.injective.wasmx.v1.MsgRegisterContractResponseBMZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/typesb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.wasmx.v1.tx_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types' - _MSGEXECUTECONTRACTCOMPAT._options = None - _MSGEXECUTECONTRACTCOMPAT._serialized_options = b'\202\347\260*\006sender' - _MSGUPDATECONTRACT.fields_by_name['admin_address']._options = None - _MSGUPDATECONTRACT.fields_by_name['admin_address']._serialized_options = b'\310\336\037\001' - _MSGUPDATECONTRACT._options = None - _MSGUPDATECONTRACT._serialized_options = b'\202\347\260*\006sender' - _MSGACTIVATECONTRACT._options = None - _MSGACTIVATECONTRACT._serialized_options = b'\202\347\260*\006sender' - _MSGDEACTIVATECONTRACT._options = None - _MSGDEACTIVATECONTRACT._serialized_options = b'\202\347\260*\006sender' - _MSGUPDATEPARAMS.fields_by_name['authority']._options = None - _MSGUPDATEPARAMS.fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' - _MSGUPDATEPARAMS.fields_by_name['params']._options = None - _MSGUPDATEPARAMS.fields_by_name['params']._serialized_options = b'\310\336\037\000' - _MSGUPDATEPARAMS._options = None - _MSGUPDATEPARAMS._serialized_options = b'\202\347\260*\tauthority' - _MSGREGISTERCONTRACT.fields_by_name['contract_registration_request']._options = None - _MSGREGISTERCONTRACT.fields_by_name['contract_registration_request']._serialized_options = b'\310\336\037\000' - _MSGREGISTERCONTRACT._options = None - _MSGREGISTERCONTRACT._serialized_options = b'\202\347\260*\006sender' - _globals['_MSGEXECUTECONTRACTCOMPAT']._serialized_start=219 - _globals['_MSGEXECUTECONTRACTCOMPAT']._serialized_end=320 - _globals['_MSGEXECUTECONTRACTCOMPATRESPONSE']._serialized_start=322 - _globals['_MSGEXECUTECONTRACTCOMPATRESPONSE']._serialized_end=370 - _globals['_MSGUPDATECONTRACT']._serialized_start=373 - _globals['_MSGUPDATECONTRACT']._serialized_end=514 - _globals['_MSGUPDATECONTRACTRESPONSE']._serialized_start=516 - _globals['_MSGUPDATECONTRACTRESPONSE']._serialized_end=543 - _globals['_MSGACTIVATECONTRACT']._serialized_start=545 - _globals['_MSGACTIVATECONTRACT']._serialized_end=621 - _globals['_MSGACTIVATECONTRACTRESPONSE']._serialized_start=623 - _globals['_MSGACTIVATECONTRACTRESPONSE']._serialized_end=652 - _globals['_MSGDEACTIVATECONTRACT']._serialized_start=654 - _globals['_MSGDEACTIVATECONTRACT']._serialized_end=732 - _globals['_MSGDEACTIVATECONTRACTRESPONSE']._serialized_start=734 - _globals['_MSGDEACTIVATECONTRACTRESPONSE']._serialized_end=765 - _globals['_MSGUPDATEPARAMS']._serialized_start=768 - _globals['_MSGUPDATEPARAMS']._serialized_end=896 - _globals['_MSGUPDATEPARAMSRESPONSE']._serialized_start=898 - _globals['_MSGUPDATEPARAMSRESPONSE']._serialized_end=923 - _globals['_MSGREGISTERCONTRACT']._serialized_start=926 - _globals['_MSGREGISTERCONTRACT']._serialized_end=1070 - _globals['_MSGREGISTERCONTRACTRESPONSE']._serialized_start=1072 - _globals['_MSGREGISTERCONTRACTRESPONSE']._serialized_end=1101 - _globals['_MSG']._serialized_start=1104 - _globals['_MSG']._serialized_end=1802 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/wasmx/v1/tx_pb2_grpc.py b/pyinjective/proto/injective/wasmx/v1/tx_pb2_grpc.py deleted file mode 100644 index fe1b58d0..00000000 --- a/pyinjective/proto/injective/wasmx/v1/tx_pb2_grpc.py +++ /dev/null @@ -1,234 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from injective.wasmx.v1 import tx_pb2 as injective_dot_wasmx_dot_v1_dot_tx__pb2 - - -class MsgStub(object): - """Msg defines the wasmx Msg service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.UpdateRegistryContractParams = channel.unary_unary( - '/injective.wasmx.v1.Msg/UpdateRegistryContractParams', - request_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateContract.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateContractResponse.FromString, - ) - self.ActivateRegistryContract = channel.unary_unary( - '/injective.wasmx.v1.Msg/ActivateRegistryContract', - request_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgActivateContract.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgActivateContractResponse.FromString, - ) - self.DeactivateRegistryContract = channel.unary_unary( - '/injective.wasmx.v1.Msg/DeactivateRegistryContract', - request_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgDeactivateContract.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgDeactivateContractResponse.FromString, - ) - self.ExecuteContractCompat = channel.unary_unary( - '/injective.wasmx.v1.Msg/ExecuteContractCompat', - request_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgExecuteContractCompat.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgExecuteContractCompatResponse.FromString, - ) - self.UpdateParams = channel.unary_unary( - '/injective.wasmx.v1.Msg/UpdateParams', - request_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateParams.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, - ) - self.RegisterContract = channel.unary_unary( - '/injective.wasmx.v1.Msg/RegisterContract', - request_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgRegisterContract.SerializeToString, - response_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgRegisterContractResponse.FromString, - ) - - -class MsgServicer(object): - """Msg defines the wasmx Msg service. - """ - - def UpdateRegistryContractParams(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ActivateRegistryContract(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeactivateRegistryContract(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExecuteContractCompat(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateParams(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RegisterContract(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MsgServicer_to_server(servicer, server): - rpc_method_handlers = { - 'UpdateRegistryContractParams': grpc.unary_unary_rpc_method_handler( - servicer.UpdateRegistryContractParams, - request_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateContract.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateContractResponse.SerializeToString, - ), - 'ActivateRegistryContract': grpc.unary_unary_rpc_method_handler( - servicer.ActivateRegistryContract, - request_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgActivateContract.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgActivateContractResponse.SerializeToString, - ), - 'DeactivateRegistryContract': grpc.unary_unary_rpc_method_handler( - servicer.DeactivateRegistryContract, - request_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgDeactivateContract.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgDeactivateContractResponse.SerializeToString, - ), - 'ExecuteContractCompat': grpc.unary_unary_rpc_method_handler( - servicer.ExecuteContractCompat, - request_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgExecuteContractCompat.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgExecuteContractCompatResponse.SerializeToString, - ), - 'UpdateParams': grpc.unary_unary_rpc_method_handler( - servicer.UpdateParams, - request_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateParams.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, - ), - 'RegisterContract': grpc.unary_unary_rpc_method_handler( - servicer.RegisterContract, - request_deserializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgRegisterContract.FromString, - response_serializer=injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgRegisterContractResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'injective.wasmx.v1.Msg', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class Msg(object): - """Msg defines the wasmx Msg service. - """ - - @staticmethod - def UpdateRegistryContractParams(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Msg/UpdateRegistryContractParams', - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateContract.SerializeToString, - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateContractResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ActivateRegistryContract(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Msg/ActivateRegistryContract', - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgActivateContract.SerializeToString, - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgActivateContractResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeactivateRegistryContract(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Msg/DeactivateRegistryContract', - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgDeactivateContract.SerializeToString, - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgDeactivateContractResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExecuteContractCompat(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Msg/ExecuteContractCompat', - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgExecuteContractCompat.SerializeToString, - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgExecuteContractCompatResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateParams(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Msg/UpdateParams', - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateParams.SerializeToString, - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RegisterContract(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/injective.wasmx.v1.Msg/RegisterContract', - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgRegisterContract.SerializeToString, - injective_dot_wasmx_dot_v1_dot_tx__pb2.MsgRegisterContractResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyinjective/proto/injective/wasmx/v1/wasmx_pb2.py b/pyinjective/proto/injective/wasmx/v1/wasmx_pb2.py deleted file mode 100644 index 707f0df4..00000000 --- a/pyinjective/proto/injective/wasmx/v1/wasmx_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/wasmx/v1/wasmx.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from injective.wasmx.v1 import proposal_pb2 as injective_dot_wasmx_dot_v1_dot_proposal__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1einjective/wasmx/v1/wasmx.proto\x12\x12injective.wasmx.v1\x1a\x14gogoproto/gogo.proto\x1a!injective/wasmx/v1/proposal.proto\"\x86\x01\n\x06Params\x12\x1c\n\x14is_execution_enabled\x18\x01 \x01(\x08\x12!\n\x19max_begin_block_total_gas\x18\x02 \x01(\x04\x12\x1e\n\x16max_contract_gas_limit\x18\x03 \x01(\x04\x12\x15\n\rmin_gas_price\x18\x04 \x01(\x04:\x04\xe8\xa0\x1f\x01\"\xde\x01\n\x12RegisteredContract\x12\x11\n\tgas_limit\x18\x01 \x01(\x04\x12\x11\n\tgas_price\x18\x02 \x01(\x04\x12\x15\n\ris_executable\x18\x03 \x01(\x08\x12\x15\n\x07\x63ode_id\x18\x04 \x01(\x04\x42\x04\xc8\xde\x1f\x01\x12\x1b\n\radmin_address\x18\x05 \x01(\tB\x04\xc8\xde\x1f\x01\x12\x1d\n\x0fgranter_address\x18\x06 \x01(\tB\x04\xc8\xde\x1f\x01\x12\x32\n\tfund_mode\x18\x07 \x01(\x0e\x32\x1f.injective.wasmx.v1.FundingMode:\x04\xe8\xa0\x1f\x01\x42MZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/typesb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.wasmx.v1.wasmx_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types' - _PARAMS._options = None - _PARAMS._serialized_options = b'\350\240\037\001' - _REGISTEREDCONTRACT.fields_by_name['code_id']._options = None - _REGISTEREDCONTRACT.fields_by_name['code_id']._serialized_options = b'\310\336\037\001' - _REGISTEREDCONTRACT.fields_by_name['admin_address']._options = None - _REGISTEREDCONTRACT.fields_by_name['admin_address']._serialized_options = b'\310\336\037\001' - _REGISTEREDCONTRACT.fields_by_name['granter_address']._options = None - _REGISTEREDCONTRACT.fields_by_name['granter_address']._serialized_options = b'\310\336\037\001' - _REGISTEREDCONTRACT._options = None - _REGISTEREDCONTRACT._serialized_options = b'\350\240\037\001' - _globals['_PARAMS']._serialized_start=112 - _globals['_PARAMS']._serialized_end=246 - _globals['_REGISTEREDCONTRACT']._serialized_start=249 - _globals['_REGISTEREDCONTRACT']._serialized_end=471 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/wasmx/v1/wasmx_pb2_grpc.py b/pyinjective/proto/injective/wasmx/v1/wasmx_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/injective/wasmx/v1/wasmx_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/tests/client/indexer/configurable_derivative_query_servicer.py b/tests/client/indexer/configurable_derivative_query_servicer.py index 1f03370b..55a437e1 100644 --- a/tests/client/indexer/configurable_derivative_query_servicer.py +++ b/tests/client/indexer/configurable_derivative_query_servicer.py @@ -17,6 +17,7 @@ def __init__(self): self.orderbooks_v2_responses = deque() self.orders_responses = deque() self.positions_responses = deque() + self.positions_v2_responses = deque() self.liquidable_positions_responses = deque() self.funding_payments_responses = deque() self.funding_rates_responses = deque() @@ -63,6 +64,9 @@ async def Orders(self, request: exchange_derivative_pb.OrdersRequest, context=No async def Positions(self, request: exchange_derivative_pb.PositionsRequest, context=None, metadata=None): return self.positions_responses.pop() + async def PositionsV2(self, request: exchange_derivative_pb.PositionsV2Request, context=None, metadata=None): + return self.positions_v2_responses.pop() + async def LiquidablePositions( self, request: exchange_derivative_pb.LiquidablePositionsRequest, context=None, metadata=None ): diff --git a/tests/client/indexer/configurable_portfolio_query_servicer.py b/tests/client/indexer/configurable_portfolio_query_servicer.py index 50d329ca..49e98063 100644 --- a/tests/client/indexer/configurable_portfolio_query_servicer.py +++ b/tests/client/indexer/configurable_portfolio_query_servicer.py @@ -10,6 +10,7 @@ class ConfigurablePortfolioQueryServicer(exchange_portfolio_grpc.InjectivePortfo def __init__(self): super().__init__() self.account_portfolio_responses = deque() + self.account_portfolio_balances_responses = deque() self.stream_account_portfolio_responses = deque() async def AccountPortfolio( @@ -17,6 +18,11 @@ async def AccountPortfolio( ): return self.account_portfolio_responses.pop() + async def AccountPortfolioBalances( + self, request: exchange_portfolio_pb.AccountPortfolioBalancesRequest, context=None, metadata=None + ): + return self.account_portfolio_balances_responses.pop() + async def StreamAccountPortfolio( self, request: exchange_portfolio_pb.StreamAccountPortfolioRequest, context=None, metadata=None ): diff --git a/tests/client/indexer/grpc/test_indexer_grpc_account_api.py b/tests/client/indexer/grpc/test_indexer_grpc_account_api.py index 8466c29b..895e35c0 100644 --- a/tests/client/indexer/grpc/test_indexer_grpc_account_api.py +++ b/tests/client/indexer/grpc/test_indexer_grpc_account_api.py @@ -77,6 +77,8 @@ async def test_order_states( quantity_remaining="1000000000000000", created_at=1669998526840, updated_at=1670919410587, + price="0.000000000000001", + margin="", ) account_servicer.order_states_responses.append( exchange_accounts_pb.OrderStatesResponse(spot_order_states=[order_state]) @@ -102,6 +104,8 @@ async def test_order_states( "quantityRemaining": order_state.quantity_remaining, "createdAt": str(order_state.created_at), "updatedAt": str(order_state.updated_at), + "price": (order_state.price), + "margin": (order_state.margin), } ], "derivativeOrderStates": [], diff --git a/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py b/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py index 3b61ccfe..21f83f75 100644 --- a/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py +++ b/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py @@ -700,6 +700,78 @@ async def test_fetch_positions( assert result_orders == expected_orders + @pytest.mark.asyncio + async def test_fetch_positions_v2( + self, + derivative_servicer, + ): + position = exchange_derivative_pb.DerivativePositionV2( + ticker="INJ/USDT PERP", + market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", + subaccount_id="0x1383dabde57e5aed55960ee43e158ae7118057d3000000000000000000000000", + direction="short", + quantity="0.070294765766186502", + entry_price="15980281.340438795311756847", + margin="561065.540974", + liquidation_price="23492052.224777", + mark_price="16197000", + updated_at=1700161202147, + ) + + paging = exchange_derivative_pb.Paging(total=5, to=5, count_by_subaccount=10, next=["next1", "next2"]) + setattr(paging, "from", 1) + + derivative_servicer.positions_v2_responses.append( + exchange_derivative_pb.PositionsV2Response( + positions=[position], + paging=paging, + ) + ) + + network = Network.devnet() + channel = grpc.aio.insecure_channel(network.grpc_exchange_endpoint) + + api = IndexerGrpcDerivativeApi(channel=channel, metadata_provider=lambda: self._dummy_metadata_provider()) + api._stub = derivative_servicer + + result_orders = await api.fetch_positions_v2( + market_ids=[position.market_id], + subaccount_id=position.subaccount_id, + direction=position.direction, + subaccount_total_positions=True, + pagination=PaginationOption( + skip=0, + limit=100, + start_time=1699544939364, + end_time=1699744939364, + ), + ) + expected_orders = { + "positions": [ + { + "ticker": position.ticker, + "marketId": position.market_id, + "subaccountId": position.subaccount_id, + "direction": position.direction, + "quantity": position.quantity, + "entryPrice": position.entry_price, + "margin": position.margin, + "liquidationPrice": position.liquidation_price, + "markPrice": position.mark_price, + "updatedAt": str(position.updated_at), + }, + ], + "paging": { + "total": str(paging.total), + "from": getattr(paging, "from"), + "to": paging.to, + "countBySubaccount": str(paging.count_by_subaccount), + "next": paging.next, + }, + } + + assert result_orders == expected_orders + @pytest.mark.asyncio async def test_fetch_liquidable_positions( self, diff --git a/tests/client/indexer/grpc/test_indexer_grpc_portfolio_api.py b/tests/client/indexer/grpc/test_indexer_grpc_portfolio_api.py index 86a50382..ad88d127 100644 --- a/tests/client/indexer/grpc/test_indexer_grpc_portfolio_api.py +++ b/tests/client/indexer/grpc/test_indexer_grpc_portfolio_api.py @@ -113,5 +113,67 @@ async def test_fetch_account_portfolio( assert result_auction == expected_auction + @pytest.mark.asyncio + async def test_fetch_account_portfolio_balances( + self, + portfolio_servicer, + ): + coin = exchange_portfolio_pb.Coin( + denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", + amount="2322098", + ) + subaccount_deposit = exchange_portfolio_pb.SubaccountDeposit( + total_balance="0.170858923182467801", + available_balance="0.170858923182467801", + ) + subaccount_balance = exchange_portfolio_pb.SubaccountBalanceV2( + subaccount_id="0xc7dca7c15c364865f77a4fb67ab11dc95502e6fe000000000000000000000000", + denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", + deposit=subaccount_deposit, + ) + + portfolio = exchange_portfolio_pb.PortfolioBalances( + account_address="inj1clw20s2uxeyxtam6f7m84vgae92s9eh7vygagt", + bank_balances=[coin], + subaccounts=[subaccount_balance], + ) + + portfolio_servicer.account_portfolio_balances_responses.append( + exchange_portfolio_pb.AccountPortfolioBalancesResponse( + portfolio=portfolio, + ) + ) + + network = Network.devnet() + channel = grpc.aio.insecure_channel(network.grpc_exchange_endpoint) + + api = IndexerGrpcPortfolioApi(channel=channel, metadata_provider=lambda: self._dummy_metadata_provider()) + api._stub = portfolio_servicer + + result_auction = await api.fetch_account_portfolio_balances(account_address=portfolio.account_address) + expected_auction = { + "portfolio": { + "accountAddress": portfolio.account_address, + "bankBalances": [ + { + "denom": coin.denom, + "amount": coin.amount, + } + ], + "subaccounts": [ + { + "subaccountId": subaccount_balance.subaccount_id, + "denom": subaccount_balance.denom, + "deposit": { + "totalBalance": subaccount_deposit.total_balance, + "availableBalance": subaccount_deposit.available_balance, + }, + } + ], + } + } + + assert result_auction == expected_auction + async def _dummy_metadata_provider(self): return None diff --git a/tests/test_async_client_deprecation_warnings.py b/tests/test_async_client_deprecation_warnings.py index 13ced627..dae2d807 100644 --- a/tests/test_async_client_deprecation_warnings.py +++ b/tests/test_async_client_deprecation_warnings.py @@ -1160,7 +1160,8 @@ async def test_get_derivative_positions_deprecation_warning( deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] assert len(deprecation_warnings) == 1 assert ( - str(deprecation_warnings[0].message) == "This method is deprecated. Use fetch_derivative_positions instead" + str(deprecation_warnings[0].message) + == "This method is deprecated. Use fetch_derivative_positions_v2 instead" ) @pytest.mark.asyncio @@ -1470,7 +1471,10 @@ async def test_get_account_portfolio_deprecation_warning( deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use fetch_account_portfolio instead" + assert ( + str(deprecation_warnings[0].message) + == "This method is deprecated. Use fetch_account_portfolio_balances instead" + ) @pytest.mark.asyncio async def test_stream_account_portfolio_deprecation_warning(