# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: nibiru/perp/v2/query.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
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
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from nibiru_proto.nibiru.perp.v2 import state_pb2 as nibiru_dot_perp_dot_v2_dot_state__pb2
from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1anibiru/perp/v2/query.proto\x12\x0enibiru.perp.v2\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1anibiru/perp/v2/state.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"/\n\x15QueryPositionsRequest\x12\x16\n\x06trader\x18\x01 \x01(\tR\x06trader\"c\n\x16QueryPositionsResponse\x12I\n\tpositions\x18\x01 \x03(\x0b\x32%.nibiru.perp.v2.QueryPositionResponseB\x04\xc8\xde\x1f\x00R\tpositions\"}\n\x14QueryPositionRequest\x12M\n\x04pair\x18\x01 \x01(\tB9\xc8\xde\x1f\x00\xda\xde\x1f\x31github.com/NibiruChain/nibiru/x/common/asset.PairR\x04pair\x12\x16\n\x06trader\x18\x02 \x01(\tR\x06trader\"\xda\x02\n\x15QueryPositionResponse\x12:\n\x08position\x18\x01 \x01(\x0b\x32\x18.nibiru.perp.v2.PositionB\x04\xc8\xde\x1f\x00R\x08position\x12[\n\x11position_notional\x18\x02 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x10positionNotional\x12U\n\x0eunrealized_pnl\x18\x03 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\runrealizedPnl\x12Q\n\x0cmargin_ratio\x18\x04 \x01(\tB.\xc8\xde\x1f\x00\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.DecR\x0bmarginRatio\"\x1c\n\x1aQueryModuleAccountsRequest\"c\n\x1bQueryModuleAccountsResponse\x12\x44\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\".nibiru.perp.v2.AccountWithBalanceB\x04\xc8\xde\x1f\x00R\x08\x61\x63\x63ounts\"\xa9\x01\n\x12\x41\x63\x63ountWithBalance\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x65\n\x07\x62\x61lance\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x07\x62\x61lance\"n\n\tAmmMarket\x12\x34\n\x06market\x18\x01 \x01(\x0b\x32\x16.nibiru.perp.v2.MarketB\x04\xc8\xde\x1f\x00R\x06market\x12+\n\x03\x61mm\x18\x02 \x01(\x0b\x32\x13.nibiru.perp.v2.AMMB\x04\xc8\xde\x1f\x00R\x03\x61mm\"\x15\n\x13QueryMarketsRequest\"X\n\x14QueryMarketsResponse\x12@\n\x0b\x61mm_markets\x18\x01 \x03(\x0b\x32\x19.nibiru.perp.v2.AmmMarketB\x04\xc8\xde\x1f\x00R\nammMarkets2\x9d\x04\n\x05Query\x12~\n\rQueryPosition\x12$.nibiru.perp.v2.QueryPositionRequest\x1a%.nibiru.perp.v2.QueryPositionResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/nibiru/perp/v2/position\x12\x82\x01\n\x0eQueryPositions\x12%.nibiru.perp.v2.QueryPositionsRequest\x1a&.nibiru.perp.v2.QueryPositionsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/nibiru/perp/v2/positions\x12\x92\x01\n\x0eModuleAccounts\x12*.nibiru.perp.v2.QueryModuleAccountsRequest\x1a+.nibiru.perp.v2.QueryModuleAccountsResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/nibiru/perp/v2/module_accounts\x12z\n\x0cQueryMarkets\x12#.nibiru.perp.v2.QueryMarketsRequest\x1a$.nibiru.perp.v2.QueryMarketsResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/nibiru/perp/v2/marketsB/Z-github.com/NibiruChain/nibiru/x/perp/v2/typesb\x06proto3')

_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nibiru.perp.v2.query_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'Z-github.com/NibiruChain/nibiru/x/perp/v2/types'
  _QUERYPOSITIONSRESPONSE.fields_by_name['positions']._options = None
  _QUERYPOSITIONSRESPONSE.fields_by_name['positions']._serialized_options = b'\310\336\037\000'
  _QUERYPOSITIONREQUEST.fields_by_name['pair']._options = None
  _QUERYPOSITIONREQUEST.fields_by_name['pair']._serialized_options = b'\310\336\037\000\332\336\0371github.com/NibiruChain/nibiru/x/common/asset.Pair'
  _QUERYPOSITIONRESPONSE.fields_by_name['position']._options = None
  _QUERYPOSITIONRESPONSE.fields_by_name['position']._serialized_options = b'\310\336\037\000'
  _QUERYPOSITIONRESPONSE.fields_by_name['position_notional']._options = None
  _QUERYPOSITIONRESPONSE.fields_by_name['position_notional']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _QUERYPOSITIONRESPONSE.fields_by_name['unrealized_pnl']._options = None
  _QUERYPOSITIONRESPONSE.fields_by_name['unrealized_pnl']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _QUERYPOSITIONRESPONSE.fields_by_name['margin_ratio']._options = None
  _QUERYPOSITIONRESPONSE.fields_by_name['margin_ratio']._serialized_options = b'\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec'
  _QUERYMODULEACCOUNTSRESPONSE.fields_by_name['accounts']._options = None
  _QUERYMODULEACCOUNTSRESPONSE.fields_by_name['accounts']._serialized_options = b'\310\336\037\000'
  _ACCOUNTWITHBALANCE.fields_by_name['balance']._options = None
  _ACCOUNTWITHBALANCE.fields_by_name['balance']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins'
  _AMMMARKET.fields_by_name['market']._options = None
  _AMMMARKET.fields_by_name['market']._serialized_options = b'\310\336\037\000'
  _AMMMARKET.fields_by_name['amm']._options = None
  _AMMMARKET.fields_by_name['amm']._serialized_options = b'\310\336\037\000'
  _QUERYMARKETSRESPONSE.fields_by_name['amm_markets']._options = None
  _QUERYMARKETSRESPONSE.fields_by_name['amm_markets']._serialized_options = b'\310\336\037\000'
  _QUERY.methods_by_name['QueryPosition']._options = None
  _QUERY.methods_by_name['QueryPosition']._serialized_options = b'\202\323\344\223\002\032\022\030/nibiru/perp/v2/position'
  _QUERY.methods_by_name['QueryPositions']._options = None
  _QUERY.methods_by_name['QueryPositions']._serialized_options = b'\202\323\344\223\002\033\022\031/nibiru/perp/v2/positions'
  _QUERY.methods_by_name['ModuleAccounts']._options = None
  _QUERY.methods_by_name['ModuleAccounts']._serialized_options = b'\202\323\344\223\002!\022\037/nibiru/perp/v2/module_accounts'
  _QUERY.methods_by_name['QueryMarkets']._options = None
  _QUERY.methods_by_name['QueryMarkets']._serialized_options = b'\202\323\344\223\002\031\022\027/nibiru/perp/v2/markets'
  _QUERYPOSITIONSREQUEST._serialized_start=158
  _QUERYPOSITIONSREQUEST._serialized_end=205
  _QUERYPOSITIONSRESPONSE._serialized_start=207
  _QUERYPOSITIONSRESPONSE._serialized_end=306
  _QUERYPOSITIONREQUEST._serialized_start=308
  _QUERYPOSITIONREQUEST._serialized_end=433
  _QUERYPOSITIONRESPONSE._serialized_start=436
  _QUERYPOSITIONRESPONSE._serialized_end=782
  _QUERYMODULEACCOUNTSREQUEST._serialized_start=784
  _QUERYMODULEACCOUNTSREQUEST._serialized_end=812
  _QUERYMODULEACCOUNTSRESPONSE._serialized_start=814
  _QUERYMODULEACCOUNTSRESPONSE._serialized_end=913
  _ACCOUNTWITHBALANCE._serialized_start=916
  _ACCOUNTWITHBALANCE._serialized_end=1085
  _AMMMARKET._serialized_start=1087
  _AMMMARKET._serialized_end=1197
  _QUERYMARKETSREQUEST._serialized_start=1199
  _QUERYMARKETSREQUEST._serialized_end=1220
  _QUERYMARKETSRESPONSE._serialized_start=1222
  _QUERYMARKETSRESPONSE._serialized_end=1310
  _QUERY._serialized_start=1313
  _QUERY._serialized_end=1854
# @@protoc_insertion_point(module_scope)
