Documentation ¶
Overview ¶
Package injective_accounts_rpcpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterInjectiveAccountsRPCHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInjectiveAccountsRPCHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InjectiveAccountsRPCClient) error
- func RegisterInjectiveAccountsRPCHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInjectiveAccountsRPCHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InjectiveAccountsRPCServer) error
- func RegisterInjectiveAccountsRPCServer(s grpc.ServiceRegistrar, srv InjectiveAccountsRPCServer)
- type AccountPortfolio
- func (*AccountPortfolio) Descriptor() ([]byte, []int)deprecated
- func (x *AccountPortfolio) GetAvailableBalance() string
- func (x *AccountPortfolio) GetLockedBalance() string
- func (x *AccountPortfolio) GetPortfolioValue() string
- func (x *AccountPortfolio) GetSubaccounts() []*SubaccountPortfolio
- func (x *AccountPortfolio) GetUnrealizedPnl() string
- func (*AccountPortfolio) ProtoMessage()
- func (x *AccountPortfolio) ProtoReflect() protoreflect.Message
- func (x *AccountPortfolio) Reset()
- func (x *AccountPortfolio) String() string
- type Coin
- type CosmosCoin
- type DerivativeLimitOrder
- func (*DerivativeLimitOrder) Descriptor() ([]byte, []int)deprecated
- func (x *DerivativeLimitOrder) GetCid() string
- func (x *DerivativeLimitOrder) GetCreatedAt() int64
- func (x *DerivativeLimitOrder) GetExecutionType() string
- func (x *DerivativeLimitOrder) GetFeeRecipient() string
- func (x *DerivativeLimitOrder) GetIsConditional() bool
- func (x *DerivativeLimitOrder) GetIsReduceOnly() bool
- func (x *DerivativeLimitOrder) GetMargin() string
- func (x *DerivativeLimitOrder) GetMarketId() string
- func (x *DerivativeLimitOrder) GetOrderHash() string
- func (x *DerivativeLimitOrder) GetOrderNumber() int64
- func (x *DerivativeLimitOrder) GetOrderSide() string
- func (x *DerivativeLimitOrder) GetOrderType() string
- func (x *DerivativeLimitOrder) GetPlacedOrderHash() string
- func (x *DerivativeLimitOrder) GetPrice() string
- func (x *DerivativeLimitOrder) GetQuantity() string
- func (x *DerivativeLimitOrder) GetState() string
- func (x *DerivativeLimitOrder) GetSubaccountId() string
- func (x *DerivativeLimitOrder) GetTriggerAt() uint64
- func (x *DerivativeLimitOrder) GetTriggerPrice() string
- func (x *DerivativeLimitOrder) GetTxHash() string
- func (x *DerivativeLimitOrder) GetUnfilledQuantity() string
- func (x *DerivativeLimitOrder) GetUpdatedAt() int64
- func (*DerivativeLimitOrder) ProtoMessage()
- func (x *DerivativeLimitOrder) ProtoReflect() protoreflect.Message
- func (x *DerivativeLimitOrder) Reset()
- func (x *DerivativeLimitOrder) String() string
- type DerivativeOrderHistory
- func (*DerivativeOrderHistory) Descriptor() ([]byte, []int)deprecated
- func (x *DerivativeOrderHistory) GetCid() string
- func (x *DerivativeOrderHistory) GetCreatedAt() int64
- func (x *DerivativeOrderHistory) GetDirection() string
- func (x *DerivativeOrderHistory) GetExecutionType() string
- func (x *DerivativeOrderHistory) GetFilledQuantity() string
- func (x *DerivativeOrderHistory) GetIsActive() bool
- func (x *DerivativeOrderHistory) GetIsConditional() bool
- func (x *DerivativeOrderHistory) GetIsReduceOnly() bool
- func (x *DerivativeOrderHistory) GetMargin() string
- func (x *DerivativeOrderHistory) GetMarketId() string
- func (x *DerivativeOrderHistory) GetOrderHash() string
- func (x *DerivativeOrderHistory) GetOrderType() string
- func (x *DerivativeOrderHistory) GetPlacedOrderHash() string
- func (x *DerivativeOrderHistory) GetPrice() string
- func (x *DerivativeOrderHistory) GetQuantity() string
- func (x *DerivativeOrderHistory) GetState() string
- func (x *DerivativeOrderHistory) GetSubaccountId() string
- func (x *DerivativeOrderHistory) GetTriggerAt() uint64
- func (x *DerivativeOrderHistory) GetTriggerPrice() string
- func (x *DerivativeOrderHistory) GetTxHash() string
- func (x *DerivativeOrderHistory) GetUpdatedAt() int64
- func (*DerivativeOrderHistory) ProtoMessage()
- func (x *DerivativeOrderHistory) ProtoReflect() protoreflect.Message
- func (x *DerivativeOrderHistory) Reset()
- func (x *DerivativeOrderHistory) String() string
- type DerivativeTrade
- func (*DerivativeTrade) Descriptor() ([]byte, []int)deprecated
- func (x *DerivativeTrade) GetCid() string
- func (x *DerivativeTrade) GetExecutedAt() int64
- func (x *DerivativeTrade) GetExecutionSide() string
- func (x *DerivativeTrade) GetFee() string
- func (x *DerivativeTrade) GetFeeRecipient() string
- func (x *DerivativeTrade) GetIsLiquidation() bool
- func (x *DerivativeTrade) GetMarketId() string
- func (x *DerivativeTrade) GetOrderHash() string
- func (x *DerivativeTrade) GetPayout() string
- func (x *DerivativeTrade) GetPositionDelta() *PositionDelta
- func (x *DerivativeTrade) GetSubaccountId() string
- func (x *DerivativeTrade) GetTradeExecutionType() string
- func (x *DerivativeTrade) GetTradeId() string
- func (*DerivativeTrade) ProtoMessage()
- func (x *DerivativeTrade) ProtoReflect() protoreflect.Message
- func (x *DerivativeTrade) Reset()
- func (x *DerivativeTrade) String() string
- type FundingPayment
- func (*FundingPayment) Descriptor() ([]byte, []int)deprecated
- func (x *FundingPayment) GetAmount() string
- func (x *FundingPayment) GetMarketId() string
- func (x *FundingPayment) GetSubaccountId() string
- func (x *FundingPayment) GetTimestamp() int64
- func (*FundingPayment) ProtoMessage()
- func (x *FundingPayment) ProtoReflect() protoreflect.Message
- func (x *FundingPayment) Reset()
- func (x *FundingPayment) String() string
- type FundingPaymentResult
- func (*FundingPaymentResult) Descriptor() ([]byte, []int)deprecated
- func (x *FundingPaymentResult) GetFundingPayments() *FundingPayment
- func (x *FundingPaymentResult) GetOperationType() string
- func (x *FundingPaymentResult) GetTimestamp() int64
- func (*FundingPaymentResult) ProtoMessage()
- func (x *FundingPaymentResult) ProtoReflect() protoreflect.Message
- func (x *FundingPaymentResult) Reset()
- func (x *FundingPaymentResult) String() string
- type InjectiveAccountsRPCClient
- type InjectiveAccountsRPCServer
- type InjectiveAccountsRPC_StreamAccountDataClient
- type InjectiveAccountsRPC_StreamAccountDataServer
- type InjectiveAccountsRPC_StreamSubaccountBalanceClient
- type InjectiveAccountsRPC_StreamSubaccountBalanceServer
- type OrderHistoryResult
- func (*OrderHistoryResult) Descriptor() ([]byte, []int)deprecated
- func (x *OrderHistoryResult) GetDerivativeOrderHistory() *DerivativeOrderHistory
- func (x *OrderHistoryResult) GetOperationType() string
- func (m *OrderHistoryResult) GetOrderHistory() isOrderHistoryResult_OrderHistory
- func (x *OrderHistoryResult) GetSpotOrderHistory() *SpotOrderHistory
- func (x *OrderHistoryResult) GetTimestamp() int64
- func (*OrderHistoryResult) ProtoMessage()
- func (x *OrderHistoryResult) ProtoReflect() protoreflect.Message
- func (x *OrderHistoryResult) Reset()
- func (x *OrderHistoryResult) String() string
- type OrderHistoryResult_DerivativeOrderHistory
- type OrderHistoryResult_SpotOrderHistory
- type OrderResult
- func (*OrderResult) Descriptor() ([]byte, []int)deprecated
- func (x *OrderResult) GetDerivativeOrder() *DerivativeLimitOrder
- func (x *OrderResult) GetOperationType() string
- func (m *OrderResult) GetOrder() isOrderResult_Order
- func (x *OrderResult) GetSpotOrder() *SpotLimitOrder
- func (x *OrderResult) GetTimestamp() int64
- func (*OrderResult) ProtoMessage()
- func (x *OrderResult) ProtoReflect() protoreflect.Message
- func (x *OrderResult) Reset()
- func (x *OrderResult) String() string
- type OrderResult_DerivativeOrder
- type OrderResult_SpotOrder
- type OrderStateRecord
- func (*OrderStateRecord) Descriptor() ([]byte, []int)deprecated
- func (x *OrderStateRecord) GetCreatedAt() int64
- func (x *OrderStateRecord) GetMargin() string
- func (x *OrderStateRecord) GetMarketId() string
- func (x *OrderStateRecord) GetOrderHash() string
- func (x *OrderStateRecord) GetOrderSide() string
- func (x *OrderStateRecord) GetOrderType() string
- func (x *OrderStateRecord) GetPrice() string
- func (x *OrderStateRecord) GetQuantityFilled() string
- func (x *OrderStateRecord) GetQuantityRemaining() string
- func (x *OrderStateRecord) GetState() string
- func (x *OrderStateRecord) GetSubaccountId() string
- func (x *OrderStateRecord) GetUpdatedAt() int64
- func (*OrderStateRecord) ProtoMessage()
- func (x *OrderStateRecord) ProtoReflect() protoreflect.Message
- func (x *OrderStateRecord) Reset()
- func (x *OrderStateRecord) String() string
- type OrderStatesRequest
- func (*OrderStatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderStatesRequest) GetDerivativeOrderHashes() []string
- func (x *OrderStatesRequest) GetSpotOrderHashes() []string
- func (*OrderStatesRequest) ProtoMessage()
- func (x *OrderStatesRequest) ProtoReflect() protoreflect.Message
- func (x *OrderStatesRequest) Reset()
- func (x *OrderStatesRequest) String() string
- type OrderStatesResponse
- func (*OrderStatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OrderStatesResponse) GetDerivativeOrderStates() []*OrderStateRecord
- func (x *OrderStatesResponse) GetSpotOrderStates() []*OrderStateRecord
- func (*OrderStatesResponse) ProtoMessage()
- func (x *OrderStatesResponse) ProtoReflect() protoreflect.Message
- func (x *OrderStatesResponse) Reset()
- func (x *OrderStatesResponse) String() string
- type Paging
- func (*Paging) Descriptor() ([]byte, []int)deprecated
- func (x *Paging) GetCountBySubaccount() int64
- func (x *Paging) GetFrom() int32
- func (x *Paging) GetNext() []string
- func (x *Paging) GetTo() int32
- func (x *Paging) GetTotal() int64
- func (*Paging) ProtoMessage()
- func (x *Paging) ProtoReflect() protoreflect.Message
- func (x *Paging) Reset()
- func (x *Paging) String() string
- type PortfolioRequest
- type PortfolioResponse
- func (*PortfolioResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PortfolioResponse) GetPortfolio() *AccountPortfolio
- func (*PortfolioResponse) ProtoMessage()
- func (x *PortfolioResponse) ProtoReflect() protoreflect.Message
- func (x *PortfolioResponse) Reset()
- func (x *PortfolioResponse) String() string
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetCreatedAt() int64
- func (x *Position) GetDirection() string
- func (x *Position) GetEntryPrice() string
- func (x *Position) GetLiquidationPrice() string
- func (x *Position) GetMargin() string
- func (x *Position) GetMarkPrice() string
- func (x *Position) GetMarketId() string
- func (x *Position) GetQuantity() string
- func (x *Position) GetSubaccountId() string
- func (x *Position) GetTicker() string
- func (x *Position) GetUpdatedAt() int64
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- type PositionDelta
- func (*PositionDelta) Descriptor() ([]byte, []int)deprecated
- func (x *PositionDelta) GetExecutionMargin() string
- func (x *PositionDelta) GetExecutionPrice() string
- func (x *PositionDelta) GetExecutionQuantity() string
- func (x *PositionDelta) GetTradeDirection() string
- func (*PositionDelta) ProtoMessage()
- func (x *PositionDelta) ProtoReflect() protoreflect.Message
- func (x *PositionDelta) Reset()
- func (x *PositionDelta) String() string
- type PositionsResult
- func (*PositionsResult) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsResult) GetPosition() *Position
- func (x *PositionsResult) GetTimestamp() int64
- func (*PositionsResult) ProtoMessage()
- func (x *PositionsResult) ProtoReflect() protoreflect.Message
- func (x *PositionsResult) Reset()
- func (x *PositionsResult) String() string
- type PriceLevel
- func (*PriceLevel) Descriptor() ([]byte, []int)deprecated
- func (x *PriceLevel) GetPrice() string
- func (x *PriceLevel) GetQuantity() string
- func (x *PriceLevel) GetTimestamp() int64
- func (*PriceLevel) ProtoMessage()
- func (x *PriceLevel) ProtoReflect() protoreflect.Message
- func (x *PriceLevel) Reset()
- func (x *PriceLevel) String() string
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)deprecated
- func (x *Reward) GetAccountAddress() string
- func (x *Reward) GetDistributedAt() int64
- func (x *Reward) GetRewards() []*Coin
- func (*Reward) ProtoMessage()
- func (x *Reward) ProtoReflect() protoreflect.Message
- func (x *Reward) Reset()
- func (x *Reward) String() string
- type RewardsRequest
- func (*RewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RewardsRequest) GetAccountAddress() string
- func (x *RewardsRequest) GetEpoch() int64
- func (*RewardsRequest) ProtoMessage()
- func (x *RewardsRequest) ProtoReflect() protoreflect.Message
- func (x *RewardsRequest) Reset()
- func (x *RewardsRequest) String() string
- type RewardsResponse
- type SpotLimitOrder
- func (*SpotLimitOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotLimitOrder) GetCid() string
- func (x *SpotLimitOrder) GetCreatedAt() int64
- func (x *SpotLimitOrder) GetFeeRecipient() string
- func (x *SpotLimitOrder) GetMarketId() string
- func (x *SpotLimitOrder) GetOrderHash() string
- func (x *SpotLimitOrder) GetOrderSide() string
- func (x *SpotLimitOrder) GetPrice() string
- func (x *SpotLimitOrder) GetQuantity() string
- func (x *SpotLimitOrder) GetState() string
- func (x *SpotLimitOrder) GetSubaccountId() string
- func (x *SpotLimitOrder) GetTriggerPrice() string
- func (x *SpotLimitOrder) GetTxHash() string
- func (x *SpotLimitOrder) GetUnfilledQuantity() string
- func (x *SpotLimitOrder) GetUpdatedAt() int64
- func (*SpotLimitOrder) ProtoMessage()
- func (x *SpotLimitOrder) ProtoReflect() protoreflect.Message
- func (x *SpotLimitOrder) Reset()
- func (x *SpotLimitOrder) String() string
- type SpotOrderHistory
- func (*SpotOrderHistory) Descriptor() ([]byte, []int)deprecated
- func (x *SpotOrderHistory) GetCid() string
- func (x *SpotOrderHistory) GetCreatedAt() int64
- func (x *SpotOrderHistory) GetDirection() string
- func (x *SpotOrderHistory) GetExecutionType() string
- func (x *SpotOrderHistory) GetFilledQuantity() string
- func (x *SpotOrderHistory) GetIsActive() bool
- func (x *SpotOrderHistory) GetMarketId() string
- func (x *SpotOrderHistory) GetOrderHash() string
- func (x *SpotOrderHistory) GetOrderType() string
- func (x *SpotOrderHistory) GetPrice() string
- func (x *SpotOrderHistory) GetQuantity() string
- func (x *SpotOrderHistory) GetState() string
- func (x *SpotOrderHistory) GetSubaccountId() string
- func (x *SpotOrderHistory) GetTriggerPrice() string
- func (x *SpotOrderHistory) GetTxHash() string
- func (x *SpotOrderHistory) GetUpdatedAt() int64
- func (*SpotOrderHistory) ProtoMessage()
- func (x *SpotOrderHistory) ProtoReflect() protoreflect.Message
- func (x *SpotOrderHistory) Reset()
- func (x *SpotOrderHistory) String() string
- type SpotTrade
- func (*SpotTrade) Descriptor() ([]byte, []int)deprecated
- func (x *SpotTrade) GetCid() string
- func (x *SpotTrade) GetExecutedAt() int64
- func (x *SpotTrade) GetExecutionSide() string
- func (x *SpotTrade) GetFee() string
- func (x *SpotTrade) GetFeeRecipient() string
- func (x *SpotTrade) GetMarketId() string
- func (x *SpotTrade) GetOrderHash() string
- func (x *SpotTrade) GetPrice() *PriceLevel
- func (x *SpotTrade) GetSubaccountId() string
- func (x *SpotTrade) GetTradeDirection() string
- func (x *SpotTrade) GetTradeExecutionType() string
- func (x *SpotTrade) GetTradeId() string
- func (*SpotTrade) ProtoMessage()
- func (x *SpotTrade) ProtoReflect() protoreflect.Message
- func (x *SpotTrade) Reset()
- func (x *SpotTrade) String() string
- type StreamAccountDataRequest
- func (*StreamAccountDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamAccountDataRequest) GetAccountAddress() string
- func (*StreamAccountDataRequest) ProtoMessage()
- func (x *StreamAccountDataRequest) ProtoReflect() protoreflect.Message
- func (x *StreamAccountDataRequest) Reset()
- func (x *StreamAccountDataRequest) String() string
- type StreamAccountDataResponse
- func (*StreamAccountDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamAccountDataResponse) GetFundingPayment() *FundingPaymentResult
- func (x *StreamAccountDataResponse) GetOrder() *OrderResult
- func (x *StreamAccountDataResponse) GetOrderHistory() *OrderHistoryResult
- func (x *StreamAccountDataResponse) GetPosition() *PositionsResult
- func (x *StreamAccountDataResponse) GetSubaccountBalance() *SubaccountBalanceResult
- func (x *StreamAccountDataResponse) GetTrade() *TradeResult
- func (*StreamAccountDataResponse) ProtoMessage()
- func (x *StreamAccountDataResponse) ProtoReflect() protoreflect.Message
- func (x *StreamAccountDataResponse) Reset()
- func (x *StreamAccountDataResponse) String() string
- type StreamSubaccountBalanceRequest
- func (*StreamSubaccountBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamSubaccountBalanceRequest) GetDenoms() []string
- func (x *StreamSubaccountBalanceRequest) GetSubaccountId() string
- func (*StreamSubaccountBalanceRequest) ProtoMessage()
- func (x *StreamSubaccountBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *StreamSubaccountBalanceRequest) Reset()
- func (x *StreamSubaccountBalanceRequest) String() string
- type StreamSubaccountBalanceResponse
- func (*StreamSubaccountBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamSubaccountBalanceResponse) GetBalance() *SubaccountBalance
- func (x *StreamSubaccountBalanceResponse) GetTimestamp() int64
- func (*StreamSubaccountBalanceResponse) ProtoMessage()
- func (x *StreamSubaccountBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *StreamSubaccountBalanceResponse) Reset()
- func (x *StreamSubaccountBalanceResponse) String() string
- type SubaccountBalance
- func (*SubaccountBalance) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountBalance) GetAccountAddress() string
- func (x *SubaccountBalance) GetDenom() string
- func (x *SubaccountBalance) GetDeposit() *SubaccountDeposit
- func (x *SubaccountBalance) GetSubaccountId() string
- func (*SubaccountBalance) ProtoMessage()
- func (x *SubaccountBalance) ProtoReflect() protoreflect.Message
- func (x *SubaccountBalance) Reset()
- func (x *SubaccountBalance) String() string
- type SubaccountBalanceEndpointRequest
- func (*SubaccountBalanceEndpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountBalanceEndpointRequest) GetDenom() string
- func (x *SubaccountBalanceEndpointRequest) GetSubaccountId() string
- func (*SubaccountBalanceEndpointRequest) ProtoMessage()
- func (x *SubaccountBalanceEndpointRequest) ProtoReflect() protoreflect.Message
- func (x *SubaccountBalanceEndpointRequest) Reset()
- func (x *SubaccountBalanceEndpointRequest) String() string
- type SubaccountBalanceEndpointResponse
- func (*SubaccountBalanceEndpointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountBalanceEndpointResponse) GetBalance() *SubaccountBalance
- func (*SubaccountBalanceEndpointResponse) ProtoMessage()
- func (x *SubaccountBalanceEndpointResponse) ProtoReflect() protoreflect.Message
- func (x *SubaccountBalanceEndpointResponse) Reset()
- func (x *SubaccountBalanceEndpointResponse) String() string
- type SubaccountBalanceResult
- func (*SubaccountBalanceResult) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountBalanceResult) GetBalance() *SubaccountBalance
- func (x *SubaccountBalanceResult) GetTimestamp() int64
- func (*SubaccountBalanceResult) ProtoMessage()
- func (x *SubaccountBalanceResult) ProtoReflect() protoreflect.Message
- func (x *SubaccountBalanceResult) Reset()
- func (x *SubaccountBalanceResult) String() string
- type SubaccountBalanceTransfer
- func (*SubaccountBalanceTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountBalanceTransfer) GetAmount() *CosmosCoin
- func (x *SubaccountBalanceTransfer) GetDstAccountAddress() string
- func (x *SubaccountBalanceTransfer) GetDstSubaccountId() string
- func (x *SubaccountBalanceTransfer) GetExecutedAt() int64
- func (x *SubaccountBalanceTransfer) GetSrcAccountAddress() string
- func (x *SubaccountBalanceTransfer) GetSrcSubaccountId() string
- func (x *SubaccountBalanceTransfer) GetTransferType() string
- func (*SubaccountBalanceTransfer) ProtoMessage()
- func (x *SubaccountBalanceTransfer) ProtoReflect() protoreflect.Message
- func (x *SubaccountBalanceTransfer) Reset()
- func (x *SubaccountBalanceTransfer) String() string
- type SubaccountBalancesListRequest
- func (*SubaccountBalancesListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountBalancesListRequest) GetDenoms() []string
- func (x *SubaccountBalancesListRequest) GetSubaccountId() string
- func (*SubaccountBalancesListRequest) ProtoMessage()
- func (x *SubaccountBalancesListRequest) ProtoReflect() protoreflect.Message
- func (x *SubaccountBalancesListRequest) Reset()
- func (x *SubaccountBalancesListRequest) String() string
- type SubaccountBalancesListResponse
- func (*SubaccountBalancesListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountBalancesListResponse) GetBalances() []*SubaccountBalance
- func (*SubaccountBalancesListResponse) ProtoMessage()
- func (x *SubaccountBalancesListResponse) ProtoReflect() protoreflect.Message
- func (x *SubaccountBalancesListResponse) Reset()
- func (x *SubaccountBalancesListResponse) String() string
- type SubaccountDeposit
- func (*SubaccountDeposit) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountDeposit) GetAvailableBalance() string
- func (x *SubaccountDeposit) GetTotalBalance() string
- func (*SubaccountDeposit) ProtoMessage()
- func (x *SubaccountDeposit) ProtoReflect() protoreflect.Message
- func (x *SubaccountDeposit) Reset()
- func (x *SubaccountDeposit) String() string
- type SubaccountHistoryRequest
- func (*SubaccountHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountHistoryRequest) GetDenom() string
- func (x *SubaccountHistoryRequest) GetEndTime() int64
- func (x *SubaccountHistoryRequest) GetLimit() int32
- func (x *SubaccountHistoryRequest) GetSkip() uint64
- func (x *SubaccountHistoryRequest) GetSubaccountId() string
- func (x *SubaccountHistoryRequest) GetTransferTypes() []string
- func (*SubaccountHistoryRequest) ProtoMessage()
- func (x *SubaccountHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *SubaccountHistoryRequest) Reset()
- func (x *SubaccountHistoryRequest) String() string
- type SubaccountHistoryResponse
- func (*SubaccountHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountHistoryResponse) GetPaging() *Paging
- func (x *SubaccountHistoryResponse) GetTransfers() []*SubaccountBalanceTransfer
- func (*SubaccountHistoryResponse) ProtoMessage()
- func (x *SubaccountHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *SubaccountHistoryResponse) Reset()
- func (x *SubaccountHistoryResponse) String() string
- type SubaccountOrderSummaryRequest
- func (*SubaccountOrderSummaryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountOrderSummaryRequest) GetMarketId() string
- func (x *SubaccountOrderSummaryRequest) GetOrderDirection() string
- func (x *SubaccountOrderSummaryRequest) GetSubaccountId() string
- func (*SubaccountOrderSummaryRequest) ProtoMessage()
- func (x *SubaccountOrderSummaryRequest) ProtoReflect() protoreflect.Message
- func (x *SubaccountOrderSummaryRequest) Reset()
- func (x *SubaccountOrderSummaryRequest) String() string
- type SubaccountOrderSummaryResponse
- func (*SubaccountOrderSummaryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountOrderSummaryResponse) GetDerivativeOrdersTotal() int64
- func (x *SubaccountOrderSummaryResponse) GetSpotOrdersTotal() int64
- func (*SubaccountOrderSummaryResponse) ProtoMessage()
- func (x *SubaccountOrderSummaryResponse) ProtoReflect() protoreflect.Message
- func (x *SubaccountOrderSummaryResponse) Reset()
- func (x *SubaccountOrderSummaryResponse) String() string
- type SubaccountPortfolio
- func (*SubaccountPortfolio) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountPortfolio) GetAvailableBalance() string
- func (x *SubaccountPortfolio) GetLockedBalance() string
- func (x *SubaccountPortfolio) GetSubaccountId() string
- func (x *SubaccountPortfolio) GetUnrealizedPnl() string
- func (*SubaccountPortfolio) ProtoMessage()
- func (x *SubaccountPortfolio) ProtoReflect() protoreflect.Message
- func (x *SubaccountPortfolio) Reset()
- func (x *SubaccountPortfolio) String() string
- type SubaccountsListRequest
- func (*SubaccountsListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountsListRequest) GetAccountAddress() string
- func (*SubaccountsListRequest) ProtoMessage()
- func (x *SubaccountsListRequest) ProtoReflect() protoreflect.Message
- func (x *SubaccountsListRequest) Reset()
- func (x *SubaccountsListRequest) String() string
- type SubaccountsListResponse
- func (*SubaccountsListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountsListResponse) GetSubaccounts() []string
- func (*SubaccountsListResponse) ProtoMessage()
- func (x *SubaccountsListResponse) ProtoReflect() protoreflect.Message
- func (x *SubaccountsListResponse) Reset()
- func (x *SubaccountsListResponse) String() string
- type TradeResult
- func (*TradeResult) Descriptor() ([]byte, []int)deprecated
- func (x *TradeResult) GetDerivativeTrade() *DerivativeTrade
- func (x *TradeResult) GetOperationType() string
- func (x *TradeResult) GetSpotTrade() *SpotTrade
- func (x *TradeResult) GetTimestamp() int64
- func (m *TradeResult) GetTrade() isTradeResult_Trade
- func (*TradeResult) ProtoMessage()
- func (x *TradeResult) ProtoReflect() protoreflect.Message
- func (x *TradeResult) Reset()
- func (x *TradeResult) String() string
- type TradeResult_DerivativeTrade
- type TradeResult_SpotTrade
- type UnimplementedInjectiveAccountsRPCServer
- func (UnimplementedInjectiveAccountsRPCServer) OrderStates(context.Context, *OrderStatesRequest) (*OrderStatesResponse, error)
- func (UnimplementedInjectiveAccountsRPCServer) Portfolio(context.Context, *PortfolioRequest) (*PortfolioResponse, error)
- func (UnimplementedInjectiveAccountsRPCServer) Rewards(context.Context, *RewardsRequest) (*RewardsResponse, error)
- func (UnimplementedInjectiveAccountsRPCServer) StreamAccountData(*StreamAccountDataRequest, InjectiveAccountsRPC_StreamAccountDataServer) error
- func (UnimplementedInjectiveAccountsRPCServer) StreamSubaccountBalance(*StreamSubaccountBalanceRequest, ...) error
- func (UnimplementedInjectiveAccountsRPCServer) SubaccountBalanceEndpoint(context.Context, *SubaccountBalanceEndpointRequest) (*SubaccountBalanceEndpointResponse, error)
- func (UnimplementedInjectiveAccountsRPCServer) SubaccountBalancesList(context.Context, *SubaccountBalancesListRequest) (*SubaccountBalancesListResponse, error)
- func (UnimplementedInjectiveAccountsRPCServer) SubaccountHistory(context.Context, *SubaccountHistoryRequest) (*SubaccountHistoryResponse, error)
- func (UnimplementedInjectiveAccountsRPCServer) SubaccountOrderSummary(context.Context, *SubaccountOrderSummaryRequest) (*SubaccountOrderSummaryResponse, error)
- func (UnimplementedInjectiveAccountsRPCServer) SubaccountsList(context.Context, *SubaccountsListRequest) (*SubaccountsListResponse, error)
- type UnsafeInjectiveAccountsRPCServer
Constants ¶
This section is empty.
Variables ¶
var File_goadesign_goagen_injective_accounts_rpc_proto protoreflect.FileDescriptor
var InjectiveAccountsRPC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "injective_accounts_rpc.InjectiveAccountsRPC", HandlerType: (*InjectiveAccountsRPCServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Portfolio", Handler: _InjectiveAccountsRPC_Portfolio_Handler, }, { MethodName: "OrderStates", Handler: _InjectiveAccountsRPC_OrderStates_Handler, }, { MethodName: "SubaccountsList", Handler: _InjectiveAccountsRPC_SubaccountsList_Handler, }, { MethodName: "SubaccountBalancesList", Handler: _InjectiveAccountsRPC_SubaccountBalancesList_Handler, }, { MethodName: "SubaccountBalanceEndpoint", Handler: _InjectiveAccountsRPC_SubaccountBalanceEndpoint_Handler, }, { MethodName: "SubaccountHistory", Handler: _InjectiveAccountsRPC_SubaccountHistory_Handler, }, { MethodName: "SubaccountOrderSummary", Handler: _InjectiveAccountsRPC_SubaccountOrderSummary_Handler, }, { MethodName: "Rewards", Handler: _InjectiveAccountsRPC_Rewards_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamSubaccountBalance", Handler: _InjectiveAccountsRPC_StreamSubaccountBalance_Handler, ServerStreams: true, }, { StreamName: "StreamAccountData", Handler: _InjectiveAccountsRPC_StreamAccountData_Handler, ServerStreams: true, }, }, Metadata: "goadesign_goagen_injective_accounts_rpc.proto", }
InjectiveAccountsRPC_ServiceDesc is the grpc.ServiceDesc for InjectiveAccountsRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInjectiveAccountsRPCHandler ¶ added in v1.32.1
func RegisterInjectiveAccountsRPCHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInjectiveAccountsRPCHandler registers the http handlers for service InjectiveAccountsRPC to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInjectiveAccountsRPCHandlerClient ¶ added in v1.32.1
func RegisterInjectiveAccountsRPCHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InjectiveAccountsRPCClient) error
RegisterInjectiveAccountsRPCHandlerClient registers the http handlers for service InjectiveAccountsRPC to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InjectiveAccountsRPCClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InjectiveAccountsRPCClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InjectiveAccountsRPCClient" to call the correct interceptors.
func RegisterInjectiveAccountsRPCHandlerFromEndpoint ¶ added in v1.32.1
func RegisterInjectiveAccountsRPCHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInjectiveAccountsRPCHandlerFromEndpoint is same as RegisterInjectiveAccountsRPCHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInjectiveAccountsRPCHandlerServer ¶ added in v1.32.1
func RegisterInjectiveAccountsRPCHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InjectiveAccountsRPCServer) error
RegisterInjectiveAccountsRPCHandlerServer registers the http handlers for service InjectiveAccountsRPC to "mux". UnaryRPC :call InjectiveAccountsRPCServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInjectiveAccountsRPCHandlerFromEndpoint instead.
func RegisterInjectiveAccountsRPCServer ¶
func RegisterInjectiveAccountsRPCServer(s grpc.ServiceRegistrar, srv InjectiveAccountsRPCServer)
Types ¶
type AccountPortfolio ¶ added in v1.27.5
type AccountPortfolio struct { // The account's portfolio value in USD. PortfolioValue string `protobuf:"bytes,1,opt,name=portfolio_value,json=portfolioValue,proto3" json:"portfolio_value,omitempty"` // The account's available balance value in USD. AvailableBalance string `protobuf:"bytes,2,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"` // The account's locked balance value in USD. LockedBalance string `protobuf:"bytes,3,opt,name=locked_balance,json=lockedBalance,proto3" json:"locked_balance,omitempty"` // The account's total unrealized PnL value in USD. UnrealizedPnl string `protobuf:"bytes,4,opt,name=unrealized_pnl,json=unrealizedPnl,proto3" json:"unrealized_pnl,omitempty"` // List of all subaccounts' portfolio Subaccounts []*SubaccountPortfolio `protobuf:"bytes,5,rep,name=subaccounts,proto3" json:"subaccounts,omitempty"` // contains filtered or unexported fields }
func (*AccountPortfolio) Descriptor
deprecated
added in
v1.27.5
func (*AccountPortfolio) Descriptor() ([]byte, []int)
Deprecated: Use AccountPortfolio.ProtoReflect.Descriptor instead.
func (*AccountPortfolio) GetAvailableBalance ¶ added in v1.27.5
func (x *AccountPortfolio) GetAvailableBalance() string
func (*AccountPortfolio) GetLockedBalance ¶ added in v1.27.5
func (x *AccountPortfolio) GetLockedBalance() string
func (*AccountPortfolio) GetPortfolioValue ¶ added in v1.27.5
func (x *AccountPortfolio) GetPortfolioValue() string
func (*AccountPortfolio) GetSubaccounts ¶ added in v1.27.5
func (x *AccountPortfolio) GetSubaccounts() []*SubaccountPortfolio
func (*AccountPortfolio) GetUnrealizedPnl ¶ added in v1.27.5
func (x *AccountPortfolio) GetUnrealizedPnl() string
func (*AccountPortfolio) ProtoMessage ¶ added in v1.27.5
func (*AccountPortfolio) ProtoMessage()
func (*AccountPortfolio) ProtoReflect ¶ added in v1.27.5
func (x *AccountPortfolio) ProtoReflect() protoreflect.Message
func (*AccountPortfolio) Reset ¶ added in v1.27.5
func (x *AccountPortfolio) Reset()
func (*AccountPortfolio) String ¶ added in v1.27.5
func (x *AccountPortfolio) String() string
type Coin ¶ added in v1.32.0
type Coin struct { // Denom of the coin Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*Coin) Descriptor
deprecated
added in
v1.32.0
func (*Coin) ProtoMessage ¶ added in v1.32.0
func (*Coin) ProtoMessage()
func (*Coin) ProtoReflect ¶ added in v1.32.0
func (x *Coin) ProtoReflect() protoreflect.Message
type CosmosCoin ¶
type CosmosCoin struct { // Coin denominator Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // Coin amount (big int) Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*CosmosCoin) Descriptor
deprecated
func (*CosmosCoin) Descriptor() ([]byte, []int)
Deprecated: Use CosmosCoin.ProtoReflect.Descriptor instead.
func (*CosmosCoin) GetAmount ¶
func (x *CosmosCoin) GetAmount() string
func (*CosmosCoin) GetDenom ¶
func (x *CosmosCoin) GetDenom() string
func (*CosmosCoin) ProtoMessage ¶
func (*CosmosCoin) ProtoMessage()
func (*CosmosCoin) ProtoReflect ¶
func (x *CosmosCoin) ProtoReflect() protoreflect.Message
func (*CosmosCoin) Reset ¶
func (x *CosmosCoin) Reset()
func (*CosmosCoin) String ¶
func (x *CosmosCoin) String() string
type DerivativeLimitOrder ¶ added in v1.51.0
type DerivativeLimitOrder struct { // Hash of the order OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` // The side of the order OrderSide string `protobuf:"bytes,2,opt,name=order_side,json=orderSide,proto3" json:"order_side,omitempty"` // Derivative Market ID MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The subaccountId that this order belongs to SubaccountId string `protobuf:"bytes,4,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // True if the order is a reduce-only order IsReduceOnly bool `protobuf:"varint,5,opt,name=is_reduce_only,json=isReduceOnly,proto3" json:"is_reduce_only,omitempty"` // Margin of the order Margin string `protobuf:"bytes,6,opt,name=margin,proto3" json:"margin,omitempty"` // Price of the order Price string `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"` // Quantity of the order Quantity string `protobuf:"bytes,8,opt,name=quantity,proto3" json:"quantity,omitempty"` // The amount of the quantity remaining unfilled UnfilledQuantity string `protobuf:"bytes,9,opt,name=unfilled_quantity,json=unfilledQuantity,proto3" json:"unfilled_quantity,omitempty"` // Trigger price is the trigger price used by stop/take orders TriggerPrice string `protobuf:"bytes,10,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"` // Fee recipient address FeeRecipient string `protobuf:"bytes,11,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient,omitempty"` // Order state State string `protobuf:"bytes,12,opt,name=state,proto3" json:"state,omitempty"` // Order committed timestamp in UNIX millis. CreatedAt int64 `protobuf:"zigzag64,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Order updated timestamp in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Order number of subaccount OrderNumber int64 `protobuf:"zigzag64,15,opt,name=order_number,json=orderNumber,proto3" json:"order_number,omitempty"` // Order type OrderType string `protobuf:"bytes,16,opt,name=order_type,json=orderType,proto3" json:"order_type,omitempty"` // Order type IsConditional bool `protobuf:"varint,17,opt,name=is_conditional,json=isConditional,proto3" json:"is_conditional,omitempty"` // Trigger timestamp, only exists for conditional orders TriggerAt uint64 `protobuf:"varint,18,opt,name=trigger_at,json=triggerAt,proto3" json:"trigger_at,omitempty"` // OrderHash of order that is triggered by this conditional order PlacedOrderHash string `protobuf:"bytes,19,opt,name=placed_order_hash,json=placedOrderHash,proto3" json:"placed_order_hash,omitempty"` // Execution type of conditional order ExecutionType string `protobuf:"bytes,20,opt,name=execution_type,json=executionType,proto3" json:"execution_type,omitempty"` // Transaction Hash where order is created. Not all orders have this field TxHash string `protobuf:"bytes,21,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // Custom client order ID Cid string `protobuf:"bytes,22,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*DerivativeLimitOrder) Descriptor
deprecated
added in
v1.51.0
func (*DerivativeLimitOrder) Descriptor() ([]byte, []int)
Deprecated: Use DerivativeLimitOrder.ProtoReflect.Descriptor instead.
func (*DerivativeLimitOrder) GetCid ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetCid() string
func (*DerivativeLimitOrder) GetCreatedAt ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetCreatedAt() int64
func (*DerivativeLimitOrder) GetExecutionType ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetExecutionType() string
func (*DerivativeLimitOrder) GetFeeRecipient ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetFeeRecipient() string
func (*DerivativeLimitOrder) GetIsConditional ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetIsConditional() bool
func (*DerivativeLimitOrder) GetIsReduceOnly ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetIsReduceOnly() bool
func (*DerivativeLimitOrder) GetMargin ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetMargin() string
func (*DerivativeLimitOrder) GetMarketId ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetMarketId() string
func (*DerivativeLimitOrder) GetOrderHash ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetOrderHash() string
func (*DerivativeLimitOrder) GetOrderNumber ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetOrderNumber() int64
func (*DerivativeLimitOrder) GetOrderSide ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetOrderSide() string
func (*DerivativeLimitOrder) GetOrderType ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetOrderType() string
func (*DerivativeLimitOrder) GetPlacedOrderHash ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetPlacedOrderHash() string
func (*DerivativeLimitOrder) GetPrice ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetPrice() string
func (*DerivativeLimitOrder) GetQuantity ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetQuantity() string
func (*DerivativeLimitOrder) GetState ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetState() string
func (*DerivativeLimitOrder) GetSubaccountId ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetSubaccountId() string
func (*DerivativeLimitOrder) GetTriggerAt ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetTriggerAt() uint64
func (*DerivativeLimitOrder) GetTriggerPrice ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetTriggerPrice() string
func (*DerivativeLimitOrder) GetTxHash ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetTxHash() string
func (*DerivativeLimitOrder) GetUnfilledQuantity ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetUnfilledQuantity() string
func (*DerivativeLimitOrder) GetUpdatedAt ¶ added in v1.51.0
func (x *DerivativeLimitOrder) GetUpdatedAt() int64
func (*DerivativeLimitOrder) ProtoMessage ¶ added in v1.51.0
func (*DerivativeLimitOrder) ProtoMessage()
func (*DerivativeLimitOrder) ProtoReflect ¶ added in v1.51.0
func (x *DerivativeLimitOrder) ProtoReflect() protoreflect.Message
func (*DerivativeLimitOrder) Reset ¶ added in v1.51.0
func (x *DerivativeLimitOrder) Reset()
func (*DerivativeLimitOrder) String ¶ added in v1.51.0
func (x *DerivativeLimitOrder) String() string
type DerivativeOrderHistory ¶ added in v1.51.0
type DerivativeOrderHistory struct { // Hash of the order OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` // Spot Market ID is keccak265(baseDenom + quoteDenom) MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // active state of the order IsActive bool `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // The subaccountId that this order belongs to SubaccountId string `protobuf:"bytes,4,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // The execution type ExecutionType string `protobuf:"bytes,5,opt,name=execution_type,json=executionType,proto3" json:"execution_type,omitempty"` // The side of the order OrderType string `protobuf:"bytes,6,opt,name=order_type,json=orderType,proto3" json:"order_type,omitempty"` // Price of the order Price string `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"` // Trigger price TriggerPrice string `protobuf:"bytes,8,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"` // Quantity of the order Quantity string `protobuf:"bytes,9,opt,name=quantity,proto3" json:"quantity,omitempty"` // Filled amount FilledQuantity string `protobuf:"bytes,10,opt,name=filled_quantity,json=filledQuantity,proto3" json:"filled_quantity,omitempty"` // Order state State string `protobuf:"bytes,11,opt,name=state,proto3" json:"state,omitempty"` // Order committed timestamp in UNIX millis. CreatedAt int64 `protobuf:"zigzag64,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Order updated timestamp in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // True if an order is reduce only IsReduceOnly bool `protobuf:"varint,14,opt,name=is_reduce_only,json=isReduceOnly,proto3" json:"is_reduce_only,omitempty"` // Order direction (order side) Direction string `protobuf:"bytes,15,opt,name=direction,proto3" json:"direction,omitempty"` // True if this is conditional order, otherwise false IsConditional bool `protobuf:"varint,16,opt,name=is_conditional,json=isConditional,proto3" json:"is_conditional,omitempty"` // Trigger timestamp in unix milli TriggerAt uint64 `protobuf:"varint,17,opt,name=trigger_at,json=triggerAt,proto3" json:"trigger_at,omitempty"` // Order hash placed when this triggers PlacedOrderHash string `protobuf:"bytes,18,opt,name=placed_order_hash,json=placedOrderHash,proto3" json:"placed_order_hash,omitempty"` // Order's margin Margin string `protobuf:"bytes,19,opt,name=margin,proto3" json:"margin,omitempty"` // Transaction Hash where order is created. Not all orders have this field TxHash string `protobuf:"bytes,20,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // Custom client order ID Cid string `protobuf:"bytes,21,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*DerivativeOrderHistory) Descriptor
deprecated
added in
v1.51.0
func (*DerivativeOrderHistory) Descriptor() ([]byte, []int)
Deprecated: Use DerivativeOrderHistory.ProtoReflect.Descriptor instead.
func (*DerivativeOrderHistory) GetCid ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetCid() string
func (*DerivativeOrderHistory) GetCreatedAt ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetCreatedAt() int64
func (*DerivativeOrderHistory) GetDirection ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetDirection() string
func (*DerivativeOrderHistory) GetExecutionType ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetExecutionType() string
func (*DerivativeOrderHistory) GetFilledQuantity ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetFilledQuantity() string
func (*DerivativeOrderHistory) GetIsActive ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetIsActive() bool
func (*DerivativeOrderHistory) GetIsConditional ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetIsConditional() bool
func (*DerivativeOrderHistory) GetIsReduceOnly ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetIsReduceOnly() bool
func (*DerivativeOrderHistory) GetMargin ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetMargin() string
func (*DerivativeOrderHistory) GetMarketId ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetMarketId() string
func (*DerivativeOrderHistory) GetOrderHash ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetOrderHash() string
func (*DerivativeOrderHistory) GetOrderType ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetOrderType() string
func (*DerivativeOrderHistory) GetPlacedOrderHash ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetPlacedOrderHash() string
func (*DerivativeOrderHistory) GetPrice ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetPrice() string
func (*DerivativeOrderHistory) GetQuantity ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetQuantity() string
func (*DerivativeOrderHistory) GetState ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetState() string
func (*DerivativeOrderHistory) GetSubaccountId ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetSubaccountId() string
func (*DerivativeOrderHistory) GetTriggerAt ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetTriggerAt() uint64
func (*DerivativeOrderHistory) GetTriggerPrice ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetTriggerPrice() string
func (*DerivativeOrderHistory) GetTxHash ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetTxHash() string
func (*DerivativeOrderHistory) GetUpdatedAt ¶ added in v1.51.0
func (x *DerivativeOrderHistory) GetUpdatedAt() int64
func (*DerivativeOrderHistory) ProtoMessage ¶ added in v1.51.0
func (*DerivativeOrderHistory) ProtoMessage()
func (*DerivativeOrderHistory) ProtoReflect ¶ added in v1.51.0
func (x *DerivativeOrderHistory) ProtoReflect() protoreflect.Message
func (*DerivativeOrderHistory) Reset ¶ added in v1.51.0
func (x *DerivativeOrderHistory) Reset()
func (*DerivativeOrderHistory) String ¶ added in v1.51.0
func (x *DerivativeOrderHistory) String() string
type DerivativeTrade ¶ added in v1.51.0
type DerivativeTrade struct { // Order hash. OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` // The subaccountId that executed the trade SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // The ID of the market that this trade is in MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The execution type of the trade TradeExecutionType string `protobuf:"bytes,4,opt,name=trade_execution_type,json=tradeExecutionType,proto3" json:"trade_execution_type,omitempty"` // True if the trade is a liquidation IsLiquidation bool `protobuf:"varint,5,opt,name=is_liquidation,json=isLiquidation,proto3" json:"is_liquidation,omitempty"` // Position Delta from the trade PositionDelta *PositionDelta `protobuf:"bytes,6,opt,name=position_delta,json=positionDelta,proto3" json:"position_delta,omitempty"` // The payout associated with the trade Payout string `protobuf:"bytes,7,opt,name=payout,proto3" json:"payout,omitempty"` // The fee associated with the trade Fee string `protobuf:"bytes,8,opt,name=fee,proto3" json:"fee,omitempty"` // Timestamp of trade execution in UNIX millis ExecutedAt int64 `protobuf:"zigzag64,9,opt,name=executed_at,json=executedAt,proto3" json:"executed_at,omitempty"` // Fee recipient address FeeRecipient string `protobuf:"bytes,10,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient,omitempty"` // A unique string that helps differentiate between trades TradeId string `protobuf:"bytes,11,opt,name=trade_id,json=tradeId,proto3" json:"trade_id,omitempty"` // Trade's execution side, marker/taker ExecutionSide string `protobuf:"bytes,12,opt,name=execution_side,json=executionSide,proto3" json:"execution_side,omitempty"` // Custom client order ID Cid string `protobuf:"bytes,13,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*DerivativeTrade) Descriptor
deprecated
added in
v1.51.0
func (*DerivativeTrade) Descriptor() ([]byte, []int)
Deprecated: Use DerivativeTrade.ProtoReflect.Descriptor instead.
func (*DerivativeTrade) GetCid ¶ added in v1.51.0
func (x *DerivativeTrade) GetCid() string
func (*DerivativeTrade) GetExecutedAt ¶ added in v1.51.0
func (x *DerivativeTrade) GetExecutedAt() int64
func (*DerivativeTrade) GetExecutionSide ¶ added in v1.51.0
func (x *DerivativeTrade) GetExecutionSide() string
func (*DerivativeTrade) GetFee ¶ added in v1.51.0
func (x *DerivativeTrade) GetFee() string
func (*DerivativeTrade) GetFeeRecipient ¶ added in v1.51.0
func (x *DerivativeTrade) GetFeeRecipient() string
func (*DerivativeTrade) GetIsLiquidation ¶ added in v1.51.0
func (x *DerivativeTrade) GetIsLiquidation() bool
func (*DerivativeTrade) GetMarketId ¶ added in v1.51.0
func (x *DerivativeTrade) GetMarketId() string
func (*DerivativeTrade) GetOrderHash ¶ added in v1.51.0
func (x *DerivativeTrade) GetOrderHash() string
func (*DerivativeTrade) GetPayout ¶ added in v1.51.0
func (x *DerivativeTrade) GetPayout() string
func (*DerivativeTrade) GetPositionDelta ¶ added in v1.51.0
func (x *DerivativeTrade) GetPositionDelta() *PositionDelta
func (*DerivativeTrade) GetSubaccountId ¶ added in v1.51.0
func (x *DerivativeTrade) GetSubaccountId() string
func (*DerivativeTrade) GetTradeExecutionType ¶ added in v1.51.0
func (x *DerivativeTrade) GetTradeExecutionType() string
func (*DerivativeTrade) GetTradeId ¶ added in v1.51.0
func (x *DerivativeTrade) GetTradeId() string
func (*DerivativeTrade) ProtoMessage ¶ added in v1.51.0
func (*DerivativeTrade) ProtoMessage()
func (*DerivativeTrade) ProtoReflect ¶ added in v1.51.0
func (x *DerivativeTrade) ProtoReflect() protoreflect.Message
func (*DerivativeTrade) Reset ¶ added in v1.51.0
func (x *DerivativeTrade) Reset()
func (*DerivativeTrade) String ¶ added in v1.51.0
func (x *DerivativeTrade) String() string
type FundingPayment ¶ added in v1.51.0
type FundingPayment struct { // Derivative Market ID MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The subaccountId that the position belongs to SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Amount of the funding payment Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // Timestamp of funding payment in UNIX millis Timestamp int64 `protobuf:"zigzag64,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*FundingPayment) Descriptor
deprecated
added in
v1.51.0
func (*FundingPayment) Descriptor() ([]byte, []int)
Deprecated: Use FundingPayment.ProtoReflect.Descriptor instead.
func (*FundingPayment) GetAmount ¶ added in v1.51.0
func (x *FundingPayment) GetAmount() string
func (*FundingPayment) GetMarketId ¶ added in v1.51.0
func (x *FundingPayment) GetMarketId() string
func (*FundingPayment) GetSubaccountId ¶ added in v1.51.0
func (x *FundingPayment) GetSubaccountId() string
func (*FundingPayment) GetTimestamp ¶ added in v1.51.0
func (x *FundingPayment) GetTimestamp() int64
func (*FundingPayment) ProtoMessage ¶ added in v1.51.0
func (*FundingPayment) ProtoMessage()
func (*FundingPayment) ProtoReflect ¶ added in v1.51.0
func (x *FundingPayment) ProtoReflect() protoreflect.Message
func (*FundingPayment) Reset ¶ added in v1.51.0
func (x *FundingPayment) Reset()
func (*FundingPayment) String ¶ added in v1.51.0
func (x *FundingPayment) String() string
type FundingPaymentResult ¶ added in v1.51.0
type FundingPaymentResult struct { // Funding payments of the account FundingPayments *FundingPayment `protobuf:"bytes,1,opt,name=funding_payments,json=fundingPayments,proto3" json:"funding_payments,omitempty"` // Funding payments type OperationType string `protobuf:"bytes,2,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*FundingPaymentResult) Descriptor
deprecated
added in
v1.51.0
func (*FundingPaymentResult) Descriptor() ([]byte, []int)
Deprecated: Use FundingPaymentResult.ProtoReflect.Descriptor instead.
func (*FundingPaymentResult) GetFundingPayments ¶ added in v1.51.0
func (x *FundingPaymentResult) GetFundingPayments() *FundingPayment
func (*FundingPaymentResult) GetOperationType ¶ added in v1.51.0
func (x *FundingPaymentResult) GetOperationType() string
func (*FundingPaymentResult) GetTimestamp ¶ added in v1.51.0
func (x *FundingPaymentResult) GetTimestamp() int64
func (*FundingPaymentResult) ProtoMessage ¶ added in v1.51.0
func (*FundingPaymentResult) ProtoMessage()
func (*FundingPaymentResult) ProtoReflect ¶ added in v1.51.0
func (x *FundingPaymentResult) ProtoReflect() protoreflect.Message
func (*FundingPaymentResult) Reset ¶ added in v1.51.0
func (x *FundingPaymentResult) Reset()
func (*FundingPaymentResult) String ¶ added in v1.51.0
func (x *FundingPaymentResult) String() string
type InjectiveAccountsRPCClient ¶
type InjectiveAccountsRPCClient interface { // Provide the account's portfolio value in USD. Portfolio(ctx context.Context, in *PortfolioRequest, opts ...grpc.CallOption) (*PortfolioResponse, error) // List order states by order hashes OrderStates(ctx context.Context, in *OrderStatesRequest, opts ...grpc.CallOption) (*OrderStatesResponse, error) // List all subaccounts IDs of an account address SubaccountsList(ctx context.Context, in *SubaccountsListRequest, opts ...grpc.CallOption) (*SubaccountsListResponse, error) // List subaccount balances for the provided denoms. SubaccountBalancesList(ctx context.Context, in *SubaccountBalancesListRequest, opts ...grpc.CallOption) (*SubaccountBalancesListResponse, error) // Gets a balance for specific coin denom SubaccountBalanceEndpoint(ctx context.Context, in *SubaccountBalanceEndpointRequest, opts ...grpc.CallOption) (*SubaccountBalanceEndpointResponse, error) // StreamSubaccountBalance streams new balance changes for a specified // subaccount and denoms. If no denoms are provided, all denom changes are // streamed. StreamSubaccountBalance(ctx context.Context, in *StreamSubaccountBalanceRequest, opts ...grpc.CallOption) (InjectiveAccountsRPC_StreamSubaccountBalanceClient, error) // Get subaccount's deposits and withdrawals history SubaccountHistory(ctx context.Context, in *SubaccountHistoryRequest, opts ...grpc.CallOption) (*SubaccountHistoryResponse, error) // Get subaccount's orders summary SubaccountOrderSummary(ctx context.Context, in *SubaccountOrderSummaryRequest, opts ...grpc.CallOption) (*SubaccountOrderSummaryResponse, error) // Provide historical trading rewards Rewards(ctx context.Context, in *RewardsRequest, opts ...grpc.CallOption) (*RewardsResponse, error) // Stream live data for an account and respective data StreamAccountData(ctx context.Context, in *StreamAccountDataRequest, opts ...grpc.CallOption) (InjectiveAccountsRPC_StreamAccountDataClient, error) }
InjectiveAccountsRPCClient is the client API for InjectiveAccountsRPC 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 NewInjectiveAccountsRPCClient ¶
func NewInjectiveAccountsRPCClient(cc grpc.ClientConnInterface) InjectiveAccountsRPCClient
type InjectiveAccountsRPCServer ¶
type InjectiveAccountsRPCServer interface { // Provide the account's portfolio value in USD. Portfolio(context.Context, *PortfolioRequest) (*PortfolioResponse, error) // List order states by order hashes OrderStates(context.Context, *OrderStatesRequest) (*OrderStatesResponse, error) // List all subaccounts IDs of an account address SubaccountsList(context.Context, *SubaccountsListRequest) (*SubaccountsListResponse, error) // List subaccount balances for the provided denoms. SubaccountBalancesList(context.Context, *SubaccountBalancesListRequest) (*SubaccountBalancesListResponse, error) // Gets a balance for specific coin denom SubaccountBalanceEndpoint(context.Context, *SubaccountBalanceEndpointRequest) (*SubaccountBalanceEndpointResponse, error) // StreamSubaccountBalance streams new balance changes for a specified // subaccount and denoms. If no denoms are provided, all denom changes are // streamed. StreamSubaccountBalance(*StreamSubaccountBalanceRequest, InjectiveAccountsRPC_StreamSubaccountBalanceServer) error // Get subaccount's deposits and withdrawals history SubaccountHistory(context.Context, *SubaccountHistoryRequest) (*SubaccountHistoryResponse, error) // Get subaccount's orders summary SubaccountOrderSummary(context.Context, *SubaccountOrderSummaryRequest) (*SubaccountOrderSummaryResponse, error) // Provide historical trading rewards Rewards(context.Context, *RewardsRequest) (*RewardsResponse, error) // Stream live data for an account and respective data StreamAccountData(*StreamAccountDataRequest, InjectiveAccountsRPC_StreamAccountDataServer) error // contains filtered or unexported methods }
InjectiveAccountsRPCServer is the server API for InjectiveAccountsRPC service. All implementations must embed UnimplementedInjectiveAccountsRPCServer for forward compatibility
type InjectiveAccountsRPC_StreamAccountDataClient ¶ added in v1.51.0
type InjectiveAccountsRPC_StreamAccountDataClient interface { Recv() (*StreamAccountDataResponse, error) grpc.ClientStream }
type InjectiveAccountsRPC_StreamAccountDataServer ¶ added in v1.51.0
type InjectiveAccountsRPC_StreamAccountDataServer interface { Send(*StreamAccountDataResponse) error grpc.ServerStream }
type InjectiveAccountsRPC_StreamSubaccountBalanceClient ¶
type InjectiveAccountsRPC_StreamSubaccountBalanceClient interface { Recv() (*StreamSubaccountBalanceResponse, error) grpc.ClientStream }
type InjectiveAccountsRPC_StreamSubaccountBalanceServer ¶
type InjectiveAccountsRPC_StreamSubaccountBalanceServer interface { Send(*StreamSubaccountBalanceResponse) error grpc.ServerStream }
type OrderHistoryResult ¶ added in v1.51.0
type OrderHistoryResult struct { // Types that are assignable to OrderHistory: // // *OrderHistoryResult_SpotOrderHistory // *OrderHistoryResult_DerivativeOrderHistory OrderHistory isOrderHistoryResult_OrderHistory `protobuf_oneof:"order_history"` // Order update type OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*OrderHistoryResult) Descriptor
deprecated
added in
v1.51.0
func (*OrderHistoryResult) Descriptor() ([]byte, []int)
Deprecated: Use OrderHistoryResult.ProtoReflect.Descriptor instead.
func (*OrderHistoryResult) GetDerivativeOrderHistory ¶ added in v1.51.0
func (x *OrderHistoryResult) GetDerivativeOrderHistory() *DerivativeOrderHistory
func (*OrderHistoryResult) GetOperationType ¶ added in v1.51.0
func (x *OrderHistoryResult) GetOperationType() string
func (*OrderHistoryResult) GetOrderHistory ¶ added in v1.51.0
func (m *OrderHistoryResult) GetOrderHistory() isOrderHistoryResult_OrderHistory
func (*OrderHistoryResult) GetSpotOrderHistory ¶ added in v1.51.0
func (x *OrderHistoryResult) GetSpotOrderHistory() *SpotOrderHistory
func (*OrderHistoryResult) GetTimestamp ¶ added in v1.51.0
func (x *OrderHistoryResult) GetTimestamp() int64
func (*OrderHistoryResult) ProtoMessage ¶ added in v1.51.0
func (*OrderHistoryResult) ProtoMessage()
func (*OrderHistoryResult) ProtoReflect ¶ added in v1.51.0
func (x *OrderHistoryResult) ProtoReflect() protoreflect.Message
func (*OrderHistoryResult) Reset ¶ added in v1.51.0
func (x *OrderHistoryResult) Reset()
func (*OrderHistoryResult) String ¶ added in v1.51.0
func (x *OrderHistoryResult) String() string
type OrderHistoryResult_DerivativeOrderHistory ¶ added in v1.51.0
type OrderHistoryResult_DerivativeOrderHistory struct { // Derivative order history DerivativeOrderHistory *DerivativeOrderHistory `protobuf:"bytes,2,opt,name=derivative_order_history,json=derivativeOrderHistory,proto3,oneof"` }
type OrderHistoryResult_SpotOrderHistory ¶ added in v1.51.0
type OrderHistoryResult_SpotOrderHistory struct { // Spot order history SpotOrderHistory *SpotOrderHistory `protobuf:"bytes,1,opt,name=spot_order_history,json=spotOrderHistory,proto3,oneof"` }
type OrderResult ¶ added in v1.51.0
type OrderResult struct { // Types that are assignable to Order: // // *OrderResult_SpotOrder // *OrderResult_DerivativeOrder Order isOrderResult_Order `protobuf_oneof:"order"` // Executed orders update type OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*OrderResult) Descriptor
deprecated
added in
v1.51.0
func (*OrderResult) Descriptor() ([]byte, []int)
Deprecated: Use OrderResult.ProtoReflect.Descriptor instead.
func (*OrderResult) GetDerivativeOrder ¶ added in v1.51.0
func (x *OrderResult) GetDerivativeOrder() *DerivativeLimitOrder
func (*OrderResult) GetOperationType ¶ added in v1.51.0
func (x *OrderResult) GetOperationType() string
func (*OrderResult) GetOrder ¶ added in v1.51.0
func (m *OrderResult) GetOrder() isOrderResult_Order
func (*OrderResult) GetSpotOrder ¶ added in v1.51.0
func (x *OrderResult) GetSpotOrder() *SpotLimitOrder
func (*OrderResult) GetTimestamp ¶ added in v1.51.0
func (x *OrderResult) GetTimestamp() int64
func (*OrderResult) ProtoMessage ¶ added in v1.51.0
func (*OrderResult) ProtoMessage()
func (*OrderResult) ProtoReflect ¶ added in v1.51.0
func (x *OrderResult) ProtoReflect() protoreflect.Message
func (*OrderResult) Reset ¶ added in v1.51.0
func (x *OrderResult) Reset()
func (*OrderResult) String ¶ added in v1.51.0
func (x *OrderResult) String() string
type OrderResult_DerivativeOrder ¶ added in v1.51.0
type OrderResult_DerivativeOrder struct { // Updated derivative market order DerivativeOrder *DerivativeLimitOrder `protobuf:"bytes,2,opt,name=derivative_order,json=derivativeOrder,proto3,oneof"` }
type OrderResult_SpotOrder ¶ added in v1.51.0
type OrderResult_SpotOrder struct { // Updated spot market order SpotOrder *SpotLimitOrder `protobuf:"bytes,1,opt,name=spot_order,json=spotOrder,proto3,oneof"` }
type OrderStateRecord ¶ added in v1.32.0
type OrderStateRecord struct { // Hash of the order OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` // The subaccountId that this order belongs to SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // The Market ID of the order MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The type of the order OrderType string `protobuf:"bytes,4,opt,name=order_type,json=orderType,proto3" json:"order_type,omitempty"` // The side of the order OrderSide string `protobuf:"bytes,5,opt,name=order_side,json=orderSide,proto3" json:"order_side,omitempty"` // The state (status) of the order State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` // The filled quantity of the order QuantityFilled string `protobuf:"bytes,7,opt,name=quantity_filled,json=quantityFilled,proto3" json:"quantity_filled,omitempty"` // The filled quantity of the order QuantityRemaining string `protobuf:"bytes,8,opt,name=quantity_remaining,json=quantityRemaining,proto3" json:"quantity_remaining,omitempty"` // Order committed timestamp in UNIX millis. CreatedAt int64 `protobuf:"zigzag64,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Order updated timestamp in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Order prices Price string `protobuf:"bytes,11,opt,name=price,proto3" json:"price,omitempty"` // Margin for derivative order Margin string `protobuf:"bytes,12,opt,name=margin,proto3" json:"margin,omitempty"` // contains filtered or unexported fields }
func (*OrderStateRecord) Descriptor
deprecated
added in
v1.32.0
func (*OrderStateRecord) Descriptor() ([]byte, []int)
Deprecated: Use OrderStateRecord.ProtoReflect.Descriptor instead.
func (*OrderStateRecord) GetCreatedAt ¶ added in v1.32.0
func (x *OrderStateRecord) GetCreatedAt() int64
func (*OrderStateRecord) GetMargin ¶ added in v1.49.0
func (x *OrderStateRecord) GetMargin() string
func (*OrderStateRecord) GetMarketId ¶ added in v1.32.0
func (x *OrderStateRecord) GetMarketId() string
func (*OrderStateRecord) GetOrderHash ¶ added in v1.32.0
func (x *OrderStateRecord) GetOrderHash() string
func (*OrderStateRecord) GetOrderSide ¶ added in v1.32.0
func (x *OrderStateRecord) GetOrderSide() string
func (*OrderStateRecord) GetOrderType ¶ added in v1.32.0
func (x *OrderStateRecord) GetOrderType() string
func (*OrderStateRecord) GetPrice ¶ added in v1.49.0
func (x *OrderStateRecord) GetPrice() string
func (*OrderStateRecord) GetQuantityFilled ¶ added in v1.32.0
func (x *OrderStateRecord) GetQuantityFilled() string
func (*OrderStateRecord) GetQuantityRemaining ¶ added in v1.32.0
func (x *OrderStateRecord) GetQuantityRemaining() string
func (*OrderStateRecord) GetState ¶ added in v1.32.0
func (x *OrderStateRecord) GetState() string
func (*OrderStateRecord) GetSubaccountId ¶ added in v1.32.0
func (x *OrderStateRecord) GetSubaccountId() string
func (*OrderStateRecord) GetUpdatedAt ¶ added in v1.32.0
func (x *OrderStateRecord) GetUpdatedAt() int64
func (*OrderStateRecord) ProtoMessage ¶ added in v1.32.0
func (*OrderStateRecord) ProtoMessage()
func (*OrderStateRecord) ProtoReflect ¶ added in v1.32.0
func (x *OrderStateRecord) ProtoReflect() protoreflect.Message
func (*OrderStateRecord) Reset ¶ added in v1.32.0
func (x *OrderStateRecord) Reset()
func (*OrderStateRecord) String ¶ added in v1.32.0
func (x *OrderStateRecord) String() string
type OrderStatesRequest ¶ added in v1.32.0
type OrderStatesRequest struct { SpotOrderHashes []string `protobuf:"bytes,1,rep,name=spot_order_hashes,json=spotOrderHashes,proto3" json:"spot_order_hashes,omitempty"` DerivativeOrderHashes []string `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OrderStatesRequest) Descriptor
deprecated
added in
v1.32.0
func (*OrderStatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderStatesRequest.ProtoReflect.Descriptor instead.
func (*OrderStatesRequest) GetDerivativeOrderHashes ¶ added in v1.32.0
func (x *OrderStatesRequest) GetDerivativeOrderHashes() []string
func (*OrderStatesRequest) GetSpotOrderHashes ¶ added in v1.32.0
func (x *OrderStatesRequest) GetSpotOrderHashes() []string
func (*OrderStatesRequest) ProtoMessage ¶ added in v1.32.0
func (*OrderStatesRequest) ProtoMessage()
func (*OrderStatesRequest) ProtoReflect ¶ added in v1.32.0
func (x *OrderStatesRequest) ProtoReflect() protoreflect.Message
func (*OrderStatesRequest) Reset ¶ added in v1.32.0
func (x *OrderStatesRequest) Reset()
func (*OrderStatesRequest) String ¶ added in v1.32.0
func (x *OrderStatesRequest) String() string
type OrderStatesResponse ¶ added in v1.32.0
type OrderStatesResponse struct { // List of the spot order state records SpotOrderStates []*OrderStateRecord `protobuf:"bytes,1,rep,name=spot_order_states,json=spotOrderStates,proto3" json:"spot_order_states,omitempty"` // List of the derivative order state records DerivativeOrderStates []*OrderStateRecord `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OrderStatesResponse) Descriptor
deprecated
added in
v1.32.0
func (*OrderStatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use OrderStatesResponse.ProtoReflect.Descriptor instead.
func (*OrderStatesResponse) GetDerivativeOrderStates ¶ added in v1.32.0
func (x *OrderStatesResponse) GetDerivativeOrderStates() []*OrderStateRecord
func (*OrderStatesResponse) GetSpotOrderStates ¶ added in v1.32.0
func (x *OrderStatesResponse) GetSpotOrderStates() []*OrderStateRecord
func (*OrderStatesResponse) ProtoMessage ¶ added in v1.32.0
func (*OrderStatesResponse) ProtoMessage()
func (*OrderStatesResponse) ProtoReflect ¶ added in v1.32.0
func (x *OrderStatesResponse) ProtoReflect() protoreflect.Message
func (*OrderStatesResponse) Reset ¶ added in v1.32.0
func (x *OrderStatesResponse) Reset()
func (*OrderStatesResponse) String ¶ added in v1.32.0
func (x *OrderStatesResponse) String() string
type Paging ¶ added in v1.43.4
type Paging struct { // total number of txs saved in database Total int64 `protobuf:"zigzag64,1,opt,name=total,proto3" json:"total,omitempty"` // can be either block height or index num From int32 `protobuf:"zigzag32,2,opt,name=from,proto3" json:"from,omitempty"` // can be either block height or index num To int32 `protobuf:"zigzag32,3,opt,name=to,proto3" json:"to,omitempty"` // count entries by subaccount, serving some places on helix CountBySubaccount int64 `protobuf:"zigzag64,4,opt,name=count_by_subaccount,json=countBySubaccount,proto3" json:"count_by_subaccount,omitempty"` // array of tokens to navigate to the next pages Next []string `protobuf:"bytes,5,rep,name=next,proto3" json:"next,omitempty"` // contains filtered or unexported fields }
Paging defines the structure for required params for handling pagination
func (*Paging) Descriptor
deprecated
added in
v1.43.4
func (*Paging) GetCountBySubaccount ¶ added in v1.43.4
func (*Paging) ProtoMessage ¶ added in v1.43.4
func (*Paging) ProtoMessage()
func (*Paging) ProtoReflect ¶ added in v1.43.4
func (x *Paging) ProtoReflect() protoreflect.Message
type PortfolioRequest ¶ added in v1.27.5
type PortfolioRequest struct { // Account address AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // contains filtered or unexported fields }
func (*PortfolioRequest) Descriptor
deprecated
added in
v1.27.5
func (*PortfolioRequest) Descriptor() ([]byte, []int)
Deprecated: Use PortfolioRequest.ProtoReflect.Descriptor instead.
func (*PortfolioRequest) GetAccountAddress ¶ added in v1.27.5
func (x *PortfolioRequest) GetAccountAddress() string
func (*PortfolioRequest) ProtoMessage ¶ added in v1.27.5
func (*PortfolioRequest) ProtoMessage()
func (*PortfolioRequest) ProtoReflect ¶ added in v1.27.5
func (x *PortfolioRequest) ProtoReflect() protoreflect.Message
func (*PortfolioRequest) Reset ¶ added in v1.27.5
func (x *PortfolioRequest) Reset()
func (*PortfolioRequest) String ¶ added in v1.27.5
func (x *PortfolioRequest) String() string
type PortfolioResponse ¶ added in v1.27.5
type PortfolioResponse struct { // The portfolio of this account Portfolio *AccountPortfolio `protobuf:"bytes,1,opt,name=portfolio,proto3" json:"portfolio,omitempty"` // contains filtered or unexported fields }
func (*PortfolioResponse) Descriptor
deprecated
added in
v1.27.5
func (*PortfolioResponse) Descriptor() ([]byte, []int)
Deprecated: Use PortfolioResponse.ProtoReflect.Descriptor instead.
func (*PortfolioResponse) GetPortfolio ¶ added in v1.27.5
func (x *PortfolioResponse) GetPortfolio() *AccountPortfolio
func (*PortfolioResponse) ProtoMessage ¶ added in v1.27.5
func (*PortfolioResponse) ProtoMessage()
func (*PortfolioResponse) ProtoReflect ¶ added in v1.27.5
func (x *PortfolioResponse) ProtoReflect() protoreflect.Message
func (*PortfolioResponse) Reset ¶ added in v1.27.5
func (x *PortfolioResponse) Reset()
func (*PortfolioResponse) String ¶ added in v1.27.5
func (x *PortfolioResponse) String() string
type Position ¶ added in v1.51.0
type Position struct { // Ticker of the derivative market Ticker string `protobuf:"bytes,1,opt,name=ticker,proto3" json:"ticker,omitempty"` // Derivative Market ID MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The subaccountId that the position belongs to SubaccountId string `protobuf:"bytes,3,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Direction of the position Direction string `protobuf:"bytes,4,opt,name=direction,proto3" json:"direction,omitempty"` // Quantity of the position Quantity string `protobuf:"bytes,5,opt,name=quantity,proto3" json:"quantity,omitempty"` // Price of the position EntryPrice string `protobuf:"bytes,6,opt,name=entry_price,json=entryPrice,proto3" json:"entry_price,omitempty"` // Margin of the position Margin string `protobuf:"bytes,7,opt,name=margin,proto3" json:"margin,omitempty"` // LiquidationPrice of the position LiquidationPrice string `protobuf:"bytes,8,opt,name=liquidation_price,json=liquidationPrice,proto3" json:"liquidation_price,omitempty"` // MarkPrice of the position MarkPrice string `protobuf:"bytes,9,opt,name=mark_price,json=markPrice,proto3" json:"mark_price,omitempty"` // Position updated timestamp in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Position created timestamp in UNIX millis. CreatedAt int64 `protobuf:"zigzag64,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
added in
v1.51.0
func (*Position) GetCreatedAt ¶ added in v1.51.0
func (*Position) GetDirection ¶ added in v1.51.0
func (*Position) GetEntryPrice ¶ added in v1.51.0
func (*Position) GetLiquidationPrice ¶ added in v1.51.0
func (*Position) GetMarkPrice ¶ added in v1.51.0
func (*Position) GetMarketId ¶ added in v1.51.0
func (*Position) GetQuantity ¶ added in v1.51.0
func (*Position) GetSubaccountId ¶ added in v1.51.0
func (*Position) GetUpdatedAt ¶ added in v1.51.0
func (*Position) ProtoMessage ¶ added in v1.51.0
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶ added in v1.51.0
func (x *Position) ProtoReflect() protoreflect.Message
type PositionDelta ¶ added in v1.51.0
type PositionDelta struct { // The direction the trade TradeDirection string `protobuf:"bytes,1,opt,name=trade_direction,json=tradeDirection,proto3" json:"trade_direction,omitempty"` // Execution Price of the trade. ExecutionPrice string `protobuf:"bytes,2,opt,name=execution_price,json=executionPrice,proto3" json:"execution_price,omitempty"` // Execution Quantity of the trade. ExecutionQuantity string `protobuf:"bytes,3,opt,name=execution_quantity,json=executionQuantity,proto3" json:"execution_quantity,omitempty"` // Execution Margin of the trade. ExecutionMargin string `protobuf:"bytes,4,opt,name=execution_margin,json=executionMargin,proto3" json:"execution_margin,omitempty"` // contains filtered or unexported fields }
func (*PositionDelta) Descriptor
deprecated
added in
v1.51.0
func (*PositionDelta) Descriptor() ([]byte, []int)
Deprecated: Use PositionDelta.ProtoReflect.Descriptor instead.
func (*PositionDelta) GetExecutionMargin ¶ added in v1.51.0
func (x *PositionDelta) GetExecutionMargin() string
func (*PositionDelta) GetExecutionPrice ¶ added in v1.51.0
func (x *PositionDelta) GetExecutionPrice() string
func (*PositionDelta) GetExecutionQuantity ¶ added in v1.51.0
func (x *PositionDelta) GetExecutionQuantity() string
func (*PositionDelta) GetTradeDirection ¶ added in v1.51.0
func (x *PositionDelta) GetTradeDirection() string
func (*PositionDelta) ProtoMessage ¶ added in v1.51.0
func (*PositionDelta) ProtoMessage()
func (*PositionDelta) ProtoReflect ¶ added in v1.51.0
func (x *PositionDelta) ProtoReflect() protoreflect.Message
func (*PositionDelta) Reset ¶ added in v1.51.0
func (x *PositionDelta) Reset()
func (*PositionDelta) String ¶ added in v1.51.0
func (x *PositionDelta) String() string
type PositionsResult ¶ added in v1.51.0
type PositionsResult struct { // Updated derivative Position Position *Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*PositionsResult) Descriptor
deprecated
added in
v1.51.0
func (*PositionsResult) Descriptor() ([]byte, []int)
Deprecated: Use PositionsResult.ProtoReflect.Descriptor instead.
func (*PositionsResult) GetPosition ¶ added in v1.51.0
func (x *PositionsResult) GetPosition() *Position
func (*PositionsResult) GetTimestamp ¶ added in v1.51.0
func (x *PositionsResult) GetTimestamp() int64
func (*PositionsResult) ProtoMessage ¶ added in v1.51.0
func (*PositionsResult) ProtoMessage()
func (*PositionsResult) ProtoReflect ¶ added in v1.51.0
func (x *PositionsResult) ProtoReflect() protoreflect.Message
func (*PositionsResult) Reset ¶ added in v1.51.0
func (x *PositionsResult) Reset()
func (*PositionsResult) String ¶ added in v1.51.0
func (x *PositionsResult) String() string
type PriceLevel ¶ added in v1.51.0
type PriceLevel struct { // Price number of the price level. Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` // Quantity of the price level. Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // Price level last updated timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*PriceLevel) Descriptor
deprecated
added in
v1.51.0
func (*PriceLevel) Descriptor() ([]byte, []int)
Deprecated: Use PriceLevel.ProtoReflect.Descriptor instead.
func (*PriceLevel) GetPrice ¶ added in v1.51.0
func (x *PriceLevel) GetPrice() string
func (*PriceLevel) GetQuantity ¶ added in v1.51.0
func (x *PriceLevel) GetQuantity() string
func (*PriceLevel) GetTimestamp ¶ added in v1.51.0
func (x *PriceLevel) GetTimestamp() int64
func (*PriceLevel) ProtoMessage ¶ added in v1.51.0
func (*PriceLevel) ProtoMessage()
func (*PriceLevel) ProtoReflect ¶ added in v1.51.0
func (x *PriceLevel) ProtoReflect() protoreflect.Message
func (*PriceLevel) Reset ¶ added in v1.51.0
func (x *PriceLevel) Reset()
func (*PriceLevel) String ¶ added in v1.51.0
func (x *PriceLevel) String() string
type Reward ¶ added in v1.32.0
type Reward struct { // Account address AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // Reward coins distributed Rewards []*Coin `protobuf:"bytes,2,rep,name=rewards,proto3" json:"rewards,omitempty"` // Rewards distribution timestamp in UNIX millis. DistributedAt int64 `protobuf:"zigzag64,3,opt,name=distributed_at,json=distributedAt,proto3" json:"distributed_at,omitempty"` // contains filtered or unexported fields }
func (*Reward) Descriptor
deprecated
added in
v1.32.0
func (*Reward) GetAccountAddress ¶ added in v1.32.0
func (*Reward) GetDistributedAt ¶ added in v1.32.0
func (*Reward) GetRewards ¶ added in v1.32.0
func (*Reward) ProtoMessage ¶ added in v1.32.0
func (*Reward) ProtoMessage()
func (*Reward) ProtoReflect ¶ added in v1.32.0
func (x *Reward) ProtoReflect() protoreflect.Message
type RewardsRequest ¶ added in v1.32.0
type RewardsRequest struct { // The distribution epoch sequence number. -1 for latest. Epoch int64 `protobuf:"zigzag64,1,opt,name=epoch,proto3" json:"epoch,omitempty"` // Account address for the rewards distribution AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // contains filtered or unexported fields }
func (*RewardsRequest) Descriptor
deprecated
added in
v1.32.0
func (*RewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use RewardsRequest.ProtoReflect.Descriptor instead.
func (*RewardsRequest) GetAccountAddress ¶ added in v1.32.0
func (x *RewardsRequest) GetAccountAddress() string
func (*RewardsRequest) GetEpoch ¶ added in v1.32.0
func (x *RewardsRequest) GetEpoch() int64
func (*RewardsRequest) ProtoMessage ¶ added in v1.32.0
func (*RewardsRequest) ProtoMessage()
func (*RewardsRequest) ProtoReflect ¶ added in v1.32.0
func (x *RewardsRequest) ProtoReflect() protoreflect.Message
func (*RewardsRequest) Reset ¶ added in v1.32.0
func (x *RewardsRequest) Reset()
func (*RewardsRequest) String ¶ added in v1.32.0
func (x *RewardsRequest) String() string
type RewardsResponse ¶ added in v1.32.0
type RewardsResponse struct { // The trading rewards distributed Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
func (*RewardsResponse) Descriptor
deprecated
added in
v1.32.0
func (*RewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use RewardsResponse.ProtoReflect.Descriptor instead.
func (*RewardsResponse) GetRewards ¶ added in v1.32.0
func (x *RewardsResponse) GetRewards() []*Reward
func (*RewardsResponse) ProtoMessage ¶ added in v1.32.0
func (*RewardsResponse) ProtoMessage()
func (*RewardsResponse) ProtoReflect ¶ added in v1.32.0
func (x *RewardsResponse) ProtoReflect() protoreflect.Message
func (*RewardsResponse) Reset ¶ added in v1.32.0
func (x *RewardsResponse) Reset()
func (*RewardsResponse) String ¶ added in v1.32.0
func (x *RewardsResponse) String() string
type SpotLimitOrder ¶ added in v1.51.0
type SpotLimitOrder struct { // Hash of the order OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` // The side of the order OrderSide string `protobuf:"bytes,2,opt,name=order_side,json=orderSide,proto3" json:"order_side,omitempty"` // Spot Market ID is keccak265(baseDenom + quoteDenom) MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The subaccountId that this order belongs to SubaccountId string `protobuf:"bytes,4,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Price of the order Price string `protobuf:"bytes,5,opt,name=price,proto3" json:"price,omitempty"` // Quantity of the order Quantity string `protobuf:"bytes,6,opt,name=quantity,proto3" json:"quantity,omitempty"` // The amount of the quantity remaining unfilled UnfilledQuantity string `protobuf:"bytes,7,opt,name=unfilled_quantity,json=unfilledQuantity,proto3" json:"unfilled_quantity,omitempty"` // Trigger price is the trigger price used by stop/take orders. 0 if the // trigger price is not set. TriggerPrice string `protobuf:"bytes,8,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"` // Fee recipient address FeeRecipient string `protobuf:"bytes,9,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient,omitempty"` // Order state State string `protobuf:"bytes,10,opt,name=state,proto3" json:"state,omitempty"` // Order committed timestamp in UNIX millis. CreatedAt int64 `protobuf:"zigzag64,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Order updated timestamp in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Transaction Hash where order is created. Not all orders have this field TxHash string `protobuf:"bytes,13,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // Custom client order ID Cid string `protobuf:"bytes,14,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*SpotLimitOrder) Descriptor
deprecated
added in
v1.51.0
func (*SpotLimitOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotLimitOrder.ProtoReflect.Descriptor instead.
func (*SpotLimitOrder) GetCid ¶ added in v1.51.0
func (x *SpotLimitOrder) GetCid() string
func (*SpotLimitOrder) GetCreatedAt ¶ added in v1.51.0
func (x *SpotLimitOrder) GetCreatedAt() int64
func (*SpotLimitOrder) GetFeeRecipient ¶ added in v1.51.0
func (x *SpotLimitOrder) GetFeeRecipient() string
func (*SpotLimitOrder) GetMarketId ¶ added in v1.51.0
func (x *SpotLimitOrder) GetMarketId() string
func (*SpotLimitOrder) GetOrderHash ¶ added in v1.51.0
func (x *SpotLimitOrder) GetOrderHash() string
func (*SpotLimitOrder) GetOrderSide ¶ added in v1.51.0
func (x *SpotLimitOrder) GetOrderSide() string
func (*SpotLimitOrder) GetPrice ¶ added in v1.51.0
func (x *SpotLimitOrder) GetPrice() string
func (*SpotLimitOrder) GetQuantity ¶ added in v1.51.0
func (x *SpotLimitOrder) GetQuantity() string
func (*SpotLimitOrder) GetState ¶ added in v1.51.0
func (x *SpotLimitOrder) GetState() string
func (*SpotLimitOrder) GetSubaccountId ¶ added in v1.51.0
func (x *SpotLimitOrder) GetSubaccountId() string
func (*SpotLimitOrder) GetTriggerPrice ¶ added in v1.51.0
func (x *SpotLimitOrder) GetTriggerPrice() string
func (*SpotLimitOrder) GetTxHash ¶ added in v1.51.0
func (x *SpotLimitOrder) GetTxHash() string
func (*SpotLimitOrder) GetUnfilledQuantity ¶ added in v1.51.0
func (x *SpotLimitOrder) GetUnfilledQuantity() string
func (*SpotLimitOrder) GetUpdatedAt ¶ added in v1.51.0
func (x *SpotLimitOrder) GetUpdatedAt() int64
func (*SpotLimitOrder) ProtoMessage ¶ added in v1.51.0
func (*SpotLimitOrder) ProtoMessage()
func (*SpotLimitOrder) ProtoReflect ¶ added in v1.51.0
func (x *SpotLimitOrder) ProtoReflect() protoreflect.Message
func (*SpotLimitOrder) Reset ¶ added in v1.51.0
func (x *SpotLimitOrder) Reset()
func (*SpotLimitOrder) String ¶ added in v1.51.0
func (x *SpotLimitOrder) String() string
type SpotOrderHistory ¶ added in v1.51.0
type SpotOrderHistory struct { // Hash of the order OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` // Spot Market ID is keccak265(baseDenom + quoteDenom) MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // active state of the order IsActive bool `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // The subaccountId that this order belongs to SubaccountId string `protobuf:"bytes,4,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // The execution type ExecutionType string `protobuf:"bytes,5,opt,name=execution_type,json=executionType,proto3" json:"execution_type,omitempty"` // The side of the order OrderType string `protobuf:"bytes,6,opt,name=order_type,json=orderType,proto3" json:"order_type,omitempty"` // Price of the order Price string `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"` // Trigger price TriggerPrice string `protobuf:"bytes,8,opt,name=trigger_price,json=triggerPrice,proto3" json:"trigger_price,omitempty"` // Quantity of the order Quantity string `protobuf:"bytes,9,opt,name=quantity,proto3" json:"quantity,omitempty"` // Filled amount FilledQuantity string `protobuf:"bytes,10,opt,name=filled_quantity,json=filledQuantity,proto3" json:"filled_quantity,omitempty"` // Order state State string `protobuf:"bytes,11,opt,name=state,proto3" json:"state,omitempty"` // Order committed timestamp in UNIX millis. CreatedAt int64 `protobuf:"zigzag64,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Order updated timestamp in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Order direction (order side) Direction string `protobuf:"bytes,14,opt,name=direction,proto3" json:"direction,omitempty"` // Transaction Hash where order is created. Not all orders have this field TxHash string `protobuf:"bytes,15,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // Custom client order ID Cid string `protobuf:"bytes,16,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*SpotOrderHistory) Descriptor
deprecated
added in
v1.51.0
func (*SpotOrderHistory) Descriptor() ([]byte, []int)
Deprecated: Use SpotOrderHistory.ProtoReflect.Descriptor instead.
func (*SpotOrderHistory) GetCid ¶ added in v1.51.0
func (x *SpotOrderHistory) GetCid() string
func (*SpotOrderHistory) GetCreatedAt ¶ added in v1.51.0
func (x *SpotOrderHistory) GetCreatedAt() int64
func (*SpotOrderHistory) GetDirection ¶ added in v1.51.0
func (x *SpotOrderHistory) GetDirection() string
func (*SpotOrderHistory) GetExecutionType ¶ added in v1.51.0
func (x *SpotOrderHistory) GetExecutionType() string
func (*SpotOrderHistory) GetFilledQuantity ¶ added in v1.51.0
func (x *SpotOrderHistory) GetFilledQuantity() string
func (*SpotOrderHistory) GetIsActive ¶ added in v1.51.0
func (x *SpotOrderHistory) GetIsActive() bool
func (*SpotOrderHistory) GetMarketId ¶ added in v1.51.0
func (x *SpotOrderHistory) GetMarketId() string
func (*SpotOrderHistory) GetOrderHash ¶ added in v1.51.0
func (x *SpotOrderHistory) GetOrderHash() string
func (*SpotOrderHistory) GetOrderType ¶ added in v1.51.0
func (x *SpotOrderHistory) GetOrderType() string
func (*SpotOrderHistory) GetPrice ¶ added in v1.51.0
func (x *SpotOrderHistory) GetPrice() string
func (*SpotOrderHistory) GetQuantity ¶ added in v1.51.0
func (x *SpotOrderHistory) GetQuantity() string
func (*SpotOrderHistory) GetState ¶ added in v1.51.0
func (x *SpotOrderHistory) GetState() string
func (*SpotOrderHistory) GetSubaccountId ¶ added in v1.51.0
func (x *SpotOrderHistory) GetSubaccountId() string
func (*SpotOrderHistory) GetTriggerPrice ¶ added in v1.51.0
func (x *SpotOrderHistory) GetTriggerPrice() string
func (*SpotOrderHistory) GetTxHash ¶ added in v1.51.0
func (x *SpotOrderHistory) GetTxHash() string
func (*SpotOrderHistory) GetUpdatedAt ¶ added in v1.51.0
func (x *SpotOrderHistory) GetUpdatedAt() int64
func (*SpotOrderHistory) ProtoMessage ¶ added in v1.51.0
func (*SpotOrderHistory) ProtoMessage()
func (*SpotOrderHistory) ProtoReflect ¶ added in v1.51.0
func (x *SpotOrderHistory) ProtoReflect() protoreflect.Message
func (*SpotOrderHistory) Reset ¶ added in v1.51.0
func (x *SpotOrderHistory) Reset()
func (*SpotOrderHistory) String ¶ added in v1.51.0
func (x *SpotOrderHistory) String() string
type SpotTrade ¶ added in v1.51.0
type SpotTrade struct { // Maker order hash. OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` // The subaccountId that executed the trade SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // The ID of the market that this trade is in MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // The execution type of the trade TradeExecutionType string `protobuf:"bytes,4,opt,name=trade_execution_type,json=tradeExecutionType,proto3" json:"trade_execution_type,omitempty"` // The direction the trade TradeDirection string `protobuf:"bytes,5,opt,name=trade_direction,json=tradeDirection,proto3" json:"trade_direction,omitempty"` // Price level at which trade has been executed Price *PriceLevel `protobuf:"bytes,6,opt,name=price,proto3" json:"price,omitempty"` // The fee associated with the trade (quote asset denom) Fee string `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"` // Timestamp of trade execution in UNIX millis ExecutedAt int64 `protobuf:"zigzag64,8,opt,name=executed_at,json=executedAt,proto3" json:"executed_at,omitempty"` // Fee recipient address FeeRecipient string `protobuf:"bytes,9,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient,omitempty"` // A unique string that helps differentiate between trades TradeId string `protobuf:"bytes,10,opt,name=trade_id,json=tradeId,proto3" json:"trade_id,omitempty"` // Trade's execution side, marker/taker ExecutionSide string `protobuf:"bytes,11,opt,name=execution_side,json=executionSide,proto3" json:"execution_side,omitempty"` // Custom client order ID Cid string `protobuf:"bytes,12,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*SpotTrade) Descriptor
deprecated
added in
v1.51.0
func (*SpotTrade) GetExecutedAt ¶ added in v1.51.0
func (*SpotTrade) GetExecutionSide ¶ added in v1.51.0
func (*SpotTrade) GetFeeRecipient ¶ added in v1.51.0
func (*SpotTrade) GetMarketId ¶ added in v1.51.0
func (*SpotTrade) GetOrderHash ¶ added in v1.51.0
func (*SpotTrade) GetPrice ¶ added in v1.51.0
func (x *SpotTrade) GetPrice() *PriceLevel
func (*SpotTrade) GetSubaccountId ¶ added in v1.51.0
func (*SpotTrade) GetTradeDirection ¶ added in v1.51.0
func (*SpotTrade) GetTradeExecutionType ¶ added in v1.51.0
func (*SpotTrade) GetTradeId ¶ added in v1.51.0
func (*SpotTrade) ProtoMessage ¶ added in v1.51.0
func (*SpotTrade) ProtoMessage()
func (*SpotTrade) ProtoReflect ¶ added in v1.51.0
func (x *SpotTrade) ProtoReflect() protoreflect.Message
type StreamAccountDataRequest ¶ added in v1.51.0
type StreamAccountDataRequest struct { // account address AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // contains filtered or unexported fields }
func (*StreamAccountDataRequest) Descriptor
deprecated
added in
v1.51.0
func (*StreamAccountDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamAccountDataRequest.ProtoReflect.Descriptor instead.
func (*StreamAccountDataRequest) GetAccountAddress ¶ added in v1.51.0
func (x *StreamAccountDataRequest) GetAccountAddress() string
func (*StreamAccountDataRequest) ProtoMessage ¶ added in v1.51.0
func (*StreamAccountDataRequest) ProtoMessage()
func (*StreamAccountDataRequest) ProtoReflect ¶ added in v1.51.0
func (x *StreamAccountDataRequest) ProtoReflect() protoreflect.Message
func (*StreamAccountDataRequest) Reset ¶ added in v1.51.0
func (x *StreamAccountDataRequest) Reset()
func (*StreamAccountDataRequest) String ¶ added in v1.51.0
func (x *StreamAccountDataRequest) String() string
type StreamAccountDataResponse ¶ added in v1.51.0
type StreamAccountDataResponse struct { SubaccountBalance *SubaccountBalanceResult `protobuf:"bytes,1,opt,name=subaccount_balance,json=subaccountBalance,proto3" json:"subaccount_balance,omitempty"` Position *PositionsResult `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` Trade *TradeResult `protobuf:"bytes,3,opt,name=trade,proto3" json:"trade,omitempty"` Order *OrderResult `protobuf:"bytes,4,opt,name=order,proto3" json:"order,omitempty"` OrderHistory *OrderHistoryResult `protobuf:"bytes,5,opt,name=order_history,json=orderHistory,proto3" json:"order_history,omitempty"` FundingPayment *FundingPaymentResult `protobuf:"bytes,6,opt,name=funding_payment,json=fundingPayment,proto3" json:"funding_payment,omitempty"` // contains filtered or unexported fields }
func (*StreamAccountDataResponse) Descriptor
deprecated
added in
v1.51.0
func (*StreamAccountDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamAccountDataResponse.ProtoReflect.Descriptor instead.
func (*StreamAccountDataResponse) GetFundingPayment ¶ added in v1.51.0
func (x *StreamAccountDataResponse) GetFundingPayment() *FundingPaymentResult
func (*StreamAccountDataResponse) GetOrder ¶ added in v1.51.0
func (x *StreamAccountDataResponse) GetOrder() *OrderResult
func (*StreamAccountDataResponse) GetOrderHistory ¶ added in v1.51.0
func (x *StreamAccountDataResponse) GetOrderHistory() *OrderHistoryResult
func (*StreamAccountDataResponse) GetPosition ¶ added in v1.51.0
func (x *StreamAccountDataResponse) GetPosition() *PositionsResult
func (*StreamAccountDataResponse) GetSubaccountBalance ¶ added in v1.51.0
func (x *StreamAccountDataResponse) GetSubaccountBalance() *SubaccountBalanceResult
func (*StreamAccountDataResponse) GetTrade ¶ added in v1.51.0
func (x *StreamAccountDataResponse) GetTrade() *TradeResult
func (*StreamAccountDataResponse) ProtoMessage ¶ added in v1.51.0
func (*StreamAccountDataResponse) ProtoMessage()
func (*StreamAccountDataResponse) ProtoReflect ¶ added in v1.51.0
func (x *StreamAccountDataResponse) ProtoReflect() protoreflect.Message
func (*StreamAccountDataResponse) Reset ¶ added in v1.51.0
func (x *StreamAccountDataResponse) Reset()
func (*StreamAccountDataResponse) String ¶ added in v1.51.0
func (x *StreamAccountDataResponse) String() string
type StreamSubaccountBalanceRequest ¶
type StreamSubaccountBalanceRequest struct { // SubaccountId of the trader we want to get the trades from SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Filter balances by denoms. If not set, the balances of all the denoms for // the subaccount are provided. Denoms []string `protobuf:"bytes,2,rep,name=denoms,proto3" json:"denoms,omitempty"` // contains filtered or unexported fields }
func (*StreamSubaccountBalanceRequest) Descriptor
deprecated
func (*StreamSubaccountBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamSubaccountBalanceRequest.ProtoReflect.Descriptor instead.
func (*StreamSubaccountBalanceRequest) GetDenoms ¶
func (x *StreamSubaccountBalanceRequest) GetDenoms() []string
func (*StreamSubaccountBalanceRequest) GetSubaccountId ¶
func (x *StreamSubaccountBalanceRequest) GetSubaccountId() string
func (*StreamSubaccountBalanceRequest) ProtoMessage ¶
func (*StreamSubaccountBalanceRequest) ProtoMessage()
func (*StreamSubaccountBalanceRequest) ProtoReflect ¶
func (x *StreamSubaccountBalanceRequest) ProtoReflect() protoreflect.Message
func (*StreamSubaccountBalanceRequest) Reset ¶
func (x *StreamSubaccountBalanceRequest) Reset()
func (*StreamSubaccountBalanceRequest) String ¶
func (x *StreamSubaccountBalanceRequest) String() string
type StreamSubaccountBalanceResponse ¶
type StreamSubaccountBalanceResponse struct { // Subaccount balance Balance *SubaccountBalance `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*StreamSubaccountBalanceResponse) Descriptor
deprecated
func (*StreamSubaccountBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamSubaccountBalanceResponse.ProtoReflect.Descriptor instead.
func (*StreamSubaccountBalanceResponse) GetBalance ¶
func (x *StreamSubaccountBalanceResponse) GetBalance() *SubaccountBalance
func (*StreamSubaccountBalanceResponse) GetTimestamp ¶
func (x *StreamSubaccountBalanceResponse) GetTimestamp() int64
func (*StreamSubaccountBalanceResponse) ProtoMessage ¶
func (*StreamSubaccountBalanceResponse) ProtoMessage()
func (*StreamSubaccountBalanceResponse) ProtoReflect ¶
func (x *StreamSubaccountBalanceResponse) ProtoReflect() protoreflect.Message
func (*StreamSubaccountBalanceResponse) Reset ¶
func (x *StreamSubaccountBalanceResponse) Reset()
func (*StreamSubaccountBalanceResponse) String ¶
func (x *StreamSubaccountBalanceResponse) String() string
type SubaccountBalance ¶
type SubaccountBalance struct { // Related subaccount ID SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Account address, owner of this subaccount AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // Coin denom on the chain. Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` Deposit *SubaccountDeposit `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit,omitempty"` // contains filtered or unexported fields }
func (*SubaccountBalance) Descriptor
deprecated
func (*SubaccountBalance) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountBalance.ProtoReflect.Descriptor instead.
func (*SubaccountBalance) GetAccountAddress ¶
func (x *SubaccountBalance) GetAccountAddress() string
func (*SubaccountBalance) GetDenom ¶
func (x *SubaccountBalance) GetDenom() string
func (*SubaccountBalance) GetDeposit ¶
func (x *SubaccountBalance) GetDeposit() *SubaccountDeposit
func (*SubaccountBalance) GetSubaccountId ¶
func (x *SubaccountBalance) GetSubaccountId() string
func (*SubaccountBalance) ProtoMessage ¶
func (*SubaccountBalance) ProtoMessage()
func (*SubaccountBalance) ProtoReflect ¶
func (x *SubaccountBalance) ProtoReflect() protoreflect.Message
func (*SubaccountBalance) Reset ¶
func (x *SubaccountBalance) Reset()
func (*SubaccountBalance) String ¶
func (x *SubaccountBalance) String() string
type SubaccountBalanceEndpointRequest ¶ added in v1.45.2
type SubaccountBalanceEndpointRequest struct { // SubaccountId of the trader we want to get the trades from SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Specify denom to get balance Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` // contains filtered or unexported fields }
func (*SubaccountBalanceEndpointRequest) Descriptor
deprecated
added in
v1.45.2
func (*SubaccountBalanceEndpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountBalanceEndpointRequest.ProtoReflect.Descriptor instead.
func (*SubaccountBalanceEndpointRequest) GetDenom ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointRequest) GetDenom() string
func (*SubaccountBalanceEndpointRequest) GetSubaccountId ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointRequest) GetSubaccountId() string
func (*SubaccountBalanceEndpointRequest) ProtoMessage ¶ added in v1.45.2
func (*SubaccountBalanceEndpointRequest) ProtoMessage()
func (*SubaccountBalanceEndpointRequest) ProtoReflect ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointRequest) ProtoReflect() protoreflect.Message
func (*SubaccountBalanceEndpointRequest) Reset ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointRequest) Reset()
func (*SubaccountBalanceEndpointRequest) String ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointRequest) String() string
type SubaccountBalanceEndpointResponse ¶ added in v1.45.2
type SubaccountBalanceEndpointResponse struct { // Subaccount balance Balance *SubaccountBalance `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
func (*SubaccountBalanceEndpointResponse) Descriptor
deprecated
added in
v1.45.2
func (*SubaccountBalanceEndpointResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountBalanceEndpointResponse.ProtoReflect.Descriptor instead.
func (*SubaccountBalanceEndpointResponse) GetBalance ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointResponse) GetBalance() *SubaccountBalance
func (*SubaccountBalanceEndpointResponse) ProtoMessage ¶ added in v1.45.2
func (*SubaccountBalanceEndpointResponse) ProtoMessage()
func (*SubaccountBalanceEndpointResponse) ProtoReflect ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointResponse) ProtoReflect() protoreflect.Message
func (*SubaccountBalanceEndpointResponse) Reset ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointResponse) Reset()
func (*SubaccountBalanceEndpointResponse) String ¶ added in v1.45.2
func (x *SubaccountBalanceEndpointResponse) String() string
type SubaccountBalanceResult ¶ added in v1.51.0
type SubaccountBalanceResult struct { // Subaccount balance Balance *SubaccountBalance `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*SubaccountBalanceResult) Descriptor
deprecated
added in
v1.51.0
func (*SubaccountBalanceResult) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountBalanceResult.ProtoReflect.Descriptor instead.
func (*SubaccountBalanceResult) GetBalance ¶ added in v1.51.0
func (x *SubaccountBalanceResult) GetBalance() *SubaccountBalance
func (*SubaccountBalanceResult) GetTimestamp ¶ added in v1.51.0
func (x *SubaccountBalanceResult) GetTimestamp() int64
func (*SubaccountBalanceResult) ProtoMessage ¶ added in v1.51.0
func (*SubaccountBalanceResult) ProtoMessage()
func (*SubaccountBalanceResult) ProtoReflect ¶ added in v1.51.0
func (x *SubaccountBalanceResult) ProtoReflect() protoreflect.Message
func (*SubaccountBalanceResult) Reset ¶ added in v1.51.0
func (x *SubaccountBalanceResult) Reset()
func (*SubaccountBalanceResult) String ¶ added in v1.51.0
func (x *SubaccountBalanceResult) String() string
type SubaccountBalanceTransfer ¶
type SubaccountBalanceTransfer struct { // Type of the subaccount balance transfer TransferType string `protobuf:"bytes,1,opt,name=transfer_type,json=transferType,proto3" json:"transfer_type,omitempty"` // Subaccount ID of the sending side SrcSubaccountId string `protobuf:"bytes,2,opt,name=src_subaccount_id,json=srcSubaccountId,proto3" json:"src_subaccount_id,omitempty"` // Account address of the sending side SrcAccountAddress string `protobuf:"bytes,3,opt,name=src_account_address,json=srcAccountAddress,proto3" json:"src_account_address,omitempty"` // Subaccount ID of the receiving side DstSubaccountId string `protobuf:"bytes,4,opt,name=dst_subaccount_id,json=dstSubaccountId,proto3" json:"dst_subaccount_id,omitempty"` // Account address of the receiving side DstAccountAddress string `protobuf:"bytes,5,opt,name=dst_account_address,json=dstAccountAddress,proto3" json:"dst_account_address,omitempty"` // Coin amount of the transfer Amount *CosmosCoin `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` // Timestamp of the transfer in UNIX millis ExecutedAt int64 `protobuf:"zigzag64,7,opt,name=executed_at,json=executedAt,proto3" json:"executed_at,omitempty"` // contains filtered or unexported fields }
func (*SubaccountBalanceTransfer) Descriptor
deprecated
func (*SubaccountBalanceTransfer) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountBalanceTransfer.ProtoReflect.Descriptor instead.
func (*SubaccountBalanceTransfer) GetAmount ¶
func (x *SubaccountBalanceTransfer) GetAmount() *CosmosCoin
func (*SubaccountBalanceTransfer) GetDstAccountAddress ¶
func (x *SubaccountBalanceTransfer) GetDstAccountAddress() string
func (*SubaccountBalanceTransfer) GetDstSubaccountId ¶
func (x *SubaccountBalanceTransfer) GetDstSubaccountId() string
func (*SubaccountBalanceTransfer) GetExecutedAt ¶
func (x *SubaccountBalanceTransfer) GetExecutedAt() int64
func (*SubaccountBalanceTransfer) GetSrcAccountAddress ¶
func (x *SubaccountBalanceTransfer) GetSrcAccountAddress() string
func (*SubaccountBalanceTransfer) GetSrcSubaccountId ¶
func (x *SubaccountBalanceTransfer) GetSrcSubaccountId() string
func (*SubaccountBalanceTransfer) GetTransferType ¶
func (x *SubaccountBalanceTransfer) GetTransferType() string
func (*SubaccountBalanceTransfer) ProtoMessage ¶
func (*SubaccountBalanceTransfer) ProtoMessage()
func (*SubaccountBalanceTransfer) ProtoReflect ¶
func (x *SubaccountBalanceTransfer) ProtoReflect() protoreflect.Message
func (*SubaccountBalanceTransfer) Reset ¶
func (x *SubaccountBalanceTransfer) Reset()
func (*SubaccountBalanceTransfer) String ¶
func (x *SubaccountBalanceTransfer) String() string
type SubaccountBalancesListRequest ¶
type SubaccountBalancesListRequest struct { // SubaccountId of the trader we want to get the trades from SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Filter balances by denoms. If not set, the balances of all the denoms for // the subaccount are provided. Denoms []string `protobuf:"bytes,2,rep,name=denoms,proto3" json:"denoms,omitempty"` // contains filtered or unexported fields }
func (*SubaccountBalancesListRequest) Descriptor
deprecated
func (*SubaccountBalancesListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountBalancesListRequest.ProtoReflect.Descriptor instead.
func (*SubaccountBalancesListRequest) GetDenoms ¶
func (x *SubaccountBalancesListRequest) GetDenoms() []string
func (*SubaccountBalancesListRequest) GetSubaccountId ¶
func (x *SubaccountBalancesListRequest) GetSubaccountId() string
func (*SubaccountBalancesListRequest) ProtoMessage ¶
func (*SubaccountBalancesListRequest) ProtoMessage()
func (*SubaccountBalancesListRequest) ProtoReflect ¶
func (x *SubaccountBalancesListRequest) ProtoReflect() protoreflect.Message
func (*SubaccountBalancesListRequest) Reset ¶
func (x *SubaccountBalancesListRequest) Reset()
func (*SubaccountBalancesListRequest) String ¶
func (x *SubaccountBalancesListRequest) String() string
type SubaccountBalancesListResponse ¶
type SubaccountBalancesListResponse struct { // List of subaccount balances Balances []*SubaccountBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` // contains filtered or unexported fields }
func (*SubaccountBalancesListResponse) Descriptor
deprecated
func (*SubaccountBalancesListResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountBalancesListResponse.ProtoReflect.Descriptor instead.
func (*SubaccountBalancesListResponse) GetBalances ¶
func (x *SubaccountBalancesListResponse) GetBalances() []*SubaccountBalance
func (*SubaccountBalancesListResponse) ProtoMessage ¶
func (*SubaccountBalancesListResponse) ProtoMessage()
func (*SubaccountBalancesListResponse) ProtoReflect ¶
func (x *SubaccountBalancesListResponse) ProtoReflect() protoreflect.Message
func (*SubaccountBalancesListResponse) Reset ¶
func (x *SubaccountBalancesListResponse) Reset()
func (*SubaccountBalancesListResponse) String ¶
func (x *SubaccountBalancesListResponse) String() string
type SubaccountDeposit ¶
type SubaccountDeposit struct { TotalBalance string `protobuf:"bytes,1,opt,name=total_balance,json=totalBalance,proto3" json:"total_balance,omitempty"` AvailableBalance string `protobuf:"bytes,2,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"` // contains filtered or unexported fields }
func (*SubaccountDeposit) Descriptor
deprecated
func (*SubaccountDeposit) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountDeposit.ProtoReflect.Descriptor instead.
func (*SubaccountDeposit) GetAvailableBalance ¶
func (x *SubaccountDeposit) GetAvailableBalance() string
func (*SubaccountDeposit) GetTotalBalance ¶
func (x *SubaccountDeposit) GetTotalBalance() string
func (*SubaccountDeposit) ProtoMessage ¶
func (*SubaccountDeposit) ProtoMessage()
func (*SubaccountDeposit) ProtoReflect ¶
func (x *SubaccountDeposit) ProtoReflect() protoreflect.Message
func (*SubaccountDeposit) Reset ¶
func (x *SubaccountDeposit) Reset()
func (*SubaccountDeposit) String ¶
func (x *SubaccountDeposit) String() string
type SubaccountHistoryRequest ¶
type SubaccountHistoryRequest struct { // SubaccountId of the trader we want to get the history from SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // Filter history by denom Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` // Filter history by transfer type TransferTypes []string `protobuf:"bytes,3,rep,name=transfer_types,json=transferTypes,proto3" json:"transfer_types,omitempty"` // Skip will skip the first n item from the result Skip uint64 `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"` // Limit is used to specify the maximum number of items to be returned Limit int32 `protobuf:"zigzag32,5,opt,name=limit,proto3" json:"limit,omitempty"` // Upper bound of account transfer history's executedAt EndTime int64 `protobuf:"zigzag64,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*SubaccountHistoryRequest) Descriptor
deprecated
func (*SubaccountHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountHistoryRequest.ProtoReflect.Descriptor instead.
func (*SubaccountHistoryRequest) GetDenom ¶
func (x *SubaccountHistoryRequest) GetDenom() string
func (*SubaccountHistoryRequest) GetEndTime ¶ added in v1.43.4
func (x *SubaccountHistoryRequest) GetEndTime() int64
func (*SubaccountHistoryRequest) GetLimit ¶ added in v1.38.3
func (x *SubaccountHistoryRequest) GetLimit() int32
func (*SubaccountHistoryRequest) GetSkip ¶ added in v1.38.3
func (x *SubaccountHistoryRequest) GetSkip() uint64
func (*SubaccountHistoryRequest) GetSubaccountId ¶
func (x *SubaccountHistoryRequest) GetSubaccountId() string
func (*SubaccountHistoryRequest) GetTransferTypes ¶
func (x *SubaccountHistoryRequest) GetTransferTypes() []string
func (*SubaccountHistoryRequest) ProtoMessage ¶
func (*SubaccountHistoryRequest) ProtoMessage()
func (*SubaccountHistoryRequest) ProtoReflect ¶
func (x *SubaccountHistoryRequest) ProtoReflect() protoreflect.Message
func (*SubaccountHistoryRequest) Reset ¶
func (x *SubaccountHistoryRequest) Reset()
func (*SubaccountHistoryRequest) String ¶
func (x *SubaccountHistoryRequest) String() string
type SubaccountHistoryResponse ¶
type SubaccountHistoryResponse struct { // List of subaccount transfers Transfers []*SubaccountBalanceTransfer `protobuf:"bytes,1,rep,name=transfers,proto3" json:"transfers,omitempty"` Paging *Paging `protobuf:"bytes,2,opt,name=paging,proto3" json:"paging,omitempty"` // contains filtered or unexported fields }
func (*SubaccountHistoryResponse) Descriptor
deprecated
func (*SubaccountHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountHistoryResponse.ProtoReflect.Descriptor instead.
func (*SubaccountHistoryResponse) GetPaging ¶ added in v1.43.4
func (x *SubaccountHistoryResponse) GetPaging() *Paging
func (*SubaccountHistoryResponse) GetTransfers ¶
func (x *SubaccountHistoryResponse) GetTransfers() []*SubaccountBalanceTransfer
func (*SubaccountHistoryResponse) ProtoMessage ¶
func (*SubaccountHistoryResponse) ProtoMessage()
func (*SubaccountHistoryResponse) ProtoReflect ¶
func (x *SubaccountHistoryResponse) ProtoReflect() protoreflect.Message
func (*SubaccountHistoryResponse) Reset ¶
func (x *SubaccountHistoryResponse) Reset()
func (*SubaccountHistoryResponse) String ¶
func (x *SubaccountHistoryResponse) String() string
type SubaccountOrderSummaryRequest ¶
type SubaccountOrderSummaryRequest struct { // SubaccountId of the trader we want to get the summary from SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // MarketId is limiting order summary to specific market only MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Filter by direction of the orders OrderDirection string `protobuf:"bytes,3,opt,name=order_direction,json=orderDirection,proto3" json:"order_direction,omitempty"` // contains filtered or unexported fields }
func (*SubaccountOrderSummaryRequest) Descriptor
deprecated
func (*SubaccountOrderSummaryRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountOrderSummaryRequest.ProtoReflect.Descriptor instead.
func (*SubaccountOrderSummaryRequest) GetMarketId ¶
func (x *SubaccountOrderSummaryRequest) GetMarketId() string
func (*SubaccountOrderSummaryRequest) GetOrderDirection ¶
func (x *SubaccountOrderSummaryRequest) GetOrderDirection() string
func (*SubaccountOrderSummaryRequest) GetSubaccountId ¶
func (x *SubaccountOrderSummaryRequest) GetSubaccountId() string
func (*SubaccountOrderSummaryRequest) ProtoMessage ¶
func (*SubaccountOrderSummaryRequest) ProtoMessage()
func (*SubaccountOrderSummaryRequest) ProtoReflect ¶
func (x *SubaccountOrderSummaryRequest) ProtoReflect() protoreflect.Message
func (*SubaccountOrderSummaryRequest) Reset ¶
func (x *SubaccountOrderSummaryRequest) Reset()
func (*SubaccountOrderSummaryRequest) String ¶
func (x *SubaccountOrderSummaryRequest) String() string
type SubaccountOrderSummaryResponse ¶
type SubaccountOrderSummaryResponse struct { // Total count of subaccount's spot orders in given market and direction SpotOrdersTotal int64 `protobuf:"zigzag64,1,opt,name=spot_orders_total,json=spotOrdersTotal,proto3" json:"spot_orders_total,omitempty"` // Total count of subaccount's derivative orders in given market and direction DerivativeOrdersTotal int64 `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SubaccountOrderSummaryResponse) Descriptor
deprecated
func (*SubaccountOrderSummaryResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountOrderSummaryResponse.ProtoReflect.Descriptor instead.
func (*SubaccountOrderSummaryResponse) GetDerivativeOrdersTotal ¶
func (x *SubaccountOrderSummaryResponse) GetDerivativeOrdersTotal() int64
func (*SubaccountOrderSummaryResponse) GetSpotOrdersTotal ¶
func (x *SubaccountOrderSummaryResponse) GetSpotOrdersTotal() int64
func (*SubaccountOrderSummaryResponse) ProtoMessage ¶
func (*SubaccountOrderSummaryResponse) ProtoMessage()
func (*SubaccountOrderSummaryResponse) ProtoReflect ¶
func (x *SubaccountOrderSummaryResponse) ProtoReflect() protoreflect.Message
func (*SubaccountOrderSummaryResponse) Reset ¶
func (x *SubaccountOrderSummaryResponse) Reset()
func (*SubaccountOrderSummaryResponse) String ¶
func (x *SubaccountOrderSummaryResponse) String() string
type SubaccountPortfolio ¶ added in v1.27.5
type SubaccountPortfolio struct { // The ID of this subaccount SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` // The subaccount's available balance value in USD. AvailableBalance string `protobuf:"bytes,2,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"` // The subaccount's locked balance value in USD. LockedBalance string `protobuf:"bytes,3,opt,name=locked_balance,json=lockedBalance,proto3" json:"locked_balance,omitempty"` // The subaccount's total unrealized PnL value in USD. UnrealizedPnl string `protobuf:"bytes,4,opt,name=unrealized_pnl,json=unrealizedPnl,proto3" json:"unrealized_pnl,omitempty"` // contains filtered or unexported fields }
func (*SubaccountPortfolio) Descriptor
deprecated
added in
v1.27.5
func (*SubaccountPortfolio) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountPortfolio.ProtoReflect.Descriptor instead.
func (*SubaccountPortfolio) GetAvailableBalance ¶ added in v1.27.5
func (x *SubaccountPortfolio) GetAvailableBalance() string
func (*SubaccountPortfolio) GetLockedBalance ¶ added in v1.27.5
func (x *SubaccountPortfolio) GetLockedBalance() string
func (*SubaccountPortfolio) GetSubaccountId ¶ added in v1.27.5
func (x *SubaccountPortfolio) GetSubaccountId() string
func (*SubaccountPortfolio) GetUnrealizedPnl ¶ added in v1.27.5
func (x *SubaccountPortfolio) GetUnrealizedPnl() string
func (*SubaccountPortfolio) ProtoMessage ¶ added in v1.27.5
func (*SubaccountPortfolio) ProtoMessage()
func (*SubaccountPortfolio) ProtoReflect ¶ added in v1.27.5
func (x *SubaccountPortfolio) ProtoReflect() protoreflect.Message
func (*SubaccountPortfolio) Reset ¶ added in v1.27.5
func (x *SubaccountPortfolio) Reset()
func (*SubaccountPortfolio) String ¶ added in v1.27.5
func (x *SubaccountPortfolio) String() string
type SubaccountsListRequest ¶
type SubaccountsListRequest struct { // Account address, the subaccounts owner AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // contains filtered or unexported fields }
func (*SubaccountsListRequest) Descriptor
deprecated
func (*SubaccountsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountsListRequest.ProtoReflect.Descriptor instead.
func (*SubaccountsListRequest) GetAccountAddress ¶
func (x *SubaccountsListRequest) GetAccountAddress() string
func (*SubaccountsListRequest) ProtoMessage ¶
func (*SubaccountsListRequest) ProtoMessage()
func (*SubaccountsListRequest) ProtoReflect ¶
func (x *SubaccountsListRequest) ProtoReflect() protoreflect.Message
func (*SubaccountsListRequest) Reset ¶
func (x *SubaccountsListRequest) Reset()
func (*SubaccountsListRequest) String ¶
func (x *SubaccountsListRequest) String() string
type SubaccountsListResponse ¶
type SubaccountsListResponse struct { Subaccounts []string `protobuf:"bytes,1,rep,name=subaccounts,proto3" json:"subaccounts,omitempty"` // contains filtered or unexported fields }
func (*SubaccountsListResponse) Descriptor
deprecated
func (*SubaccountsListResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubaccountsListResponse.ProtoReflect.Descriptor instead.
func (*SubaccountsListResponse) GetSubaccounts ¶
func (x *SubaccountsListResponse) GetSubaccounts() []string
func (*SubaccountsListResponse) ProtoMessage ¶
func (*SubaccountsListResponse) ProtoMessage()
func (*SubaccountsListResponse) ProtoReflect ¶
func (x *SubaccountsListResponse) ProtoReflect() protoreflect.Message
func (*SubaccountsListResponse) Reset ¶
func (x *SubaccountsListResponse) Reset()
func (*SubaccountsListResponse) String ¶
func (x *SubaccountsListResponse) String() string
type TradeResult ¶ added in v1.51.0
type TradeResult struct { // Types that are assignable to Trade: // // *TradeResult_SpotTrade // *TradeResult_DerivativeTrade Trade isTradeResult_Trade `protobuf_oneof:"trade"` // Executed trades update type OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*TradeResult) Descriptor
deprecated
added in
v1.51.0
func (*TradeResult) Descriptor() ([]byte, []int)
Deprecated: Use TradeResult.ProtoReflect.Descriptor instead.
func (*TradeResult) GetDerivativeTrade ¶ added in v1.51.0
func (x *TradeResult) GetDerivativeTrade() *DerivativeTrade
func (*TradeResult) GetOperationType ¶ added in v1.51.0
func (x *TradeResult) GetOperationType() string
func (*TradeResult) GetSpotTrade ¶ added in v1.51.0
func (x *TradeResult) GetSpotTrade() *SpotTrade
func (*TradeResult) GetTimestamp ¶ added in v1.51.0
func (x *TradeResult) GetTimestamp() int64
func (*TradeResult) GetTrade ¶ added in v1.51.0
func (m *TradeResult) GetTrade() isTradeResult_Trade
func (*TradeResult) ProtoMessage ¶ added in v1.51.0
func (*TradeResult) ProtoMessage()
func (*TradeResult) ProtoReflect ¶ added in v1.51.0
func (x *TradeResult) ProtoReflect() protoreflect.Message
func (*TradeResult) Reset ¶ added in v1.51.0
func (x *TradeResult) Reset()
func (*TradeResult) String ¶ added in v1.51.0
func (x *TradeResult) String() string
type TradeResult_DerivativeTrade ¶ added in v1.51.0
type TradeResult_DerivativeTrade struct { // New derivative market trade DerivativeTrade *DerivativeTrade `protobuf:"bytes,2,opt,name=derivative_trade,json=derivativeTrade,proto3,oneof"` }
type TradeResult_SpotTrade ¶ added in v1.51.0
type TradeResult_SpotTrade struct { // New spot market trade SpotTrade *SpotTrade `protobuf:"bytes,1,opt,name=spot_trade,json=spotTrade,proto3,oneof"` }
type UnimplementedInjectiveAccountsRPCServer ¶
type UnimplementedInjectiveAccountsRPCServer struct { }
UnimplementedInjectiveAccountsRPCServer must be embedded to have forward compatible implementations.
func (UnimplementedInjectiveAccountsRPCServer) OrderStates ¶ added in v1.32.0
func (UnimplementedInjectiveAccountsRPCServer) OrderStates(context.Context, *OrderStatesRequest) (*OrderStatesResponse, error)
func (UnimplementedInjectiveAccountsRPCServer) Portfolio ¶ added in v1.27.5
func (UnimplementedInjectiveAccountsRPCServer) Portfolio(context.Context, *PortfolioRequest) (*PortfolioResponse, error)
func (UnimplementedInjectiveAccountsRPCServer) Rewards ¶ added in v1.32.0
func (UnimplementedInjectiveAccountsRPCServer) Rewards(context.Context, *RewardsRequest) (*RewardsResponse, error)
func (UnimplementedInjectiveAccountsRPCServer) StreamAccountData ¶ added in v1.51.0
func (UnimplementedInjectiveAccountsRPCServer) StreamAccountData(*StreamAccountDataRequest, InjectiveAccountsRPC_StreamAccountDataServer) error
func (UnimplementedInjectiveAccountsRPCServer) StreamSubaccountBalance ¶
func (UnimplementedInjectiveAccountsRPCServer) StreamSubaccountBalance(*StreamSubaccountBalanceRequest, InjectiveAccountsRPC_StreamSubaccountBalanceServer) error
func (UnimplementedInjectiveAccountsRPCServer) SubaccountBalanceEndpoint ¶
func (UnimplementedInjectiveAccountsRPCServer) SubaccountBalanceEndpoint(context.Context, *SubaccountBalanceEndpointRequest) (*SubaccountBalanceEndpointResponse, error)
func (UnimplementedInjectiveAccountsRPCServer) SubaccountBalancesList ¶
func (UnimplementedInjectiveAccountsRPCServer) SubaccountBalancesList(context.Context, *SubaccountBalancesListRequest) (*SubaccountBalancesListResponse, error)
func (UnimplementedInjectiveAccountsRPCServer) SubaccountHistory ¶
func (UnimplementedInjectiveAccountsRPCServer) SubaccountHistory(context.Context, *SubaccountHistoryRequest) (*SubaccountHistoryResponse, error)
func (UnimplementedInjectiveAccountsRPCServer) SubaccountOrderSummary ¶
func (UnimplementedInjectiveAccountsRPCServer) SubaccountOrderSummary(context.Context, *SubaccountOrderSummaryRequest) (*SubaccountOrderSummaryResponse, error)
func (UnimplementedInjectiveAccountsRPCServer) SubaccountsList ¶
func (UnimplementedInjectiveAccountsRPCServer) SubaccountsList(context.Context, *SubaccountsListRequest) (*SubaccountsListResponse, error)
type UnsafeInjectiveAccountsRPCServer ¶
type UnsafeInjectiveAccountsRPCServer interface {
// contains filtered or unexported methods
}
UnsafeInjectiveAccountsRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InjectiveAccountsRPCServer will result in compilation errors.