Skip to content

Generated schema for poolmanager/v2/query.proto: 1 service, 2 messages in the x/poolmanager module.

Proto package poolmanager.v2, part of the x/poolmanager module. It declares 1 service, 2 messages. Read the raw source.

Service Query

RPCRequestResponseREST pathDescription
SpotPriceV2SpotPriceRequestSpotPriceResponseGET /osmosis/poolmanager/v2/pools/{pool_id}/pricesSpotPriceV2 defines a gRPC query handler that returns the spot price given a base denomination and a quote denomination. The returned spot price has 36 decimal places. However, some of modules perform sig fig rounding so most of the rightmost decimals can be zeroes.

Messages

SpotPriceRequest

SpotPriceRequest defines the gRPC request structure for a SpotPrice

query.

Field#TypeRuleDescription
pool_id1uint64singular
base_asset_denom2stringsingular
quote_asset_denom3stringsingular

SpotPriceResponse

SpotPriceResponse defines the gRPC response structure for a SpotPrice

query.

Field#TypeRuleDescription
spot_price1stringsingularString of the BigDec. Ex) 10.203uatom

Edit this page on GitHub