Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Fees
- func (*Fees) Descriptor() ([]byte, []int)deprecated
- func (x *Fees) GetBorrowInterestFeesBaseCurrency() string
- func (x *Fees) GetBorrowInterestFeesLiabilityAsset() string
- func (x *Fees) GetFundingFeesBaseCurrency() string
- func (x *Fees) GetFundingFeesLiquidityAsset() string
- func (x *Fees) GetTotalFeesBaseCurrency() string
- func (*Fees) ProtoMessage()
- func (x *Fees) ProtoReflect() protoreflect.Message
- func (x *Fees) Reset()
- func (x *Fees) String() string
- type FundingRateBlock
- func (*FundingRateBlock) Descriptor() ([]byte, []int)deprecated
- func (x *FundingRateBlock) GetBlockHeight() int64
- func (x *FundingRateBlock) GetBlockTime() int64
- func (x *FundingRateBlock) GetFundingAmountLong() string
- func (x *FundingRateBlock) GetFundingAmountShort() string
- func (x *FundingRateBlock) GetFundingRateLong() string
- func (x *FundingRateBlock) GetFundingRateShort() string
- func (*FundingRateBlock) ProtoMessage()
- func (x *FundingRateBlock) ProtoReflect() protoreflect.Message
- func (x *FundingRateBlock) Reset()
- func (x *FundingRateBlock) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetAddressWhitelist() []string
- func (x *GenesisState) GetMtpList() []*MTP
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetPoolList() []*Pool
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type InterestBlock
- func (*InterestBlock) Descriptor() ([]byte, []int)deprecated
- func (x *InterestBlock) GetBlockHeight() int64
- func (x *InterestBlock) GetBlockTime() int64
- func (x *InterestBlock) GetInterestRate() string
- func (*InterestBlock) ProtoMessage()
- func (x *InterestBlock) ProtoReflect() protoreflect.Message
- func (x *InterestBlock) Reset()
- func (x *InterestBlock) String() string
- type IsWhitelistedRequest
- func (*IsWhitelistedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsWhitelistedRequest) GetAddress() string
- func (*IsWhitelistedRequest) ProtoMessage()
- func (x *IsWhitelistedRequest) ProtoReflect() protoreflect.Message
- func (x *IsWhitelistedRequest) Reset()
- func (x *IsWhitelistedRequest) String() string
- type IsWhitelistedResponse
- func (*IsWhitelistedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsWhitelistedResponse) GetAddress() string
- func (x *IsWhitelistedResponse) GetIsWhitelisted() bool
- func (*IsWhitelistedResponse) ProtoMessage()
- func (x *IsWhitelistedResponse) ProtoReflect() protoreflect.Message
- func (x *IsWhitelistedResponse) Reset()
- func (x *IsWhitelistedResponse) String() string
- type LegacyParams
- func (*LegacyParams) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyParams) GetBorrowInterestRateDecrease() string
- func (x *LegacyParams) GetBorrowInterestRateIncrease() string
- func (x *LegacyParams) GetBorrowInterestRateMax() string
- func (x *LegacyParams) GetBorrowInterestRateMin() string
- func (x *LegacyParams) GetEnableTakeProfitCustodyLiabilities() bool
- func (x *LegacyParams) GetFixedFundingRate() string
- func (x *LegacyParams) GetForceCloseFundAddress() string
- func (x *LegacyParams) GetForceCloseFundPercentage() string
- func (x *LegacyParams) GetHealthGainFactor() string
- func (x *LegacyParams) GetIncrementalBorrowInterestPaymentEnabled() bool
- func (x *LegacyParams) GetIncrementalBorrowInterestPaymentFundAddress() string
- func (x *LegacyParams) GetIncrementalBorrowInterestPaymentFundPercentage() string
- func (x *LegacyParams) GetLeverageMax() string
- func (x *LegacyParams) GetMaxLimitOrder() int64
- func (x *LegacyParams) GetMaxOpenPositions() int64
- func (x *LegacyParams) GetMaximumLongTakeProfitPriceRatio() string
- func (x *LegacyParams) GetMaximumShortTakeProfitPriceRatio() string
- func (x *LegacyParams) GetMinimumLongTakeProfitPriceRatio() string
- func (x *LegacyParams) GetPerpetualSwapFee() string
- func (x *LegacyParams) GetPoolOpenThreshold() string
- func (x *LegacyParams) GetSafetyFactor() string
- func (x *LegacyParams) GetWeightBreakingFeeFactor() string
- func (x *LegacyParams) GetWhitelistingEnabled() bool
- func (*LegacyParams) ProtoMessage()
- func (x *LegacyParams) ProtoReflect() protoreflect.Message
- func (x *LegacyParams) Reset()
- func (x *LegacyParams) String() string
- type MTP
- func (*MTP) Descriptor() ([]byte, []int)deprecated
- func (x *MTP) GetAddress() string
- func (x *MTP) GetAmmPoolId() uint64
- func (x *MTP) GetBorrowInterestPaidCustody() string
- func (x *MTP) GetBorrowInterestUnpaidLiability() string
- func (x *MTP) GetCollateral() string
- func (x *MTP) GetCollateralAsset() string
- func (x *MTP) GetCustody() string
- func (x *MTP) GetCustodyAsset() string
- func (x *MTP) GetFundingFeePaidCustody() string
- func (x *MTP) GetFundingFeeReceivedCustody() string
- func (x *MTP) GetId() uint64
- func (x *MTP) GetLastFundingCalcBlock() uint64
- func (x *MTP) GetLastFundingCalcTime() uint64
- func (x *MTP) GetLastInterestCalcBlock() uint64
- func (x *MTP) GetLastInterestCalcTime() uint64
- func (x *MTP) GetLiabilities() string
- func (x *MTP) GetLiabilitiesAsset() string
- func (x *MTP) GetMtpHealth() string
- func (x *MTP) GetOpenPrice() string
- func (x *MTP) GetPosition() Position
- func (x *MTP) GetStopLossPrice() string
- func (x *MTP) GetTakeProfitBorrowFactor() string
- func (x *MTP) GetTakeProfitCustody() string
- func (x *MTP) GetTakeProfitLiabilities() string
- func (x *MTP) GetTakeProfitPrice() string
- func (x *MTP) GetTradingAsset() string
- func (*MTP) ProtoMessage()
- func (x *MTP) ProtoReflect() protoreflect.Message
- func (x *MTP) Reset()
- func (x *MTP) String() string
- type MTPRequest
- type MTPResponse
- type MsgClient
- type MsgClose
- func (*MsgClose) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClose) GetAmount() string
- func (x *MsgClose) GetCreator() string
- func (x *MsgClose) GetId() uint64
- func (*MsgClose) ProtoMessage()
- func (x *MsgClose) ProtoReflect() protoreflect.Message
- func (x *MsgClose) Reset()
- func (x *MsgClose) String() string
- type MsgClosePositions
- func (*MsgClosePositions) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClosePositions) GetCreator() string
- func (x *MsgClosePositions) GetLiquidate() []*PositionRequest
- func (x *MsgClosePositions) GetStopLoss() []*PositionRequest
- func (x *MsgClosePositions) GetTakeProfit() []*PositionRequest
- func (*MsgClosePositions) ProtoMessage()
- func (x *MsgClosePositions) ProtoReflect() protoreflect.Message
- func (x *MsgClosePositions) Reset()
- func (x *MsgClosePositions) String() string
- type MsgClosePositionsResponse
- type MsgCloseResponse
- func (*MsgCloseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCloseResponse) GetAmount() string
- func (x *MsgCloseResponse) GetId() uint64
- func (*MsgCloseResponse) ProtoMessage()
- func (x *MsgCloseResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCloseResponse) Reset()
- func (x *MsgCloseResponse) String() string
- type MsgDewhitelist
- func (*MsgDewhitelist) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDewhitelist) GetAuthority() string
- func (x *MsgDewhitelist) GetWhitelistedAddress() string
- func (*MsgDewhitelist) ProtoMessage()
- func (x *MsgDewhitelist) ProtoReflect() protoreflect.Message
- func (x *MsgDewhitelist) Reset()
- func (x *MsgDewhitelist) String() string
- type MsgDewhitelistResponse
- type MsgOpen
- func (*MsgOpen) Descriptor() ([]byte, []int)deprecated
- func (x *MsgOpen) GetCollateral() *v1beta1.Coin
- func (x *MsgOpen) GetCreator() string
- func (x *MsgOpen) GetLeverage() string
- func (x *MsgOpen) GetPoolId() uint64
- func (x *MsgOpen) GetPosition() Position
- func (x *MsgOpen) GetStopLossPrice() string
- func (x *MsgOpen) GetTakeProfitPrice() string
- func (x *MsgOpen) GetTradingAsset() string
- func (*MsgOpen) ProtoMessage()
- func (x *MsgOpen) ProtoReflect() protoreflect.Message
- func (x *MsgOpen) Reset()
- func (x *MsgOpen) String() string
- type MsgOpenResponse
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type MsgUpdateStopLoss
- func (*MsgUpdateStopLoss) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateStopLoss) GetCreator() string
- func (x *MsgUpdateStopLoss) GetId() uint64
- func (x *MsgUpdateStopLoss) GetPrice() string
- func (*MsgUpdateStopLoss) ProtoMessage()
- func (x *MsgUpdateStopLoss) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateStopLoss) Reset()
- func (x *MsgUpdateStopLoss) String() string
- type MsgUpdateStopLossResponse
- type MsgUpdateTakeProfitPrice
- func (*MsgUpdateTakeProfitPrice) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateTakeProfitPrice) GetCreator() string
- func (x *MsgUpdateTakeProfitPrice) GetId() uint64
- func (x *MsgUpdateTakeProfitPrice) GetPrice() string
- func (*MsgUpdateTakeProfitPrice) ProtoMessage()
- func (x *MsgUpdateTakeProfitPrice) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateTakeProfitPrice) Reset()
- func (x *MsgUpdateTakeProfitPrice) String() string
- type MsgUpdateTakeProfitPriceResponse
- func (*MsgUpdateTakeProfitPriceResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgUpdateTakeProfitPriceResponse) ProtoMessage()
- func (x *MsgUpdateTakeProfitPriceResponse) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateTakeProfitPriceResponse) Reset()
- func (x *MsgUpdateTakeProfitPriceResponse) String() string
- type MsgWhitelist
- func (*MsgWhitelist) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWhitelist) GetAuthority() string
- func (x *MsgWhitelist) GetWhitelistedAddress() string
- func (*MsgWhitelist) ProtoMessage()
- func (x *MsgWhitelist) ProtoReflect() protoreflect.Message
- func (x *MsgWhitelist) Reset()
- func (x *MsgWhitelist) String() string
- type MsgWhitelistResponse
- type MtpAndPrice
- func (*MtpAndPrice) Descriptor() ([]byte, []int)deprecated
- func (x *MtpAndPrice) GetEffectiveLeverage() string
- func (x *MtpAndPrice) GetFees() *Fees
- func (x *MtpAndPrice) GetLiquidationPrice() string
- func (x *MtpAndPrice) GetMtp() *MTP
- func (x *MtpAndPrice) GetPnl() *v1beta1.Coin
- func (x *MtpAndPrice) GetTradingAssetPrice() string
- func (*MtpAndPrice) ProtoMessage()
- func (x *MtpAndPrice) ProtoReflect() protoreflect.Message
- func (x *MtpAndPrice) Reset()
- func (x *MtpAndPrice) String() string
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetBorrowInterestPaymentEnabled() bool
- func (x *Params) GetBorrowInterestPaymentFundAddress() string
- func (x *Params) GetBorrowInterestPaymentFundPercentage() string
- func (x *Params) GetBorrowInterestRateDecrease() string
- func (x *Params) GetBorrowInterestRateIncrease() string
- func (x *Params) GetBorrowInterestRateMax() string
- func (x *Params) GetBorrowInterestRateMin() string
- func (x *Params) GetEnableTakeProfitCustodyLiabilities() bool
- func (x *Params) GetFixedFundingRate() string
- func (x *Params) GetHealthGainFactor() string
- func (x *Params) GetLeverageMax() string
- func (x *Params) GetMaxLimitOrder() int64
- func (x *Params) GetMaxOpenPositions() int64
- func (x *Params) GetMaximumLongTakeProfitPriceRatio() string
- func (x *Params) GetMaximumShortTakeProfitPriceRatio() string
- func (x *Params) GetMinimumLongTakeProfitPriceRatio() string
- func (x *Params) GetPerpetualSwapFee() string
- func (x *Params) GetPoolOpenThreshold() string
- func (x *Params) GetSafetyFactor() string
- func (x *Params) GetWeightBreakingFeeFactor() string
- func (x *Params) GetWhitelistingEnabled() bool
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type ParamsRequest
- type ParamsResponse
- type Pool
- func (*Pool) Descriptor() ([]byte, []int)deprecated
- func (x *Pool) GetAmmPoolId() uint64
- func (x *Pool) GetBorrowInterestRate() string
- func (x *Pool) GetFeesCollected() []*v1beta1.Coin
- func (x *Pool) GetFundingRate() string
- func (x *Pool) GetHealth() string
- func (x *Pool) GetLastHeightBorrowInterestRateComputed() int64
- func (x *Pool) GetPoolAssetsLong() []*PoolAsset
- func (x *Pool) GetPoolAssetsShort() []*PoolAsset
- func (*Pool) ProtoMessage()
- func (x *Pool) ProtoReflect() protoreflect.Message
- func (x *Pool) Reset()
- func (x *Pool) String() string
- type PoolAsset
- func (*PoolAsset) Descriptor() ([]byte, []int)deprecated
- func (x *PoolAsset) GetAssetDenom() string
- func (x *PoolAsset) GetCollateral() string
- func (x *PoolAsset) GetCustody() string
- func (x *PoolAsset) GetLiabilities() string
- func (x *PoolAsset) GetTakeProfitCustody() string
- func (x *PoolAsset) GetTakeProfitLiabilities() string
- func (*PoolAsset) ProtoMessage()
- func (x *PoolAsset) ProtoReflect() protoreflect.Message
- func (x *PoolAsset) Reset()
- func (x *PoolAsset) String() string
- type PoolResponse
- func (*PoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PoolResponse) GetAmmPoolId() uint64
- func (x *PoolResponse) GetBorrowInterestRate() string
- func (x *PoolResponse) GetFundingRate() string
- func (x *PoolResponse) GetHealth() string
- func (x *PoolResponse) GetLastHeightBorrowInterestRateComputed() int64
- func (x *PoolResponse) GetLongRate() string
- func (x *PoolResponse) GetNetOpenInterest() string
- func (x *PoolResponse) GetPoolAssetsLong() []*PoolAsset
- func (x *PoolResponse) GetPoolAssetsShort() []*PoolAsset
- func (x *PoolResponse) GetShortRate() string
- func (x *PoolResponse) GetTotalLiabilities() *v1beta1.Coin
- func (x *PoolResponse) GetTotalLongOpenInterest() string
- func (x *PoolResponse) GetTotalShortOpenInterest() string
- func (*PoolResponse) ProtoMessage()
- func (x *PoolResponse) ProtoReflect() protoreflect.Message
- func (x *PoolResponse) Reset()
- func (x *PoolResponse) String() string
- type Position
- type PositionRequest
- func (*PositionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionRequest) GetAddress() string
- func (x *PositionRequest) GetId() uint64
- func (*PositionRequest) ProtoMessage()
- func (x *PositionRequest) ProtoReflect() protoreflect.Message
- func (x *PositionRequest) Reset()
- func (x *PositionRequest) String() string
- type PositionsByPoolRequest
- func (*PositionsByPoolRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsByPoolRequest) GetAmmPoolId() uint64
- func (x *PositionsByPoolRequest) GetPagination() *v1beta11.PageRequest
- func (*PositionsByPoolRequest) ProtoMessage()
- func (x *PositionsByPoolRequest) ProtoReflect() protoreflect.Message
- func (x *PositionsByPoolRequest) Reset()
- func (x *PositionsByPoolRequest) String() string
- type PositionsByPoolResponse
- func (*PositionsByPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsByPoolResponse) GetMtps() []*MtpAndPrice
- func (x *PositionsByPoolResponse) GetPagination() *v1beta11.PageResponse
- func (*PositionsByPoolResponse) ProtoMessage()
- func (x *PositionsByPoolResponse) ProtoReflect() protoreflect.Message
- func (x *PositionsByPoolResponse) Reset()
- func (x *PositionsByPoolResponse) String() string
- type PositionsForAddressRequest
- func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsForAddressRequest) GetAddress() string
- func (x *PositionsForAddressRequest) GetPagination() *v1beta11.PageRequest
- func (*PositionsForAddressRequest) ProtoMessage()
- func (x *PositionsForAddressRequest) ProtoReflect() protoreflect.Message
- func (x *PositionsForAddressRequest) Reset()
- func (x *PositionsForAddressRequest) String() string
- type PositionsForAddressResponse
- func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsForAddressResponse) GetMtps() []*MtpAndPrice
- func (x *PositionsForAddressResponse) GetPagination() *v1beta11.PageResponse
- func (*PositionsForAddressResponse) ProtoMessage()
- func (x *PositionsForAddressResponse) ProtoReflect() protoreflect.Message
- func (x *PositionsForAddressResponse) Reset()
- func (x *PositionsForAddressResponse) String() string
- type PositionsRequest
- func (*PositionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsRequest) GetPagination() *v1beta11.PageRequest
- func (*PositionsRequest) ProtoMessage()
- func (x *PositionsRequest) ProtoReflect() protoreflect.Message
- func (x *PositionsRequest) Reset()
- func (x *PositionsRequest) String() string
- type PositionsResponse
- func (*PositionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsResponse) GetMtps() []*MtpAndPrice
- func (x *PositionsResponse) GetPagination() *v1beta11.PageResponse
- func (*PositionsResponse) ProtoMessage()
- func (x *PositionsResponse) ProtoReflect() protoreflect.Message
- func (x *PositionsResponse) Reset()
- func (x *PositionsResponse) String() string
- type QueryAllPoolRequest
- func (*QueryAllPoolRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllPoolRequest) GetPagination() *v1beta11.PageRequest
- func (*QueryAllPoolRequest) ProtoMessage()
- func (x *QueryAllPoolRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllPoolRequest) Reset()
- func (x *QueryAllPoolRequest) String() string
- type QueryAllPoolResponse
- func (*QueryAllPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllPoolResponse) GetPagination() *v1beta11.PageResponse
- func (x *QueryAllPoolResponse) GetPool() []*PoolResponse
- func (*QueryAllPoolResponse) ProtoMessage()
- func (x *QueryAllPoolResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllPoolResponse) Reset()
- func (x *QueryAllPoolResponse) String() string
- type QueryClient
- type QueryCloseEstimationRequest
- func (*QueryCloseEstimationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCloseEstimationRequest) GetAddress() string
- func (x *QueryCloseEstimationRequest) GetCloseAmount() string
- func (x *QueryCloseEstimationRequest) GetPositionId() uint64
- func (*QueryCloseEstimationRequest) ProtoMessage()
- func (x *QueryCloseEstimationRequest) ProtoReflect() protoreflect.Message
- func (x *QueryCloseEstimationRequest) Reset()
- func (x *QueryCloseEstimationRequest) String() string
- type QueryCloseEstimationResponse
- func (*QueryCloseEstimationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCloseEstimationResponse) GetBorrowInterestUnpaidLiability() *v1beta1.Coin
- func (x *QueryCloseEstimationResponse) GetClosingPrice() string
- func (x *QueryCloseEstimationResponse) GetCollateral() *v1beta1.Coin
- func (x *QueryCloseEstimationResponse) GetCustody() *v1beta1.Coin
- func (x *QueryCloseEstimationResponse) GetLiabilities() *v1beta1.Coin
- func (x *QueryCloseEstimationResponse) GetLiquidationPrice() string
- func (x *QueryCloseEstimationResponse) GetMaxCloseAmount() string
- func (x *QueryCloseEstimationResponse) GetPayingLiabilities() *v1beta1.Coin
- func (x *QueryCloseEstimationResponse) GetPosition() Position
- func (x *QueryCloseEstimationResponse) GetPositionSize() *v1beta1.Coin
- func (x *QueryCloseEstimationResponse) GetPriceImpact() string
- func (x *QueryCloseEstimationResponse) GetReturningAmount() *v1beta1.Coin
- func (x *QueryCloseEstimationResponse) GetSlippage() string
- func (x *QueryCloseEstimationResponse) GetWeightBreakingFee() string
- func (*QueryCloseEstimationResponse) ProtoMessage()
- func (x *QueryCloseEstimationResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCloseEstimationResponse) Reset()
- func (x *QueryCloseEstimationResponse) String() string
- type QueryGetPoolRequest
- func (*QueryGetPoolRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetPoolRequest) GetIndex() uint64
- func (*QueryGetPoolRequest) ProtoMessage()
- func (x *QueryGetPoolRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetPoolRequest) Reset()
- func (x *QueryGetPoolRequest) String() string
- type QueryGetPoolResponse
- func (*QueryGetPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetPoolResponse) GetPool() *PoolResponse
- func (*QueryGetPoolResponse) ProtoMessage()
- func (x *QueryGetPoolResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetPoolResponse) Reset()
- func (x *QueryGetPoolResponse) String() string
- type QueryOpenEstimationRequest
- func (*QueryOpenEstimationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOpenEstimationRequest) GetAddress() string
- func (x *QueryOpenEstimationRequest) GetCollateral() *v1beta1.Coin
- func (x *QueryOpenEstimationRequest) GetLeverage() string
- func (x *QueryOpenEstimationRequest) GetLimitPrice() string
- func (x *QueryOpenEstimationRequest) GetPoolId() uint64
- func (x *QueryOpenEstimationRequest) GetPosition() Position
- func (x *QueryOpenEstimationRequest) GetTakeProfitPrice() string
- func (x *QueryOpenEstimationRequest) GetTradingAsset() string
- func (*QueryOpenEstimationRequest) ProtoMessage()
- func (x *QueryOpenEstimationRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOpenEstimationRequest) Reset()
- func (x *QueryOpenEstimationRequest) String() string
- type QueryOpenEstimationResponse
- func (*QueryOpenEstimationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOpenEstimationResponse) GetAvailableLiquidity() *v1beta1.Coin
- func (x *QueryOpenEstimationResponse) GetBorrowInterestRate() string
- func (x *QueryOpenEstimationResponse) GetCollateral() *v1beta1.Coin
- func (x *QueryOpenEstimationResponse) GetCustody() *v1beta1.Coin
- func (x *QueryOpenEstimationResponse) GetEffectiveLeverage() string
- func (x *QueryOpenEstimationResponse) GetEstimatedPnl() *v1beta1.Coin
- func (x *QueryOpenEstimationResponse) GetFundingRate() string
- func (x *QueryOpenEstimationResponse) GetHourlyInterestRate() string
- func (x *QueryOpenEstimationResponse) GetLiabilities() *v1beta1.Coin
- func (x *QueryOpenEstimationResponse) GetLimitPrice() string
- func (x *QueryOpenEstimationResponse) GetLiquidationPrice() string
- func (x *QueryOpenEstimationResponse) GetOpenPrice() string
- func (x *QueryOpenEstimationResponse) GetPosition() Position
- func (x *QueryOpenEstimationResponse) GetPositionSize() *v1beta1.Coin
- func (x *QueryOpenEstimationResponse) GetPriceImpact() string
- func (x *QueryOpenEstimationResponse) GetSlippage() string
- func (x *QueryOpenEstimationResponse) GetTakeProfitPrice() string
- func (x *QueryOpenEstimationResponse) GetTradingAsset() string
- func (x *QueryOpenEstimationResponse) GetWeightBreakingFee() string
- func (*QueryOpenEstimationResponse) ProtoMessage()
- func (x *QueryOpenEstimationResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOpenEstimationResponse) Reset()
- func (x *QueryOpenEstimationResponse) String() string
- type QueryServer
- type StatusRequest
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetLifetimeMtpCount() uint64
- func (x *StatusResponse) GetOpenMtpCount() uint64
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) Close(context.Context, *MsgClose) (*MsgCloseResponse, error)
- func (UnimplementedMsgServer) ClosePositions(context.Context, *MsgClosePositions) (*MsgClosePositionsResponse, error)
- func (UnimplementedMsgServer) Dewhitelist(context.Context, *MsgDewhitelist) (*MsgDewhitelistResponse, error)
- func (UnimplementedMsgServer) Open(context.Context, *MsgOpen) (*MsgOpenResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (UnimplementedMsgServer) UpdateStopLoss(context.Context, *MsgUpdateStopLoss) (*MsgUpdateStopLossResponse, error)
- func (UnimplementedMsgServer) UpdateTakeProfitPrice(context.Context, *MsgUpdateTakeProfitPrice) (*MsgUpdateTakeProfitPriceResponse, error)
- func (UnimplementedMsgServer) Whitelist(context.Context, *MsgWhitelist) (*MsgWhitelistResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) CloseEstimation(context.Context, *QueryCloseEstimationRequest) (*QueryCloseEstimationResponse, error)
- func (UnimplementedQueryServer) GetPositions(context.Context, *PositionsRequest) (*PositionsResponse, error)
- func (UnimplementedQueryServer) GetPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error)
- func (UnimplementedQueryServer) GetPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
- func (UnimplementedQueryServer) GetStatus(context.Context, *StatusRequest) (*StatusResponse, error)
- func (UnimplementedQueryServer) GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error)
- func (UnimplementedQueryServer) IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error)
- func (UnimplementedQueryServer) MTP(context.Context, *MTPRequest) (*MTPResponse, error)
- func (UnimplementedQueryServer) OpenEstimation(context.Context, *QueryOpenEstimationRequest) (*QueryOpenEstimationResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
- func (UnimplementedQueryServer) Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error)
- func (UnimplementedQueryServer) Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type WhiteList
- type WhitelistRequest
- func (*WhitelistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WhitelistRequest) GetPagination() *v1beta11.PageRequest
- func (*WhitelistRequest) ProtoMessage()
- func (x *WhitelistRequest) ProtoReflect() protoreflect.Message
- func (x *WhitelistRequest) Reset()
- func (x *WhitelistRequest) String() string
- type WhitelistResponse
- func (*WhitelistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WhitelistResponse) GetPagination() *v1beta11.PageResponse
- func (x *WhitelistResponse) GetWhitelist() []string
- func (*WhitelistResponse) ProtoMessage()
- func (x *WhitelistResponse) ProtoReflect() protoreflect.Message
- func (x *WhitelistResponse) Reset()
- func (x *WhitelistResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Position_name = map[int32]string{ 0: "UNSPECIFIED", 1: "LONG", 2: "SHORT", } Position_value = map[string]int32{ "UNSPECIFIED": 0, "LONG": 1, "SHORT": 2, } )
Enum value maps for Position.
var File_elys_perpetual_genesis_proto protoreflect.FileDescriptor
var File_elys_perpetual_params_proto protoreflect.FileDescriptor
var File_elys_perpetual_pool_proto protoreflect.FileDescriptor
var File_elys_perpetual_query_proto protoreflect.FileDescriptor
var File_elys_perpetual_tx_proto protoreflect.FileDescriptor
var File_elys_perpetual_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "elys.perpetual.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Open", Handler: _Msg_Open_Handler, }, { MethodName: "Close", Handler: _Msg_Close_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "Whitelist", Handler: _Msg_Whitelist_Handler, }, { MethodName: "Dewhitelist", Handler: _Msg_Dewhitelist_Handler, }, { MethodName: "UpdateStopLoss", Handler: _Msg_UpdateStopLoss_Handler, }, { MethodName: "ClosePositions", Handler: _Msg_ClosePositions_Handler, }, { MethodName: "UpdateTakeProfitPrice", Handler: _Msg_UpdateTakeProfitPrice_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "elys/perpetual/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "elys.perpetual.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "GetPositions", Handler: _Query_GetPositions_Handler, }, { MethodName: "GetPositionsByPool", Handler: _Query_GetPositionsByPool_Handler, }, { MethodName: "GetStatus", Handler: _Query_GetStatus_Handler, }, { MethodName: "GetPositionsForAddress", Handler: _Query_GetPositionsForAddress_Handler, }, { MethodName: "GetWhitelist", Handler: _Query_GetWhitelist_Handler, }, { MethodName: "IsWhitelisted", Handler: _Query_IsWhitelisted_Handler, }, { MethodName: "Pool", Handler: _Query_Pool_Handler, }, { MethodName: "Pools", Handler: _Query_Pools_Handler, }, { MethodName: "MTP", Handler: _Query_MTP_Handler, }, { MethodName: "OpenEstimation", Handler: _Query_OpenEstimation_Handler, }, { MethodName: "CloseEstimation", Handler: _Query_CloseEstimation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "elys/perpetual/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type Fees ¶
type Fees struct { TotalFeesBaseCurrency string `` /* 128-byte string literal not displayed */ BorrowInterestFeesLiabilityAsset string `` /* 163-byte string literal not displayed */ BorrowInterestFeesBaseCurrency string `` /* 157-byte string literal not displayed */ FundingFeesLiquidityAsset string `` /* 140-byte string literal not displayed */ FundingFeesBaseCurrency string `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Fees) Descriptor
deprecated
func (*Fees) GetBorrowInterestFeesBaseCurrency ¶
func (*Fees) GetBorrowInterestFeesLiabilityAsset ¶
func (*Fees) GetFundingFeesBaseCurrency ¶
func (*Fees) GetFundingFeesLiquidityAsset ¶
func (*Fees) GetTotalFeesBaseCurrency ¶
func (*Fees) ProtoMessage ¶
func (*Fees) ProtoMessage()
func (*Fees) ProtoReflect ¶
func (x *Fees) ProtoReflect() protoreflect.Message
type FundingRateBlock ¶
type FundingRateBlock struct { FundingRateLong string `protobuf:"bytes,1,opt,name=funding_rate_long,json=fundingRateLong,proto3" json:"funding_rate_long,omitempty"` FundingRateShort string `protobuf:"bytes,2,opt,name=funding_rate_short,json=fundingRateShort,proto3" json:"funding_rate_short,omitempty"` FundingAmountShort string `protobuf:"bytes,3,opt,name=funding_amount_short,json=fundingAmountShort,proto3" json:"funding_amount_short,omitempty"` FundingAmountLong string `protobuf:"bytes,4,opt,name=funding_amount_long,json=fundingAmountLong,proto3" json:"funding_amount_long,omitempty"` BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BlockTime int64 `protobuf:"varint,6,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` // contains filtered or unexported fields }
func (*FundingRateBlock) Descriptor
deprecated
func (*FundingRateBlock) Descriptor() ([]byte, []int)
Deprecated: Use FundingRateBlock.ProtoReflect.Descriptor instead.
func (*FundingRateBlock) GetBlockHeight ¶
func (x *FundingRateBlock) GetBlockHeight() int64
func (*FundingRateBlock) GetBlockTime ¶
func (x *FundingRateBlock) GetBlockTime() int64
func (*FundingRateBlock) GetFundingAmountLong ¶
func (x *FundingRateBlock) GetFundingAmountLong() string
func (*FundingRateBlock) GetFundingAmountShort ¶
func (x *FundingRateBlock) GetFundingAmountShort() string
func (*FundingRateBlock) GetFundingRateLong ¶
func (x *FundingRateBlock) GetFundingRateLong() string
func (*FundingRateBlock) GetFundingRateShort ¶
func (x *FundingRateBlock) GetFundingRateShort() string
func (*FundingRateBlock) ProtoMessage ¶
func (*FundingRateBlock) ProtoMessage()
func (*FundingRateBlock) ProtoReflect ¶
func (x *FundingRateBlock) ProtoReflect() protoreflect.Message
func (*FundingRateBlock) Reset ¶
func (x *FundingRateBlock) Reset()
func (*FundingRateBlock) String ¶
func (x *FundingRateBlock) String() string
type GenesisState ¶
type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` PoolList []*Pool `protobuf:"bytes,2,rep,name=pool_list,json=poolList,proto3" json:"pool_list,omitempty"` MtpList []*MTP `protobuf:"bytes,3,rep,name=mtp_list,json=mtpList,proto3" json:"mtp_list,omitempty"` AddressWhitelist []string `protobuf:"bytes,4,rep,name=address_whitelist,json=addressWhitelist,proto3" json:"address_whitelist,omitempty"` // contains filtered or unexported fields }
GenesisState defines the perpetual module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetAddressWhitelist ¶
func (x *GenesisState) GetAddressWhitelist() []string
func (*GenesisState) GetMtpList ¶
func (x *GenesisState) GetMtpList() []*MTP
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetPoolList ¶
func (x *GenesisState) GetPoolList() []*Pool
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type InterestBlock ¶
type InterestBlock struct { InterestRate string `protobuf:"bytes,1,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"` BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BlockTime int64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` // contains filtered or unexported fields }
func (*InterestBlock) Descriptor
deprecated
func (*InterestBlock) Descriptor() ([]byte, []int)
Deprecated: Use InterestBlock.ProtoReflect.Descriptor instead.
func (*InterestBlock) GetBlockHeight ¶
func (x *InterestBlock) GetBlockHeight() int64
func (*InterestBlock) GetBlockTime ¶
func (x *InterestBlock) GetBlockTime() int64
func (*InterestBlock) GetInterestRate ¶
func (x *InterestBlock) GetInterestRate() string
func (*InterestBlock) ProtoMessage ¶
func (*InterestBlock) ProtoMessage()
func (*InterestBlock) ProtoReflect ¶
func (x *InterestBlock) ProtoReflect() protoreflect.Message
func (*InterestBlock) Reset ¶
func (x *InterestBlock) Reset()
func (*InterestBlock) String ¶
func (x *InterestBlock) String() string
type IsWhitelistedRequest ¶
type IsWhitelistedRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*IsWhitelistedRequest) Descriptor
deprecated
func (*IsWhitelistedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsWhitelistedRequest.ProtoReflect.Descriptor instead.
func (*IsWhitelistedRequest) GetAddress ¶
func (x *IsWhitelistedRequest) GetAddress() string
func (*IsWhitelistedRequest) ProtoMessage ¶
func (*IsWhitelistedRequest) ProtoMessage()
func (*IsWhitelistedRequest) ProtoReflect ¶
func (x *IsWhitelistedRequest) ProtoReflect() protoreflect.Message
func (*IsWhitelistedRequest) Reset ¶
func (x *IsWhitelistedRequest) Reset()
func (*IsWhitelistedRequest) String ¶
func (x *IsWhitelistedRequest) String() string
type IsWhitelistedResponse ¶
type IsWhitelistedResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` IsWhitelisted bool `protobuf:"varint,2,opt,name=is_whitelisted,json=isWhitelisted,proto3" json:"is_whitelisted,omitempty"` // contains filtered or unexported fields }
func (*IsWhitelistedResponse) Descriptor
deprecated
func (*IsWhitelistedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsWhitelistedResponse.ProtoReflect.Descriptor instead.
func (*IsWhitelistedResponse) GetAddress ¶
func (x *IsWhitelistedResponse) GetAddress() string
func (*IsWhitelistedResponse) GetIsWhitelisted ¶
func (x *IsWhitelistedResponse) GetIsWhitelisted() bool
func (*IsWhitelistedResponse) ProtoMessage ¶
func (*IsWhitelistedResponse) ProtoMessage()
func (*IsWhitelistedResponse) ProtoReflect ¶
func (x *IsWhitelistedResponse) ProtoReflect() protoreflect.Message
func (*IsWhitelistedResponse) Reset ¶
func (x *IsWhitelistedResponse) Reset()
func (*IsWhitelistedResponse) String ¶
func (x *IsWhitelistedResponse) String() string
type LegacyParams ¶ added in v0.54.0
type LegacyParams struct { LeverageMax string `protobuf:"bytes,1,opt,name=leverage_max,json=leverageMax,proto3" json:"leverage_max,omitempty"` BorrowInterestRateMax string `` /* 128-byte string literal not displayed */ BorrowInterestRateMin string `` /* 128-byte string literal not displayed */ BorrowInterestRateIncrease string `` /* 143-byte string literal not displayed */ BorrowInterestRateDecrease string `` /* 143-byte string literal not displayed */ HealthGainFactor string `protobuf:"bytes,6,opt,name=health_gain_factor,json=healthGainFactor,proto3" json:"health_gain_factor,omitempty"` MaxOpenPositions int64 `protobuf:"varint,7,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"` PoolOpenThreshold string `protobuf:"bytes,8,opt,name=pool_open_threshold,json=poolOpenThreshold,proto3" json:"pool_open_threshold,omitempty"` ForceCloseFundPercentage string `` /* 137-byte string literal not displayed */ ForceCloseFundAddress string `` /* 129-byte string literal not displayed */ IncrementalBorrowInterestPaymentFundPercentage string `` /* 208-byte string literal not displayed */ IncrementalBorrowInterestPaymentFundAddress string `` /* 199-byte string literal not displayed */ SafetyFactor string `protobuf:"bytes,13,opt,name=safety_factor,json=safetyFactor,proto3" json:"safety_factor,omitempty"` IncrementalBorrowInterestPaymentEnabled bool `` /* 186-byte string literal not displayed */ WhitelistingEnabled bool `protobuf:"varint,15,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"` PerpetualSwapFee string `protobuf:"bytes,16,opt,name=perpetual_swap_fee,json=perpetualSwapFee,proto3" json:"perpetual_swap_fee,omitempty"` MaxLimitOrder int64 `protobuf:"varint,17,opt,name=max_limit_order,json=maxLimitOrder,proto3" json:"max_limit_order,omitempty"` FixedFundingRate string `protobuf:"bytes,18,opt,name=fixed_funding_rate,json=fixedFundingRate,proto3" json:"fixed_funding_rate,omitempty"` // minimum value for take_profit_price/current price for long, should be // greater than 1 MinimumLongTakeProfitPriceRatio string `` /* 163-byte string literal not displayed */ // max value for take_profit_price/current price for long, should be greater // than 1 MaximumLongTakeProfitPriceRatio string `` /* 163-byte string literal not displayed */ // max value for take_profit_price/current price for short, should be less // than 1 MaximumShortTakeProfitPriceRatio string `` /* 166-byte string literal not displayed */ // No need for minimumShortTakeProfitPriceRatio as it will be 0, checked in // validate message EnableTakeProfitCustodyLiabilities bool `` /* 171-byte string literal not displayed */ // We create this and send this value to estimate swap ONLY when opening and // closing the position Ideally this value is set to half. When trader open a // position if they receive a weight balance bonus (which is half of weight // breaking fee, ideally) then while closing position they are charged weight // breaking fee. So we just directly apply half weight breaking fee on // perpetual swaps Question: does each need to have separate value of this // because PoolParams.WeightRecoveryFeePortion can be different Also, if // trader has no bonus only fee, then overall we are only applying the fee // half time WeightBreakingFeeFactor string `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
Params defines the parameters for the module.
func (*LegacyParams) Descriptor
deprecated
added in
v0.54.0
func (*LegacyParams) Descriptor() ([]byte, []int)
Deprecated: Use LegacyParams.ProtoReflect.Descriptor instead.
func (*LegacyParams) GetBorrowInterestRateDecrease ¶ added in v0.54.0
func (x *LegacyParams) GetBorrowInterestRateDecrease() string
func (*LegacyParams) GetBorrowInterestRateIncrease ¶ added in v0.54.0
func (x *LegacyParams) GetBorrowInterestRateIncrease() string
func (*LegacyParams) GetBorrowInterestRateMax ¶ added in v0.54.0
func (x *LegacyParams) GetBorrowInterestRateMax() string
func (*LegacyParams) GetBorrowInterestRateMin ¶ added in v0.54.0
func (x *LegacyParams) GetBorrowInterestRateMin() string
func (*LegacyParams) GetEnableTakeProfitCustodyLiabilities ¶ added in v0.54.0
func (x *LegacyParams) GetEnableTakeProfitCustodyLiabilities() bool
func (*LegacyParams) GetFixedFundingRate ¶ added in v0.54.0
func (x *LegacyParams) GetFixedFundingRate() string
func (*LegacyParams) GetForceCloseFundAddress ¶ added in v0.54.0
func (x *LegacyParams) GetForceCloseFundAddress() string
func (*LegacyParams) GetForceCloseFundPercentage ¶ added in v0.54.0
func (x *LegacyParams) GetForceCloseFundPercentage() string
func (*LegacyParams) GetHealthGainFactor ¶ added in v0.54.0
func (x *LegacyParams) GetHealthGainFactor() string
func (*LegacyParams) GetIncrementalBorrowInterestPaymentEnabled ¶ added in v0.54.0
func (x *LegacyParams) GetIncrementalBorrowInterestPaymentEnabled() bool
func (*LegacyParams) GetIncrementalBorrowInterestPaymentFundAddress ¶ added in v0.54.0
func (x *LegacyParams) GetIncrementalBorrowInterestPaymentFundAddress() string
func (*LegacyParams) GetIncrementalBorrowInterestPaymentFundPercentage ¶ added in v0.54.0
func (x *LegacyParams) GetIncrementalBorrowInterestPaymentFundPercentage() string
func (*LegacyParams) GetLeverageMax ¶ added in v0.54.0
func (x *LegacyParams) GetLeverageMax() string
func (*LegacyParams) GetMaxLimitOrder ¶ added in v0.54.0
func (x *LegacyParams) GetMaxLimitOrder() int64
func (*LegacyParams) GetMaxOpenPositions ¶ added in v0.54.0
func (x *LegacyParams) GetMaxOpenPositions() int64
func (*LegacyParams) GetMaximumLongTakeProfitPriceRatio ¶ added in v0.54.0
func (x *LegacyParams) GetMaximumLongTakeProfitPriceRatio() string
func (*LegacyParams) GetMaximumShortTakeProfitPriceRatio ¶ added in v0.54.0
func (x *LegacyParams) GetMaximumShortTakeProfitPriceRatio() string
func (*LegacyParams) GetMinimumLongTakeProfitPriceRatio ¶ added in v0.54.0
func (x *LegacyParams) GetMinimumLongTakeProfitPriceRatio() string
func (*LegacyParams) GetPerpetualSwapFee ¶ added in v0.54.0
func (x *LegacyParams) GetPerpetualSwapFee() string
func (*LegacyParams) GetPoolOpenThreshold ¶ added in v0.54.0
func (x *LegacyParams) GetPoolOpenThreshold() string
func (*LegacyParams) GetSafetyFactor ¶ added in v0.54.0
func (x *LegacyParams) GetSafetyFactor() string
func (*LegacyParams) GetWeightBreakingFeeFactor ¶ added in v0.54.0
func (x *LegacyParams) GetWeightBreakingFeeFactor() string
func (*LegacyParams) GetWhitelistingEnabled ¶ added in v0.54.0
func (x *LegacyParams) GetWhitelistingEnabled() bool
func (*LegacyParams) ProtoMessage ¶ added in v0.54.0
func (*LegacyParams) ProtoMessage()
func (*LegacyParams) ProtoReflect ¶ added in v0.54.0
func (x *LegacyParams) ProtoReflect() protoreflect.Message
func (*LegacyParams) Reset ¶ added in v0.54.0
func (x *LegacyParams) Reset()
func (*LegacyParams) String ¶ added in v0.54.0
func (x *LegacyParams) String() string
type MTP ¶
type MTP struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` CollateralAsset string `protobuf:"bytes,2,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"` TradingAsset string `protobuf:"bytes,3,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` LiabilitiesAsset string `protobuf:"bytes,4,opt,name=liabilities_asset,json=liabilitiesAsset,proto3" json:"liabilities_asset,omitempty"` CustodyAsset string `protobuf:"bytes,5,opt,name=custody_asset,json=custodyAsset,proto3" json:"custody_asset,omitempty"` Collateral string `protobuf:"bytes,6,opt,name=collateral,proto3" json:"collateral,omitempty"` Liabilities string `protobuf:"bytes,7,opt,name=liabilities,proto3" json:"liabilities,omitempty"` BorrowInterestPaidCustody string `` /* 140-byte string literal not displayed */ BorrowInterestUnpaidLiability string `` /* 153-byte string literal not displayed */ Custody string `protobuf:"bytes,11,opt,name=custody,proto3" json:"custody,omitempty"` TakeProfitLiabilities string `` /* 127-byte string literal not displayed */ TakeProfitCustody string `protobuf:"bytes,13,opt,name=take_profit_custody,json=takeProfitCustody,proto3" json:"take_profit_custody,omitempty"` MtpHealth string `protobuf:"bytes,14,opt,name=mtp_health,json=mtpHealth,proto3" json:"mtp_health,omitempty"` Position Position `protobuf:"varint,15,opt,name=position,proto3,enum=elys.perpetual.Position" json:"position,omitempty"` Id uint64 `protobuf:"varint,16,opt,name=id,proto3" json:"id,omitempty"` AmmPoolId uint64 `protobuf:"varint,17,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` TakeProfitPrice string `protobuf:"bytes,18,opt,name=take_profit_price,json=takeProfitPrice,proto3" json:"take_profit_price,omitempty"` TakeProfitBorrowFactor string `` /* 132-byte string literal not displayed */ FundingFeePaidCustody string `` /* 129-byte string literal not displayed */ FundingFeeReceivedCustody string `` /* 141-byte string literal not displayed */ OpenPrice string `protobuf:"bytes,22,opt,name=open_price,json=openPrice,proto3" json:"open_price,omitempty"` StopLossPrice string `protobuf:"bytes,23,opt,name=stop_loss_price,json=stopLossPrice,proto3" json:"stop_loss_price,omitempty"` LastInterestCalcTime uint64 `` /* 127-byte string literal not displayed */ LastInterestCalcBlock uint64 `` /* 130-byte string literal not displayed */ LastFundingCalcTime uint64 `protobuf:"varint,26,opt,name=last_funding_calc_time,json=lastFundingCalcTime,proto3" json:"last_funding_calc_time,omitempty"` LastFundingCalcBlock uint64 `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MTP) Descriptor
deprecated
func (*MTP) GetAddress ¶
func (*MTP) GetAmmPoolId ¶
func (*MTP) GetBorrowInterestPaidCustody ¶
func (*MTP) GetBorrowInterestUnpaidLiability ¶
func (*MTP) GetCollateral ¶
func (*MTP) GetCollateralAsset ¶
func (*MTP) GetCustody ¶
func (*MTP) GetCustodyAsset ¶
func (*MTP) GetFundingFeePaidCustody ¶
func (*MTP) GetFundingFeeReceivedCustody ¶
func (*MTP) GetLastFundingCalcBlock ¶
func (*MTP) GetLastFundingCalcTime ¶
func (*MTP) GetLastInterestCalcBlock ¶
func (*MTP) GetLastInterestCalcTime ¶
func (*MTP) GetLiabilities ¶
func (*MTP) GetLiabilitiesAsset ¶
func (*MTP) GetMtpHealth ¶
func (*MTP) GetOpenPrice ¶
func (*MTP) GetPosition ¶
func (*MTP) GetStopLossPrice ¶
func (*MTP) GetTakeProfitBorrowFactor ¶
func (*MTP) GetTakeProfitCustody ¶
func (*MTP) GetTakeProfitLiabilities ¶
func (*MTP) GetTakeProfitPrice ¶
func (*MTP) GetTradingAsset ¶
func (*MTP) ProtoMessage ¶
func (*MTP) ProtoMessage()
func (*MTP) ProtoReflect ¶
func (x *MTP) ProtoReflect() protoreflect.Message
type MTPRequest ¶
type MTPRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MTPRequest) Descriptor
deprecated
func (*MTPRequest) Descriptor() ([]byte, []int)
Deprecated: Use MTPRequest.ProtoReflect.Descriptor instead.
func (*MTPRequest) GetAddress ¶
func (x *MTPRequest) GetAddress() string
func (*MTPRequest) GetId ¶
func (x *MTPRequest) GetId() uint64
func (*MTPRequest) ProtoMessage ¶
func (*MTPRequest) ProtoMessage()
func (*MTPRequest) ProtoReflect ¶
func (x *MTPRequest) ProtoReflect() protoreflect.Message
func (*MTPRequest) Reset ¶
func (x *MTPRequest) Reset()
func (*MTPRequest) String ¶
func (x *MTPRequest) String() string
type MTPResponse ¶
type MTPResponse struct { Mtp *MtpAndPrice `protobuf:"bytes,1,opt,name=mtp,proto3" json:"mtp,omitempty"` // contains filtered or unexported fields }
func (*MTPResponse) Descriptor
deprecated
func (*MTPResponse) Descriptor() ([]byte, []int)
Deprecated: Use MTPResponse.ProtoReflect.Descriptor instead.
func (*MTPResponse) GetMtp ¶
func (x *MTPResponse) GetMtp() *MtpAndPrice
func (*MTPResponse) ProtoMessage ¶
func (*MTPResponse) ProtoMessage()
func (*MTPResponse) ProtoReflect ¶
func (x *MTPResponse) ProtoReflect() protoreflect.Message
func (*MTPResponse) Reset ¶
func (x *MTPResponse) Reset()
func (*MTPResponse) String ¶
func (x *MTPResponse) String() string
type MsgClient ¶
type MsgClient interface { Open(ctx context.Context, in *MsgOpen, opts ...grpc.CallOption) (*MsgOpenResponse, error) Close(ctx context.Context, in *MsgClose, opts ...grpc.CallOption) (*MsgCloseResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) Whitelist(ctx context.Context, in *MsgWhitelist, opts ...grpc.CallOption) (*MsgWhitelistResponse, error) Dewhitelist(ctx context.Context, in *MsgDewhitelist, opts ...grpc.CallOption) (*MsgDewhitelistResponse, error) UpdateStopLoss(ctx context.Context, in *MsgUpdateStopLoss, opts ...grpc.CallOption) (*MsgUpdateStopLossResponse, error) ClosePositions(ctx context.Context, in *MsgClosePositions, opts ...grpc.CallOption) (*MsgClosePositionsResponse, error) UpdateTakeProfitPrice(ctx context.Context, in *MsgUpdateTakeProfitPrice, opts ...grpc.CallOption) (*MsgUpdateTakeProfitPriceResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgClose ¶
type MsgClose struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*MsgClose) Descriptor
deprecated
func (*MsgClose) GetCreator ¶
func (*MsgClose) ProtoMessage ¶
func (*MsgClose) ProtoMessage()
func (*MsgClose) ProtoReflect ¶
func (x *MsgClose) ProtoReflect() protoreflect.Message
type MsgClosePositions ¶
type MsgClosePositions struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Liquidate []*PositionRequest `protobuf:"bytes,2,rep,name=liquidate,proto3" json:"liquidate,omitempty"` StopLoss []*PositionRequest `protobuf:"bytes,3,rep,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"` TakeProfit []*PositionRequest `protobuf:"bytes,4,rep,name=take_profit,json=takeProfit,proto3" json:"take_profit,omitempty"` // contains filtered or unexported fields }
func (*MsgClosePositions) Descriptor
deprecated
func (*MsgClosePositions) Descriptor() ([]byte, []int)
Deprecated: Use MsgClosePositions.ProtoReflect.Descriptor instead.
func (*MsgClosePositions) GetCreator ¶
func (x *MsgClosePositions) GetCreator() string
func (*MsgClosePositions) GetLiquidate ¶
func (x *MsgClosePositions) GetLiquidate() []*PositionRequest
func (*MsgClosePositions) GetStopLoss ¶
func (x *MsgClosePositions) GetStopLoss() []*PositionRequest
func (*MsgClosePositions) GetTakeProfit ¶
func (x *MsgClosePositions) GetTakeProfit() []*PositionRequest
func (*MsgClosePositions) ProtoMessage ¶
func (*MsgClosePositions) ProtoMessage()
func (*MsgClosePositions) ProtoReflect ¶
func (x *MsgClosePositions) ProtoReflect() protoreflect.Message
func (*MsgClosePositions) Reset ¶
func (x *MsgClosePositions) Reset()
func (*MsgClosePositions) String ¶
func (x *MsgClosePositions) String() string
type MsgClosePositionsResponse ¶
type MsgClosePositionsResponse struct {
// contains filtered or unexported fields
}
func (*MsgClosePositionsResponse) Descriptor
deprecated
func (*MsgClosePositionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgClosePositionsResponse.ProtoReflect.Descriptor instead.
func (*MsgClosePositionsResponse) ProtoMessage ¶
func (*MsgClosePositionsResponse) ProtoMessage()
func (*MsgClosePositionsResponse) ProtoReflect ¶
func (x *MsgClosePositionsResponse) ProtoReflect() protoreflect.Message
func (*MsgClosePositionsResponse) Reset ¶
func (x *MsgClosePositionsResponse) Reset()
func (*MsgClosePositionsResponse) String ¶
func (x *MsgClosePositionsResponse) String() string
type MsgCloseResponse ¶
type MsgCloseResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*MsgCloseResponse) Descriptor
deprecated
func (*MsgCloseResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCloseResponse.ProtoReflect.Descriptor instead.
func (*MsgCloseResponse) GetAmount ¶
func (x *MsgCloseResponse) GetAmount() string
func (*MsgCloseResponse) GetId ¶
func (x *MsgCloseResponse) GetId() uint64
func (*MsgCloseResponse) ProtoMessage ¶
func (*MsgCloseResponse) ProtoMessage()
func (*MsgCloseResponse) ProtoReflect ¶
func (x *MsgCloseResponse) ProtoReflect() protoreflect.Message
func (*MsgCloseResponse) Reset ¶
func (x *MsgCloseResponse) Reset()
func (*MsgCloseResponse) String ¶
func (x *MsgCloseResponse) String() string
type MsgDewhitelist ¶
type MsgDewhitelist struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"` // contains filtered or unexported fields }
func (*MsgDewhitelist) Descriptor
deprecated
func (*MsgDewhitelist) Descriptor() ([]byte, []int)
Deprecated: Use MsgDewhitelist.ProtoReflect.Descriptor instead.
func (*MsgDewhitelist) GetAuthority ¶
func (x *MsgDewhitelist) GetAuthority() string
func (*MsgDewhitelist) GetWhitelistedAddress ¶
func (x *MsgDewhitelist) GetWhitelistedAddress() string
func (*MsgDewhitelist) ProtoMessage ¶
func (*MsgDewhitelist) ProtoMessage()
func (*MsgDewhitelist) ProtoReflect ¶
func (x *MsgDewhitelist) ProtoReflect() protoreflect.Message
func (*MsgDewhitelist) Reset ¶
func (x *MsgDewhitelist) Reset()
func (*MsgDewhitelist) String ¶
func (x *MsgDewhitelist) String() string
type MsgDewhitelistResponse ¶
type MsgDewhitelistResponse struct {
// contains filtered or unexported fields
}
func (*MsgDewhitelistResponse) Descriptor
deprecated
func (*MsgDewhitelistResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgDewhitelistResponse.ProtoReflect.Descriptor instead.
func (*MsgDewhitelistResponse) ProtoMessage ¶
func (*MsgDewhitelistResponse) ProtoMessage()
func (*MsgDewhitelistResponse) ProtoReflect ¶
func (x *MsgDewhitelistResponse) ProtoReflect() protoreflect.Message
func (*MsgDewhitelistResponse) Reset ¶
func (x *MsgDewhitelistResponse) Reset()
func (*MsgDewhitelistResponse) String ¶
func (x *MsgDewhitelistResponse) String() string
type MsgOpen ¶
type MsgOpen struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Position Position `protobuf:"varint,2,opt,name=position,proto3,enum=elys.perpetual.Position" json:"position,omitempty"` Leverage string `protobuf:"bytes,3,opt,name=leverage,proto3" json:"leverage,omitempty"` TradingAsset string `protobuf:"bytes,4,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Collateral *v1beta1.Coin `protobuf:"bytes,5,opt,name=collateral,proto3" json:"collateral,omitempty"` TakeProfitPrice string `protobuf:"bytes,6,opt,name=take_profit_price,json=takeProfitPrice,proto3" json:"take_profit_price,omitempty"` StopLossPrice string `protobuf:"bytes,7,opt,name=stop_loss_price,json=stopLossPrice,proto3" json:"stop_loss_price,omitempty"` PoolId uint64 `protobuf:"varint,8,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // contains filtered or unexported fields }
func (*MsgOpen) Descriptor
deprecated
func (*MsgOpen) GetCollateral ¶
func (*MsgOpen) GetCreator ¶
func (*MsgOpen) GetLeverage ¶
func (*MsgOpen) GetPosition ¶
func (*MsgOpen) GetStopLossPrice ¶
func (*MsgOpen) GetTakeProfitPrice ¶
func (*MsgOpen) GetTradingAsset ¶
func (*MsgOpen) ProtoMessage ¶
func (*MsgOpen) ProtoMessage()
func (*MsgOpen) ProtoReflect ¶
func (x *MsgOpen) ProtoReflect() protoreflect.Message
type MsgOpenResponse ¶
type MsgOpenResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MsgOpenResponse) Descriptor
deprecated
func (*MsgOpenResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgOpenResponse.ProtoReflect.Descriptor instead.
func (*MsgOpenResponse) GetId ¶
func (x *MsgOpenResponse) GetId() uint64
func (*MsgOpenResponse) ProtoMessage ¶
func (*MsgOpenResponse) ProtoMessage()
func (*MsgOpenResponse) ProtoReflect ¶
func (x *MsgOpenResponse) ProtoReflect() protoreflect.Message
func (*MsgOpenResponse) Reset ¶
func (x *MsgOpenResponse) Reset()
func (*MsgOpenResponse) String ¶
func (x *MsgOpenResponse) String() string
type MsgServer ¶
type MsgServer interface { Open(context.Context, *MsgOpen) (*MsgOpenResponse, error) Close(context.Context, *MsgClose) (*MsgCloseResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) Whitelist(context.Context, *MsgWhitelist) (*MsgWhitelistResponse, error) Dewhitelist(context.Context, *MsgDewhitelist) (*MsgDewhitelistResponse, error) UpdateStopLoss(context.Context, *MsgUpdateStopLoss) (*MsgUpdateStopLossResponse, error) ClosePositions(context.Context, *MsgClosePositions) (*MsgClosePositionsResponse, error) UpdateTakeProfitPrice(context.Context, *MsgUpdateTakeProfitPrice) (*MsgUpdateTakeProfitPriceResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type MsgUpdateStopLoss ¶
type MsgUpdateStopLoss struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*MsgUpdateStopLoss) Descriptor
deprecated
func (*MsgUpdateStopLoss) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateStopLoss.ProtoReflect.Descriptor instead.
func (*MsgUpdateStopLoss) GetCreator ¶
func (x *MsgUpdateStopLoss) GetCreator() string
func (*MsgUpdateStopLoss) GetId ¶
func (x *MsgUpdateStopLoss) GetId() uint64
func (*MsgUpdateStopLoss) GetPrice ¶
func (x *MsgUpdateStopLoss) GetPrice() string
func (*MsgUpdateStopLoss) ProtoMessage ¶
func (*MsgUpdateStopLoss) ProtoMessage()
func (*MsgUpdateStopLoss) ProtoReflect ¶
func (x *MsgUpdateStopLoss) ProtoReflect() protoreflect.Message
func (*MsgUpdateStopLoss) Reset ¶
func (x *MsgUpdateStopLoss) Reset()
func (*MsgUpdateStopLoss) String ¶
func (x *MsgUpdateStopLoss) String() string
type MsgUpdateStopLossResponse ¶
type MsgUpdateStopLossResponse struct {
// contains filtered or unexported fields
}
func (*MsgUpdateStopLossResponse) Descriptor
deprecated
func (*MsgUpdateStopLossResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateStopLossResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateStopLossResponse) ProtoMessage ¶
func (*MsgUpdateStopLossResponse) ProtoMessage()
func (*MsgUpdateStopLossResponse) ProtoReflect ¶
func (x *MsgUpdateStopLossResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateStopLossResponse) Reset ¶
func (x *MsgUpdateStopLossResponse) Reset()
func (*MsgUpdateStopLossResponse) String ¶
func (x *MsgUpdateStopLossResponse) String() string
type MsgUpdateTakeProfitPrice ¶
type MsgUpdateTakeProfitPrice struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*MsgUpdateTakeProfitPrice) Descriptor
deprecated
func (*MsgUpdateTakeProfitPrice) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateTakeProfitPrice.ProtoReflect.Descriptor instead.
func (*MsgUpdateTakeProfitPrice) GetCreator ¶
func (x *MsgUpdateTakeProfitPrice) GetCreator() string
func (*MsgUpdateTakeProfitPrice) GetId ¶
func (x *MsgUpdateTakeProfitPrice) GetId() uint64
func (*MsgUpdateTakeProfitPrice) GetPrice ¶
func (x *MsgUpdateTakeProfitPrice) GetPrice() string
func (*MsgUpdateTakeProfitPrice) ProtoMessage ¶
func (*MsgUpdateTakeProfitPrice) ProtoMessage()
func (*MsgUpdateTakeProfitPrice) ProtoReflect ¶
func (x *MsgUpdateTakeProfitPrice) ProtoReflect() protoreflect.Message
func (*MsgUpdateTakeProfitPrice) Reset ¶
func (x *MsgUpdateTakeProfitPrice) Reset()
func (*MsgUpdateTakeProfitPrice) String ¶
func (x *MsgUpdateTakeProfitPrice) String() string
type MsgUpdateTakeProfitPriceResponse ¶
type MsgUpdateTakeProfitPriceResponse struct {
// contains filtered or unexported fields
}
func (*MsgUpdateTakeProfitPriceResponse) Descriptor
deprecated
func (*MsgUpdateTakeProfitPriceResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateTakeProfitPriceResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateTakeProfitPriceResponse) ProtoMessage ¶
func (*MsgUpdateTakeProfitPriceResponse) ProtoMessage()
func (*MsgUpdateTakeProfitPriceResponse) ProtoReflect ¶
func (x *MsgUpdateTakeProfitPriceResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateTakeProfitPriceResponse) Reset ¶
func (x *MsgUpdateTakeProfitPriceResponse) Reset()
func (*MsgUpdateTakeProfitPriceResponse) String ¶
func (x *MsgUpdateTakeProfitPriceResponse) String() string
type MsgWhitelist ¶
type MsgWhitelist struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"` // contains filtered or unexported fields }
func (*MsgWhitelist) Descriptor
deprecated
func (*MsgWhitelist) Descriptor() ([]byte, []int)
Deprecated: Use MsgWhitelist.ProtoReflect.Descriptor instead.
func (*MsgWhitelist) GetAuthority ¶
func (x *MsgWhitelist) GetAuthority() string
func (*MsgWhitelist) GetWhitelistedAddress ¶
func (x *MsgWhitelist) GetWhitelistedAddress() string
func (*MsgWhitelist) ProtoMessage ¶
func (*MsgWhitelist) ProtoMessage()
func (*MsgWhitelist) ProtoReflect ¶
func (x *MsgWhitelist) ProtoReflect() protoreflect.Message
func (*MsgWhitelist) Reset ¶
func (x *MsgWhitelist) Reset()
func (*MsgWhitelist) String ¶
func (x *MsgWhitelist) String() string
type MsgWhitelistResponse ¶
type MsgWhitelistResponse struct {
// contains filtered or unexported fields
}
func (*MsgWhitelistResponse) Descriptor
deprecated
func (*MsgWhitelistResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgWhitelistResponse.ProtoReflect.Descriptor instead.
func (*MsgWhitelistResponse) ProtoMessage ¶
func (*MsgWhitelistResponse) ProtoMessage()
func (*MsgWhitelistResponse) ProtoReflect ¶
func (x *MsgWhitelistResponse) ProtoReflect() protoreflect.Message
func (*MsgWhitelistResponse) Reset ¶
func (x *MsgWhitelistResponse) Reset()
func (*MsgWhitelistResponse) String ¶
func (x *MsgWhitelistResponse) String() string
type MtpAndPrice ¶
type MtpAndPrice struct { Mtp *MTP `protobuf:"bytes,1,opt,name=mtp,proto3" json:"mtp,omitempty"` TradingAssetPrice string `protobuf:"bytes,2,opt,name=trading_asset_price,json=tradingAssetPrice,proto3" json:"trading_asset_price,omitempty"` Pnl *v1beta1.Coin `protobuf:"bytes,3,opt,name=pnl,proto3" json:"pnl,omitempty"` EffectiveLeverage string `protobuf:"bytes,4,opt,name=effective_leverage,json=effectiveLeverage,proto3" json:"effective_leverage,omitempty"` LiquidationPrice string `protobuf:"bytes,5,opt,name=liquidation_price,json=liquidationPrice,proto3" json:"liquidation_price,omitempty"` Fees *Fees `protobuf:"bytes,6,opt,name=fees,proto3" json:"fees,omitempty"` // contains filtered or unexported fields }
func (*MtpAndPrice) Descriptor
deprecated
func (*MtpAndPrice) Descriptor() ([]byte, []int)
Deprecated: Use MtpAndPrice.ProtoReflect.Descriptor instead.
func (*MtpAndPrice) GetEffectiveLeverage ¶
func (x *MtpAndPrice) GetEffectiveLeverage() string
func (*MtpAndPrice) GetFees ¶
func (x *MtpAndPrice) GetFees() *Fees
func (*MtpAndPrice) GetLiquidationPrice ¶
func (x *MtpAndPrice) GetLiquidationPrice() string
func (*MtpAndPrice) GetMtp ¶
func (x *MtpAndPrice) GetMtp() *MTP
func (*MtpAndPrice) GetPnl ¶
func (x *MtpAndPrice) GetPnl() *v1beta1.Coin
func (*MtpAndPrice) GetTradingAssetPrice ¶
func (x *MtpAndPrice) GetTradingAssetPrice() string
func (*MtpAndPrice) ProtoMessage ¶
func (*MtpAndPrice) ProtoMessage()
func (*MtpAndPrice) ProtoReflect ¶
func (x *MtpAndPrice) ProtoReflect() protoreflect.Message
func (*MtpAndPrice) Reset ¶
func (x *MtpAndPrice) Reset()
func (*MtpAndPrice) String ¶
func (x *MtpAndPrice) String() string
type Params ¶
type Params struct { LeverageMax string `protobuf:"bytes,1,opt,name=leverage_max,json=leverageMax,proto3" json:"leverage_max,omitempty"` BorrowInterestRateMax string `` /* 128-byte string literal not displayed */ BorrowInterestRateMin string `` /* 128-byte string literal not displayed */ BorrowInterestRateIncrease string `` /* 143-byte string literal not displayed */ BorrowInterestRateDecrease string `` /* 143-byte string literal not displayed */ HealthGainFactor string `protobuf:"bytes,6,opt,name=health_gain_factor,json=healthGainFactor,proto3" json:"health_gain_factor,omitempty"` MaxOpenPositions int64 `protobuf:"varint,7,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"` PoolOpenThreshold string `protobuf:"bytes,8,opt,name=pool_open_threshold,json=poolOpenThreshold,proto3" json:"pool_open_threshold,omitempty"` BorrowInterestPaymentFundPercentage string `` /* 172-byte string literal not displayed */ BorrowInterestPaymentFundAddress string `` /* 164-byte string literal not displayed */ SafetyFactor string `protobuf:"bytes,11,opt,name=safety_factor,json=safetyFactor,proto3" json:"safety_factor,omitempty"` BorrowInterestPaymentEnabled bool `` /* 151-byte string literal not displayed */ WhitelistingEnabled bool `protobuf:"varint,13,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"` PerpetualSwapFee string `protobuf:"bytes,14,opt,name=perpetual_swap_fee,json=perpetualSwapFee,proto3" json:"perpetual_swap_fee,omitempty"` MaxLimitOrder int64 `protobuf:"varint,15,opt,name=max_limit_order,json=maxLimitOrder,proto3" json:"max_limit_order,omitempty"` FixedFundingRate string `protobuf:"bytes,16,opt,name=fixed_funding_rate,json=fixedFundingRate,proto3" json:"fixed_funding_rate,omitempty"` // minimum value for take_profit_price/current price for long, should be // greater than 1 MinimumLongTakeProfitPriceRatio string `` /* 163-byte string literal not displayed */ // max value for take_profit_price/current price for long, should be greater // than 1 MaximumLongTakeProfitPriceRatio string `` /* 163-byte string literal not displayed */ // max value for take_profit_price/current price for short, should be less // than 1 MaximumShortTakeProfitPriceRatio string `` /* 166-byte string literal not displayed */ // No need for minimumShortTakeProfitPriceRatio as it will be 0, checked in // validate message EnableTakeProfitCustodyLiabilities bool `` /* 171-byte string literal not displayed */ // We create this and send this value to estimate swap ONLY when opening and // closing the position Ideally this value is set to half. When trader open a // position if they receive a weight balance bonus (which is half of weight // breaking fee, ideally) then while closing position they are charged weight // breaking fee. So we just directly apply half weight breaking fee on // perpetual swaps Question: does each need to have separate value of this // because PoolParams.WeightRecoveryFeePortion can be different Also, if // trader has no bonus only fee, then overall we are only applying the fee // half time WeightBreakingFeeFactor string `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Params) Descriptor
deprecated
func (*Params) GetBorrowInterestPaymentEnabled ¶ added in v0.54.0
func (*Params) GetBorrowInterestPaymentFundAddress ¶ added in v0.54.0
func (*Params) GetBorrowInterestPaymentFundPercentage ¶ added in v0.54.0
func (*Params) GetBorrowInterestRateDecrease ¶
func (*Params) GetBorrowInterestRateIncrease ¶
func (*Params) GetBorrowInterestRateMax ¶
func (*Params) GetBorrowInterestRateMin ¶
func (*Params) GetEnableTakeProfitCustodyLiabilities ¶
func (*Params) GetFixedFundingRate ¶
func (*Params) GetHealthGainFactor ¶
func (*Params) GetLeverageMax ¶
func (*Params) GetMaxLimitOrder ¶
func (*Params) GetMaxOpenPositions ¶
func (*Params) GetMaximumLongTakeProfitPriceRatio ¶
func (*Params) GetMaximumShortTakeProfitPriceRatio ¶
func (*Params) GetMinimumLongTakeProfitPriceRatio ¶
func (*Params) GetPerpetualSwapFee ¶
func (*Params) GetPoolOpenThreshold ¶
func (*Params) GetSafetyFactor ¶
func (*Params) GetWeightBreakingFeeFactor ¶
func (*Params) GetWhitelistingEnabled ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type ParamsRequest ¶
type ParamsRequest struct {
// contains filtered or unexported fields
}
ParamsRequest is request type for the Query/Params RPC method.
func (*ParamsRequest) Descriptor
deprecated
func (*ParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead.
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) ProtoReflect ¶
func (x *ParamsRequest) ProtoReflect() protoreflect.Message
func (*ParamsRequest) Reset ¶
func (x *ParamsRequest) Reset()
func (*ParamsRequest) String ¶
func (x *ParamsRequest) String() string
type ParamsResponse ¶
type ParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
ParamsResponse is response type for the Query/Params RPC method.
func (*ParamsResponse) Descriptor
deprecated
func (*ParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead.
func (*ParamsResponse) GetParams ¶
func (x *ParamsResponse) GetParams() *Params
func (*ParamsResponse) ProtoMessage ¶
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) ProtoReflect ¶
func (x *ParamsResponse) ProtoReflect() protoreflect.Message
func (*ParamsResponse) Reset ¶
func (x *ParamsResponse) Reset()
func (*ParamsResponse) String ¶
func (x *ParamsResponse) String() string
type Pool ¶
type Pool struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Health string `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"` BorrowInterestRate string `protobuf:"bytes,3,opt,name=borrow_interest_rate,json=borrowInterestRate,proto3" json:"borrow_interest_rate,omitempty"` PoolAssetsLong []*PoolAsset `protobuf:"bytes,4,rep,name=pool_assets_long,json=poolAssetsLong,proto3" json:"pool_assets_long,omitempty"` PoolAssetsShort []*PoolAsset `protobuf:"bytes,5,rep,name=pool_assets_short,json=poolAssetsShort,proto3" json:"pool_assets_short,omitempty"` LastHeightBorrowInterestRateComputed int64 `` /* 178-byte string literal not displayed */ // funding rate, if positive longs pay shorts, if negative shorts pay longs FundingRate string `protobuf:"bytes,7,opt,name=funding_rate,json=fundingRate,proto3" json:"funding_rate,omitempty"` FeesCollected []*v1beta1.Coin `protobuf:"bytes,8,rep,name=fees_collected,json=feesCollected,proto3" json:"fees_collected,omitempty"` // contains filtered or unexported fields }
func (*Pool) Descriptor
deprecated
func (*Pool) GetAmmPoolId ¶
func (*Pool) GetBorrowInterestRate ¶
func (*Pool) GetFeesCollected ¶
func (*Pool) GetFundingRate ¶
func (*Pool) GetLastHeightBorrowInterestRateComputed ¶
func (*Pool) GetPoolAssetsLong ¶
func (*Pool) GetPoolAssetsShort ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) ProtoReflect ¶
func (x *Pool) ProtoReflect() protoreflect.Message
type PoolAsset ¶
type PoolAsset struct { Liabilities string `protobuf:"bytes,1,opt,name=liabilities,proto3" json:"liabilities,omitempty"` Custody string `protobuf:"bytes,2,opt,name=custody,proto3" json:"custody,omitempty"` TakeProfitLiabilities string `` /* 126-byte string literal not displayed */ TakeProfitCustody string `protobuf:"bytes,4,opt,name=take_profit_custody,json=takeProfitCustody,proto3" json:"take_profit_custody,omitempty"` AssetDenom string `protobuf:"bytes,5,opt,name=asset_denom,json=assetDenom,proto3" json:"asset_denom,omitempty"` Collateral string `protobuf:"bytes,6,opt,name=collateral,proto3" json:"collateral,omitempty"` // contains filtered or unexported fields }
func (*PoolAsset) Descriptor
deprecated
func (*PoolAsset) GetAssetDenom ¶
func (*PoolAsset) GetCollateral ¶
func (*PoolAsset) GetCustody ¶
func (*PoolAsset) GetLiabilities ¶
func (*PoolAsset) GetTakeProfitCustody ¶
func (*PoolAsset) GetTakeProfitLiabilities ¶
func (*PoolAsset) ProtoMessage ¶
func (*PoolAsset) ProtoMessage()
func (*PoolAsset) ProtoReflect ¶
func (x *PoolAsset) ProtoReflect() protoreflect.Message
type PoolResponse ¶
type PoolResponse struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Health string `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"` BorrowInterestRate string `protobuf:"bytes,3,opt,name=borrow_interest_rate,json=borrowInterestRate,proto3" json:"borrow_interest_rate,omitempty"` PoolAssetsLong []*PoolAsset `protobuf:"bytes,4,rep,name=pool_assets_long,json=poolAssetsLong,proto3" json:"pool_assets_long,omitempty"` PoolAssetsShort []*PoolAsset `protobuf:"bytes,5,rep,name=pool_assets_short,json=poolAssetsShort,proto3" json:"pool_assets_short,omitempty"` LastHeightBorrowInterestRateComputed int64 `` /* 178-byte string literal not displayed */ // funding rate, if positive longs pay shorts, if negative shorts pay longs FundingRate string `protobuf:"bytes,7,opt,name=funding_rate,json=fundingRate,proto3" json:"funding_rate,omitempty"` NetOpenInterest string `protobuf:"bytes,8,opt,name=net_open_interest,json=netOpenInterest,proto3" json:"net_open_interest,omitempty"` // Rate at which long pays/receive from short // if negative longs pay, if positive long receives LongRate string `protobuf:"bytes,9,opt,name=long_rate,json=longRate,proto3" json:"long_rate,omitempty"` ShortRate string `protobuf:"bytes,10,opt,name=short_rate,json=shortRate,proto3" json:"short_rate,omitempty"` TotalLiabilities *v1beta1.Coin `protobuf:"bytes,11,opt,name=total_liabilities,json=totalLiabilities,proto3" json:"total_liabilities,omitempty"` TotalLongOpenInterest string `` /* 129-byte string literal not displayed */ TotalShortOpenInterest string `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PoolResponse) Descriptor
deprecated
func (*PoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use PoolResponse.ProtoReflect.Descriptor instead.
func (*PoolResponse) GetAmmPoolId ¶
func (x *PoolResponse) GetAmmPoolId() uint64
func (*PoolResponse) GetBorrowInterestRate ¶
func (x *PoolResponse) GetBorrowInterestRate() string
func (*PoolResponse) GetFundingRate ¶
func (x *PoolResponse) GetFundingRate() string
func (*PoolResponse) GetHealth ¶
func (x *PoolResponse) GetHealth() string
func (*PoolResponse) GetLastHeightBorrowInterestRateComputed ¶
func (x *PoolResponse) GetLastHeightBorrowInterestRateComputed() int64
func (*PoolResponse) GetLongRate ¶
func (x *PoolResponse) GetLongRate() string
func (*PoolResponse) GetNetOpenInterest ¶
func (x *PoolResponse) GetNetOpenInterest() string
func (*PoolResponse) GetPoolAssetsLong ¶
func (x *PoolResponse) GetPoolAssetsLong() []*PoolAsset
func (*PoolResponse) GetPoolAssetsShort ¶
func (x *PoolResponse) GetPoolAssetsShort() []*PoolAsset
func (*PoolResponse) GetShortRate ¶
func (x *PoolResponse) GetShortRate() string
func (*PoolResponse) GetTotalLiabilities ¶
func (x *PoolResponse) GetTotalLiabilities() *v1beta1.Coin
func (*PoolResponse) GetTotalLongOpenInterest ¶
func (x *PoolResponse) GetTotalLongOpenInterest() string
func (*PoolResponse) GetTotalShortOpenInterest ¶
func (x *PoolResponse) GetTotalShortOpenInterest() string
func (*PoolResponse) ProtoMessage ¶
func (*PoolResponse) ProtoMessage()
func (*PoolResponse) ProtoReflect ¶
func (x *PoolResponse) ProtoReflect() protoreflect.Message
func (*PoolResponse) Reset ¶
func (x *PoolResponse) Reset()
func (*PoolResponse) String ¶
func (x *PoolResponse) String() string
type Position ¶
type Position int32
func (Position) Descriptor ¶
func (Position) Descriptor() protoreflect.EnumDescriptor
func (Position) EnumDescriptor
deprecated
func (Position) Number ¶
func (x Position) Number() protoreflect.EnumNumber
func (Position) Type ¶
func (Position) Type() protoreflect.EnumType
type PositionRequest ¶
type PositionRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PositionRequest) Descriptor
deprecated
func (*PositionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionRequest.ProtoReflect.Descriptor instead.
func (*PositionRequest) GetAddress ¶
func (x *PositionRequest) GetAddress() string
func (*PositionRequest) GetId ¶
func (x *PositionRequest) GetId() uint64
func (*PositionRequest) ProtoMessage ¶
func (*PositionRequest) ProtoMessage()
func (*PositionRequest) ProtoReflect ¶
func (x *PositionRequest) ProtoReflect() protoreflect.Message
func (*PositionRequest) Reset ¶
func (x *PositionRequest) Reset()
func (*PositionRequest) String ¶
func (x *PositionRequest) String() string
type PositionsByPoolRequest ¶
type PositionsByPoolRequest struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Pagination *v1beta11.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsByPoolRequest) Descriptor
deprecated
func (*PositionsByPoolRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionsByPoolRequest.ProtoReflect.Descriptor instead.
func (*PositionsByPoolRequest) GetAmmPoolId ¶
func (x *PositionsByPoolRequest) GetAmmPoolId() uint64
func (*PositionsByPoolRequest) GetPagination ¶
func (x *PositionsByPoolRequest) GetPagination() *v1beta11.PageRequest
func (*PositionsByPoolRequest) ProtoMessage ¶
func (*PositionsByPoolRequest) ProtoMessage()
func (*PositionsByPoolRequest) ProtoReflect ¶
func (x *PositionsByPoolRequest) ProtoReflect() protoreflect.Message
func (*PositionsByPoolRequest) Reset ¶
func (x *PositionsByPoolRequest) Reset()
func (*PositionsByPoolRequest) String ¶
func (x *PositionsByPoolRequest) String() string
type PositionsByPoolResponse ¶
type PositionsByPoolResponse struct { Mtps []*MtpAndPrice `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"` Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsByPoolResponse) Descriptor
deprecated
func (*PositionsByPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use PositionsByPoolResponse.ProtoReflect.Descriptor instead.
func (*PositionsByPoolResponse) GetMtps ¶
func (x *PositionsByPoolResponse) GetMtps() []*MtpAndPrice
func (*PositionsByPoolResponse) GetPagination ¶
func (x *PositionsByPoolResponse) GetPagination() *v1beta11.PageResponse
func (*PositionsByPoolResponse) ProtoMessage ¶
func (*PositionsByPoolResponse) ProtoMessage()
func (*PositionsByPoolResponse) ProtoReflect ¶
func (x *PositionsByPoolResponse) ProtoReflect() protoreflect.Message
func (*PositionsByPoolResponse) Reset ¶
func (x *PositionsByPoolResponse) Reset()
func (*PositionsByPoolResponse) String ¶
func (x *PositionsByPoolResponse) String() string
type PositionsForAddressRequest ¶
type PositionsForAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Pagination *v1beta11.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsForAddressRequest) Descriptor
deprecated
func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionsForAddressRequest.ProtoReflect.Descriptor instead.
func (*PositionsForAddressRequest) GetAddress ¶
func (x *PositionsForAddressRequest) GetAddress() string
func (*PositionsForAddressRequest) GetPagination ¶
func (x *PositionsForAddressRequest) GetPagination() *v1beta11.PageRequest
func (*PositionsForAddressRequest) ProtoMessage ¶
func (*PositionsForAddressRequest) ProtoMessage()
func (*PositionsForAddressRequest) ProtoReflect ¶
func (x *PositionsForAddressRequest) ProtoReflect() protoreflect.Message
func (*PositionsForAddressRequest) Reset ¶
func (x *PositionsForAddressRequest) Reset()
func (*PositionsForAddressRequest) String ¶
func (x *PositionsForAddressRequest) String() string
type PositionsForAddressResponse ¶
type PositionsForAddressResponse struct { Mtps []*MtpAndPrice `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"` Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsForAddressResponse) Descriptor
deprecated
func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use PositionsForAddressResponse.ProtoReflect.Descriptor instead.
func (*PositionsForAddressResponse) GetMtps ¶
func (x *PositionsForAddressResponse) GetMtps() []*MtpAndPrice
func (*PositionsForAddressResponse) GetPagination ¶
func (x *PositionsForAddressResponse) GetPagination() *v1beta11.PageResponse
func (*PositionsForAddressResponse) ProtoMessage ¶
func (*PositionsForAddressResponse) ProtoMessage()
func (*PositionsForAddressResponse) ProtoReflect ¶
func (x *PositionsForAddressResponse) ProtoReflect() protoreflect.Message
func (*PositionsForAddressResponse) Reset ¶
func (x *PositionsForAddressResponse) Reset()
func (*PositionsForAddressResponse) String ¶
func (x *PositionsForAddressResponse) String() string
type PositionsRequest ¶
type PositionsRequest struct { Pagination *v1beta11.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsRequest) Descriptor
deprecated
func (*PositionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionsRequest.ProtoReflect.Descriptor instead.
func (*PositionsRequest) GetPagination ¶
func (x *PositionsRequest) GetPagination() *v1beta11.PageRequest
func (*PositionsRequest) ProtoMessage ¶
func (*PositionsRequest) ProtoMessage()
func (*PositionsRequest) ProtoReflect ¶
func (x *PositionsRequest) ProtoReflect() protoreflect.Message
func (*PositionsRequest) Reset ¶
func (x *PositionsRequest) Reset()
func (*PositionsRequest) String ¶
func (x *PositionsRequest) String() string
type PositionsResponse ¶
type PositionsResponse struct { Mtps []*MtpAndPrice `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"` Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsResponse) Descriptor
deprecated
func (*PositionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PositionsResponse.ProtoReflect.Descriptor instead.
func (*PositionsResponse) GetMtps ¶
func (x *PositionsResponse) GetMtps() []*MtpAndPrice
func (*PositionsResponse) GetPagination ¶
func (x *PositionsResponse) GetPagination() *v1beta11.PageResponse
func (*PositionsResponse) ProtoMessage ¶
func (*PositionsResponse) ProtoMessage()
func (*PositionsResponse) ProtoReflect ¶
func (x *PositionsResponse) ProtoReflect() protoreflect.Message
func (*PositionsResponse) Reset ¶
func (x *PositionsResponse) Reset()
func (*PositionsResponse) String ¶
func (x *PositionsResponse) String() string
type QueryAllPoolRequest ¶
type QueryAllPoolRequest struct { Pagination *v1beta11.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllPoolRequest) Descriptor
deprecated
func (*QueryAllPoolRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllPoolRequest.ProtoReflect.Descriptor instead.
func (*QueryAllPoolRequest) GetPagination ¶
func (x *QueryAllPoolRequest) GetPagination() *v1beta11.PageRequest
func (*QueryAllPoolRequest) ProtoMessage ¶
func (*QueryAllPoolRequest) ProtoMessage()
func (*QueryAllPoolRequest) ProtoReflect ¶
func (x *QueryAllPoolRequest) ProtoReflect() protoreflect.Message
func (*QueryAllPoolRequest) Reset ¶
func (x *QueryAllPoolRequest) Reset()
func (*QueryAllPoolRequest) String ¶
func (x *QueryAllPoolRequest) String() string
type QueryAllPoolResponse ¶
type QueryAllPoolResponse struct { Pool []*PoolResponse `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool,omitempty"` Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllPoolResponse) Descriptor
deprecated
func (*QueryAllPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllPoolResponse.ProtoReflect.Descriptor instead.
func (*QueryAllPoolResponse) GetPagination ¶
func (x *QueryAllPoolResponse) GetPagination() *v1beta11.PageResponse
func (*QueryAllPoolResponse) GetPool ¶
func (x *QueryAllPoolResponse) GetPool() []*PoolResponse
func (*QueryAllPoolResponse) ProtoMessage ¶
func (*QueryAllPoolResponse) ProtoMessage()
func (*QueryAllPoolResponse) ProtoReflect ¶
func (x *QueryAllPoolResponse) ProtoReflect() protoreflect.Message
func (*QueryAllPoolResponse) Reset ¶
func (x *QueryAllPoolResponse) Reset()
func (*QueryAllPoolResponse) String ¶
func (x *QueryAllPoolResponse) String() string
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) // Queries a list of positions. GetPositions(ctx context.Context, in *PositionsRequest, opts ...grpc.CallOption) (*PositionsResponse, error) // Queries a list of mtp positions by pool. GetPositionsByPool(ctx context.Context, in *PositionsByPoolRequest, opts ...grpc.CallOption) (*PositionsByPoolResponse, error) // Retuns the total number of open and lifetime mtps. GetStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) // Queries a list of mtp positions for a given address. GetPositionsForAddress(ctx context.Context, in *PositionsForAddressRequest, opts ...grpc.CallOption) (*PositionsForAddressResponse, error) // Queries a list of whitelisted addresses. GetWhitelist(ctx context.Context, in *WhitelistRequest, opts ...grpc.CallOption) (*WhitelistResponse, error) // Is an address whitelisted? IsWhitelisted(ctx context.Context, in *IsWhitelistedRequest, opts ...grpc.CallOption) (*IsWhitelistedResponse, error) // Queries a single pool given its index. Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error) // Queries a list of all pools. Pools(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error) // Queries a single mtp position given its address and id. MTP(ctx context.Context, in *MTPRequest, opts ...grpc.CallOption) (*MTPResponse, error) // Queries an estimation of a new open position details. OpenEstimation(ctx context.Context, in *QueryOpenEstimationRequest, opts ...grpc.CallOption) (*QueryOpenEstimationResponse, error) // Queries a list of CloseEstimation items. CloseEstimation(ctx context.Context, in *QueryCloseEstimationRequest, opts ...grpc.CallOption) (*QueryCloseEstimationResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryCloseEstimationRequest ¶
type QueryCloseEstimationRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` CloseAmount string `protobuf:"bytes,3,opt,name=close_amount,json=closeAmount,proto3" json:"close_amount,omitempty"` // contains filtered or unexported fields }
func (*QueryCloseEstimationRequest) Descriptor
deprecated
func (*QueryCloseEstimationRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCloseEstimationRequest.ProtoReflect.Descriptor instead.
func (*QueryCloseEstimationRequest) GetAddress ¶
func (x *QueryCloseEstimationRequest) GetAddress() string
func (*QueryCloseEstimationRequest) GetCloseAmount ¶
func (x *QueryCloseEstimationRequest) GetCloseAmount() string
func (*QueryCloseEstimationRequest) GetPositionId ¶
func (x *QueryCloseEstimationRequest) GetPositionId() uint64
func (*QueryCloseEstimationRequest) ProtoMessage ¶
func (*QueryCloseEstimationRequest) ProtoMessage()
func (*QueryCloseEstimationRequest) ProtoReflect ¶
func (x *QueryCloseEstimationRequest) ProtoReflect() protoreflect.Message
func (*QueryCloseEstimationRequest) Reset ¶
func (x *QueryCloseEstimationRequest) Reset()
func (*QueryCloseEstimationRequest) String ¶
func (x *QueryCloseEstimationRequest) String() string
type QueryCloseEstimationResponse ¶
type QueryCloseEstimationResponse struct { Position Position `protobuf:"varint,1,opt,name=position,proto3,enum=elys.perpetual.Position" json:"position,omitempty"` PositionSize *v1beta1.Coin `protobuf:"bytes,2,opt,name=position_size,json=positionSize,proto3" json:"position_size,omitempty"` Liabilities *v1beta1.Coin `protobuf:"bytes,3,opt,name=liabilities,proto3" json:"liabilities,omitempty"` PriceImpact string `protobuf:"bytes,4,opt,name=price_impact,json=priceImpact,proto3" json:"price_impact,omitempty"` LiquidationPrice string `protobuf:"bytes,5,opt,name=liquidation_price,json=liquidationPrice,proto3" json:"liquidation_price,omitempty"` MaxCloseAmount string `protobuf:"bytes,6,opt,name=max_close_amount,json=maxCloseAmount,proto3" json:"max_close_amount,omitempty"` BorrowInterestUnpaidLiability *v1beta1.Coin `` /* 152-byte string literal not displayed */ ReturningAmount *v1beta1.Coin `protobuf:"bytes,8,opt,name=returning_amount,json=returningAmount,proto3" json:"returning_amount,omitempty"` PayingLiabilities *v1beta1.Coin `protobuf:"bytes,9,opt,name=paying_liabilities,json=payingLiabilities,proto3" json:"paying_liabilities,omitempty"` ClosingPrice string `protobuf:"bytes,10,opt,name=closing_price,json=closingPrice,proto3" json:"closing_price,omitempty"` Custody *v1beta1.Coin `protobuf:"bytes,11,opt,name=custody,proto3" json:"custody,omitempty"` Collateral *v1beta1.Coin `protobuf:"bytes,12,opt,name=collateral,proto3" json:"collateral,omitempty"` WeightBreakingFee string `protobuf:"bytes,13,opt,name=weight_breaking_fee,json=weightBreakingFee,proto3" json:"weight_breaking_fee,omitempty"` Slippage string `protobuf:"bytes,14,opt,name=slippage,proto3" json:"slippage,omitempty"` // contains filtered or unexported fields }
func (*QueryCloseEstimationResponse) Descriptor
deprecated
func (*QueryCloseEstimationResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCloseEstimationResponse.ProtoReflect.Descriptor instead.
func (*QueryCloseEstimationResponse) GetBorrowInterestUnpaidLiability ¶
func (x *QueryCloseEstimationResponse) GetBorrowInterestUnpaidLiability() *v1beta1.Coin
func (*QueryCloseEstimationResponse) GetClosingPrice ¶
func (x *QueryCloseEstimationResponse) GetClosingPrice() string
func (*QueryCloseEstimationResponse) GetCollateral ¶
func (x *QueryCloseEstimationResponse) GetCollateral() *v1beta1.Coin
func (*QueryCloseEstimationResponse) GetCustody ¶
func (x *QueryCloseEstimationResponse) GetCustody() *v1beta1.Coin
func (*QueryCloseEstimationResponse) GetLiabilities ¶
func (x *QueryCloseEstimationResponse) GetLiabilities() *v1beta1.Coin
func (*QueryCloseEstimationResponse) GetLiquidationPrice ¶
func (x *QueryCloseEstimationResponse) GetLiquidationPrice() string
func (*QueryCloseEstimationResponse) GetMaxCloseAmount ¶
func (x *QueryCloseEstimationResponse) GetMaxCloseAmount() string
func (*QueryCloseEstimationResponse) GetPayingLiabilities ¶
func (x *QueryCloseEstimationResponse) GetPayingLiabilities() *v1beta1.Coin
func (*QueryCloseEstimationResponse) GetPosition ¶
func (x *QueryCloseEstimationResponse) GetPosition() Position
func (*QueryCloseEstimationResponse) GetPositionSize ¶
func (x *QueryCloseEstimationResponse) GetPositionSize() *v1beta1.Coin
func (*QueryCloseEstimationResponse) GetPriceImpact ¶
func (x *QueryCloseEstimationResponse) GetPriceImpact() string
func (*QueryCloseEstimationResponse) GetReturningAmount ¶
func (x *QueryCloseEstimationResponse) GetReturningAmount() *v1beta1.Coin
func (*QueryCloseEstimationResponse) GetSlippage ¶
func (x *QueryCloseEstimationResponse) GetSlippage() string
func (*QueryCloseEstimationResponse) GetWeightBreakingFee ¶
func (x *QueryCloseEstimationResponse) GetWeightBreakingFee() string
func (*QueryCloseEstimationResponse) ProtoMessage ¶
func (*QueryCloseEstimationResponse) ProtoMessage()
func (*QueryCloseEstimationResponse) ProtoReflect ¶
func (x *QueryCloseEstimationResponse) ProtoReflect() protoreflect.Message
func (*QueryCloseEstimationResponse) Reset ¶
func (x *QueryCloseEstimationResponse) Reset()
func (*QueryCloseEstimationResponse) String ¶
func (x *QueryCloseEstimationResponse) String() string
type QueryGetPoolRequest ¶
type QueryGetPoolRequest struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*QueryGetPoolRequest) Descriptor
deprecated
func (*QueryGetPoolRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetPoolRequest.ProtoReflect.Descriptor instead.
func (*QueryGetPoolRequest) GetIndex ¶
func (x *QueryGetPoolRequest) GetIndex() uint64
func (*QueryGetPoolRequest) ProtoMessage ¶
func (*QueryGetPoolRequest) ProtoMessage()
func (*QueryGetPoolRequest) ProtoReflect ¶
func (x *QueryGetPoolRequest) ProtoReflect() protoreflect.Message
func (*QueryGetPoolRequest) Reset ¶
func (x *QueryGetPoolRequest) Reset()
func (*QueryGetPoolRequest) String ¶
func (x *QueryGetPoolRequest) String() string
type QueryGetPoolResponse ¶
type QueryGetPoolResponse struct { Pool *PoolResponse `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` // contains filtered or unexported fields }
func (*QueryGetPoolResponse) Descriptor
deprecated
func (*QueryGetPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetPoolResponse.ProtoReflect.Descriptor instead.
func (*QueryGetPoolResponse) GetPool ¶
func (x *QueryGetPoolResponse) GetPool() *PoolResponse
func (*QueryGetPoolResponse) ProtoMessage ¶
func (*QueryGetPoolResponse) ProtoMessage()
func (*QueryGetPoolResponse) ProtoReflect ¶
func (x *QueryGetPoolResponse) ProtoReflect() protoreflect.Message
func (*QueryGetPoolResponse) Reset ¶
func (x *QueryGetPoolResponse) Reset()
func (*QueryGetPoolResponse) String ¶
func (x *QueryGetPoolResponse) String() string
type QueryOpenEstimationRequest ¶
type QueryOpenEstimationRequest struct { Position Position `protobuf:"varint,1,opt,name=position,proto3,enum=elys.perpetual.Position" json:"position,omitempty"` Leverage string `protobuf:"bytes,2,opt,name=leverage,proto3" json:"leverage,omitempty"` TradingAsset string `protobuf:"bytes,3,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Collateral *v1beta1.Coin `protobuf:"bytes,4,opt,name=collateral,proto3" json:"collateral,omitempty"` Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` TakeProfitPrice string `protobuf:"bytes,6,opt,name=take_profit_price,json=takeProfitPrice,proto3" json:"take_profit_price,omitempty"` PoolId uint64 `protobuf:"varint,7,opt,name=poolId,proto3" json:"poolId,omitempty"` LimitPrice string `protobuf:"bytes,8,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"` // contains filtered or unexported fields }
func (*QueryOpenEstimationRequest) Descriptor
deprecated
func (*QueryOpenEstimationRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOpenEstimationRequest.ProtoReflect.Descriptor instead.
func (*QueryOpenEstimationRequest) GetAddress ¶
func (x *QueryOpenEstimationRequest) GetAddress() string
func (*QueryOpenEstimationRequest) GetCollateral ¶
func (x *QueryOpenEstimationRequest) GetCollateral() *v1beta1.Coin
func (*QueryOpenEstimationRequest) GetLeverage ¶
func (x *QueryOpenEstimationRequest) GetLeverage() string
func (*QueryOpenEstimationRequest) GetLimitPrice ¶
func (x *QueryOpenEstimationRequest) GetLimitPrice() string
func (*QueryOpenEstimationRequest) GetPoolId ¶
func (x *QueryOpenEstimationRequest) GetPoolId() uint64
func (*QueryOpenEstimationRequest) GetPosition ¶
func (x *QueryOpenEstimationRequest) GetPosition() Position
func (*QueryOpenEstimationRequest) GetTakeProfitPrice ¶
func (x *QueryOpenEstimationRequest) GetTakeProfitPrice() string
func (*QueryOpenEstimationRequest) GetTradingAsset ¶
func (x *QueryOpenEstimationRequest) GetTradingAsset() string
func (*QueryOpenEstimationRequest) ProtoMessage ¶
func (*QueryOpenEstimationRequest) ProtoMessage()
func (*QueryOpenEstimationRequest) ProtoReflect ¶
func (x *QueryOpenEstimationRequest) ProtoReflect() protoreflect.Message
func (*QueryOpenEstimationRequest) Reset ¶
func (x *QueryOpenEstimationRequest) Reset()
func (*QueryOpenEstimationRequest) String ¶
func (x *QueryOpenEstimationRequest) String() string
type QueryOpenEstimationResponse ¶
type QueryOpenEstimationResponse struct { Position Position `protobuf:"varint,1,opt,name=position,proto3,enum=elys.perpetual.Position" json:"position,omitempty"` EffectiveLeverage string `protobuf:"bytes,2,opt,name=effective_leverage,json=effectiveLeverage,proto3" json:"effective_leverage,omitempty"` TradingAsset string `protobuf:"bytes,3,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Collateral *v1beta1.Coin `protobuf:"bytes,4,opt,name=collateral,proto3" json:"collateral,omitempty"` HourlyInterestRate string `protobuf:"bytes,5,opt,name=hourly_interest_rate,json=hourlyInterestRate,proto3" json:"hourly_interest_rate,omitempty"` PositionSize *v1beta1.Coin `protobuf:"bytes,6,opt,name=position_size,json=positionSize,proto3" json:"position_size,omitempty"` OpenPrice string `protobuf:"bytes,7,opt,name=open_price,json=openPrice,proto3" json:"open_price,omitempty"` TakeProfitPrice string `protobuf:"bytes,8,opt,name=take_profit_price,json=takeProfitPrice,proto3" json:"take_profit_price,omitempty"` LiquidationPrice string `protobuf:"bytes,9,opt,name=liquidation_price,json=liquidationPrice,proto3" json:"liquidation_price,omitempty"` EstimatedPnl *v1beta1.Coin `protobuf:"bytes,10,opt,name=estimated_pnl,json=estimatedPnl,proto3" json:"estimated_pnl,omitempty"` AvailableLiquidity *v1beta1.Coin `protobuf:"bytes,11,opt,name=available_liquidity,json=availableLiquidity,proto3" json:"available_liquidity,omitempty"` Slippage string `protobuf:"bytes,12,opt,name=slippage,proto3" json:"slippage,omitempty"` BorrowInterestRate string `protobuf:"bytes,13,opt,name=borrow_interest_rate,json=borrowInterestRate,proto3" json:"borrow_interest_rate,omitempty"` FundingRate string `protobuf:"bytes,14,opt,name=funding_rate,json=fundingRate,proto3" json:"funding_rate,omitempty"` PriceImpact string `protobuf:"bytes,15,opt,name=price_impact,json=priceImpact,proto3" json:"price_impact,omitempty"` Custody *v1beta1.Coin `protobuf:"bytes,16,opt,name=custody,proto3" json:"custody,omitempty"` Liabilities *v1beta1.Coin `protobuf:"bytes,17,opt,name=liabilities,proto3" json:"liabilities,omitempty"` LimitPrice string `protobuf:"bytes,18,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"` WeightBreakingFee string `protobuf:"bytes,19,opt,name=weight_breaking_fee,json=weightBreakingFee,proto3" json:"weight_breaking_fee,omitempty"` // contains filtered or unexported fields }
func (*QueryOpenEstimationResponse) Descriptor
deprecated
func (*QueryOpenEstimationResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOpenEstimationResponse.ProtoReflect.Descriptor instead.
func (*QueryOpenEstimationResponse) GetAvailableLiquidity ¶
func (x *QueryOpenEstimationResponse) GetAvailableLiquidity() *v1beta1.Coin
func (*QueryOpenEstimationResponse) GetBorrowInterestRate ¶
func (x *QueryOpenEstimationResponse) GetBorrowInterestRate() string
func (*QueryOpenEstimationResponse) GetCollateral ¶
func (x *QueryOpenEstimationResponse) GetCollateral() *v1beta1.Coin
func (*QueryOpenEstimationResponse) GetCustody ¶
func (x *QueryOpenEstimationResponse) GetCustody() *v1beta1.Coin
func (*QueryOpenEstimationResponse) GetEffectiveLeverage ¶
func (x *QueryOpenEstimationResponse) GetEffectiveLeverage() string
func (*QueryOpenEstimationResponse) GetEstimatedPnl ¶
func (x *QueryOpenEstimationResponse) GetEstimatedPnl() *v1beta1.Coin
func (*QueryOpenEstimationResponse) GetFundingRate ¶
func (x *QueryOpenEstimationResponse) GetFundingRate() string
func (*QueryOpenEstimationResponse) GetHourlyInterestRate ¶
func (x *QueryOpenEstimationResponse) GetHourlyInterestRate() string
func (*QueryOpenEstimationResponse) GetLiabilities ¶
func (x *QueryOpenEstimationResponse) GetLiabilities() *v1beta1.Coin
func (*QueryOpenEstimationResponse) GetLimitPrice ¶
func (x *QueryOpenEstimationResponse) GetLimitPrice() string
func (*QueryOpenEstimationResponse) GetLiquidationPrice ¶
func (x *QueryOpenEstimationResponse) GetLiquidationPrice() string
func (*QueryOpenEstimationResponse) GetOpenPrice ¶
func (x *QueryOpenEstimationResponse) GetOpenPrice() string
func (*QueryOpenEstimationResponse) GetPosition ¶
func (x *QueryOpenEstimationResponse) GetPosition() Position
func (*QueryOpenEstimationResponse) GetPositionSize ¶
func (x *QueryOpenEstimationResponse) GetPositionSize() *v1beta1.Coin
func (*QueryOpenEstimationResponse) GetPriceImpact ¶
func (x *QueryOpenEstimationResponse) GetPriceImpact() string
func (*QueryOpenEstimationResponse) GetSlippage ¶
func (x *QueryOpenEstimationResponse) GetSlippage() string
func (*QueryOpenEstimationResponse) GetTakeProfitPrice ¶
func (x *QueryOpenEstimationResponse) GetTakeProfitPrice() string
func (*QueryOpenEstimationResponse) GetTradingAsset ¶
func (x *QueryOpenEstimationResponse) GetTradingAsset() string
func (*QueryOpenEstimationResponse) GetWeightBreakingFee ¶
func (x *QueryOpenEstimationResponse) GetWeightBreakingFee() string
func (*QueryOpenEstimationResponse) ProtoMessage ¶
func (*QueryOpenEstimationResponse) ProtoMessage()
func (*QueryOpenEstimationResponse) ProtoReflect ¶
func (x *QueryOpenEstimationResponse) ProtoReflect() protoreflect.Message
func (*QueryOpenEstimationResponse) Reset ¶
func (x *QueryOpenEstimationResponse) Reset()
func (*QueryOpenEstimationResponse) String ¶
func (x *QueryOpenEstimationResponse) String() string
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) // Queries a list of positions. GetPositions(context.Context, *PositionsRequest) (*PositionsResponse, error) // Queries a list of mtp positions by pool. GetPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error) // Retuns the total number of open and lifetime mtps. GetStatus(context.Context, *StatusRequest) (*StatusResponse, error) // Queries a list of mtp positions for a given address. GetPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error) // Queries a list of whitelisted addresses. GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error) // Is an address whitelisted? IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error) // Queries a single pool given its index. Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error) // Queries a list of all pools. Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error) // Queries a single mtp position given its address and id. MTP(context.Context, *MTPRequest) (*MTPResponse, error) // Queries an estimation of a new open position details. OpenEstimation(context.Context, *QueryOpenEstimationRequest) (*QueryOpenEstimationResponse, error) // Queries a list of CloseEstimation items. CloseEstimation(context.Context, *QueryCloseEstimationRequest) (*QueryCloseEstimationResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct { OpenMtpCount uint64 `protobuf:"varint,1,opt,name=open_mtp_count,json=openMtpCount,proto3" json:"open_mtp_count,omitempty"` LifetimeMtpCount uint64 `protobuf:"varint,2,opt,name=lifetime_mtp_count,json=lifetimeMtpCount,proto3" json:"lifetime_mtp_count,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetLifetimeMtpCount ¶
func (x *StatusResponse) GetLifetimeMtpCount() uint64
func (*StatusResponse) GetOpenMtpCount ¶
func (x *StatusResponse) GetOpenMtpCount() uint64
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Close ¶
func (UnimplementedMsgServer) Close(context.Context, *MsgClose) (*MsgCloseResponse, error)
func (UnimplementedMsgServer) ClosePositions ¶
func (UnimplementedMsgServer) ClosePositions(context.Context, *MsgClosePositions) (*MsgClosePositionsResponse, error)
func (UnimplementedMsgServer) Dewhitelist ¶
func (UnimplementedMsgServer) Dewhitelist(context.Context, *MsgDewhitelist) (*MsgDewhitelistResponse, error)
func (UnimplementedMsgServer) Open ¶
func (UnimplementedMsgServer) Open(context.Context, *MsgOpen) (*MsgOpenResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (UnimplementedMsgServer) UpdateStopLoss ¶
func (UnimplementedMsgServer) UpdateStopLoss(context.Context, *MsgUpdateStopLoss) (*MsgUpdateStopLossResponse, error)
func (UnimplementedMsgServer) UpdateTakeProfitPrice ¶
func (UnimplementedMsgServer) UpdateTakeProfitPrice(context.Context, *MsgUpdateTakeProfitPrice) (*MsgUpdateTakeProfitPriceResponse, error)
func (UnimplementedMsgServer) Whitelist ¶
func (UnimplementedMsgServer) Whitelist(context.Context, *MsgWhitelist) (*MsgWhitelistResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) CloseEstimation ¶
func (UnimplementedQueryServer) CloseEstimation(context.Context, *QueryCloseEstimationRequest) (*QueryCloseEstimationResponse, error)
func (UnimplementedQueryServer) GetPositions ¶
func (UnimplementedQueryServer) GetPositions(context.Context, *PositionsRequest) (*PositionsResponse, error)
func (UnimplementedQueryServer) GetPositionsByPool ¶
func (UnimplementedQueryServer) GetPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error)
func (UnimplementedQueryServer) GetPositionsForAddress ¶
func (UnimplementedQueryServer) GetPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
func (UnimplementedQueryServer) GetStatus ¶
func (UnimplementedQueryServer) GetStatus(context.Context, *StatusRequest) (*StatusResponse, error)
func (UnimplementedQueryServer) GetWhitelist ¶
func (UnimplementedQueryServer) GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error)
func (UnimplementedQueryServer) IsWhitelisted ¶
func (UnimplementedQueryServer) IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error)
func (UnimplementedQueryServer) MTP ¶
func (UnimplementedQueryServer) MTP(context.Context, *MTPRequest) (*MTPResponse, error)
func (UnimplementedQueryServer) OpenEstimation ¶
func (UnimplementedQueryServer) OpenEstimation(context.Context, *QueryOpenEstimationRequest) (*QueryOpenEstimationResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
func (UnimplementedQueryServer) Pool ¶
func (UnimplementedQueryServer) Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error)
func (UnimplementedQueryServer) Pools ¶
func (UnimplementedQueryServer) Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type WhiteList ¶
type WhiteList struct { ValidatorList []string `protobuf:"bytes,1,rep,name=validator_list,json=validatorList,proto3" json:"validator_list,omitempty"` // contains filtered or unexported fields }
func (*WhiteList) Descriptor
deprecated
func (*WhiteList) GetValidatorList ¶
func (*WhiteList) ProtoMessage ¶
func (*WhiteList) ProtoMessage()
func (*WhiteList) ProtoReflect ¶
func (x *WhiteList) ProtoReflect() protoreflect.Message
type WhitelistRequest ¶
type WhitelistRequest struct { Pagination *v1beta11.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*WhitelistRequest) Descriptor
deprecated
func (*WhitelistRequest) Descriptor() ([]byte, []int)
Deprecated: Use WhitelistRequest.ProtoReflect.Descriptor instead.
func (*WhitelistRequest) GetPagination ¶
func (x *WhitelistRequest) GetPagination() *v1beta11.PageRequest
func (*WhitelistRequest) ProtoMessage ¶
func (*WhitelistRequest) ProtoMessage()
func (*WhitelistRequest) ProtoReflect ¶
func (x *WhitelistRequest) ProtoReflect() protoreflect.Message
func (*WhitelistRequest) Reset ¶
func (x *WhitelistRequest) Reset()
func (*WhitelistRequest) String ¶
func (x *WhitelistRequest) String() string
type WhitelistResponse ¶
type WhitelistResponse struct { Whitelist []string `protobuf:"bytes,1,rep,name=whitelist,proto3" json:"whitelist,omitempty"` Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*WhitelistResponse) Descriptor
deprecated
func (*WhitelistResponse) Descriptor() ([]byte, []int)
Deprecated: Use WhitelistResponse.ProtoReflect.Descriptor instead.
func (*WhitelistResponse) GetPagination ¶
func (x *WhitelistResponse) GetPagination() *v1beta11.PageResponse
func (*WhitelistResponse) GetWhitelist ¶
func (x *WhitelistResponse) GetWhitelist() []string
func (*WhitelistResponse) ProtoMessage ¶
func (*WhitelistResponse) ProtoMessage()
func (*WhitelistResponse) ProtoReflect ¶
func (x *WhitelistResponse) ProtoReflect() protoreflect.Message
func (*WhitelistResponse) Reset ¶
func (x *WhitelistResponse) Reset()
func (*WhitelistResponse) String ¶
func (x *WhitelistResponse) String() string