injective_derivative_exchange_rpcpb

package
v1.27.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 8 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_injective_derivative_exchange_rpc_proto protoreflect.FileDescriptor
View Source
var InjectiveDerivativeExchangeRPC_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC",
	HandlerType: (*InjectiveDerivativeExchangeRPCServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Markets",
			Handler:    _InjectiveDerivativeExchangeRPC_Markets_Handler,
		},
		{
			MethodName: "Market",
			Handler:    _InjectiveDerivativeExchangeRPC_Market_Handler,
		},
		{
			MethodName: "Orderbook",
			Handler:    _InjectiveDerivativeExchangeRPC_Orderbook_Handler,
		},
		{
			MethodName: "Orders",
			Handler:    _InjectiveDerivativeExchangeRPC_Orders_Handler,
		},
		{
			MethodName: "Positions",
			Handler:    _InjectiveDerivativeExchangeRPC_Positions_Handler,
		},
		{
			MethodName: "LiquidablePositions",
			Handler:    _InjectiveDerivativeExchangeRPC_LiquidablePositions_Handler,
		},
		{
			MethodName: "FundingPayments",
			Handler:    _InjectiveDerivativeExchangeRPC_FundingPayments_Handler,
		},
		{
			MethodName: "Trades",
			Handler:    _InjectiveDerivativeExchangeRPC_Trades_Handler,
		},
		{
			MethodName: "SubaccountOrdersList",
			Handler:    _InjectiveDerivativeExchangeRPC_SubaccountOrdersList_Handler,
		},
		{
			MethodName: "SubaccountTradesList",
			Handler:    _InjectiveDerivativeExchangeRPC_SubaccountTradesList_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamMarket",
			Handler:       _InjectiveDerivativeExchangeRPC_StreamMarket_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "StreamOrderbook",
			Handler:       _InjectiveDerivativeExchangeRPC_StreamOrderbook_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "StreamPositions",
			Handler:       _InjectiveDerivativeExchangeRPC_StreamPositions_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "StreamOrders",
			Handler:       _InjectiveDerivativeExchangeRPC_StreamOrders_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "StreamTrades",
			Handler:       _InjectiveDerivativeExchangeRPC_StreamTrades_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "injective_derivative_exchange_rpc.proto",
}

InjectiveDerivativeExchangeRPC_ServiceDesc is the grpc.ServiceDesc for InjectiveDerivativeExchangeRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInjectiveDerivativeExchangeRPCServer

func RegisterInjectiveDerivativeExchangeRPCServer(s grpc.ServiceRegistrar, srv InjectiveDerivativeExchangeRPCServer)

Types

type DerivativeLimitOrder

type DerivativeLimitOrder struct {

	// Hash of the order
	OrderHash string `protobuf:"bytes,1,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"`
	// The type 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"`
	// contains filtered or unexported fields
}

func (*DerivativeLimitOrder) Descriptor deprecated

func (*DerivativeLimitOrder) Descriptor() ([]byte, []int)

Deprecated: Use DerivativeLimitOrder.ProtoReflect.Descriptor instead.

func (*DerivativeLimitOrder) GetCreatedAt

func (x *DerivativeLimitOrder) GetCreatedAt() int64

func (*DerivativeLimitOrder) GetFeeRecipient

func (x *DerivativeLimitOrder) GetFeeRecipient() string

func (*DerivativeLimitOrder) GetIsReduceOnly

func (x *DerivativeLimitOrder) GetIsReduceOnly() bool

func (*DerivativeLimitOrder) GetMargin

func (x *DerivativeLimitOrder) GetMargin() string

func (*DerivativeLimitOrder) GetMarketId

func (x *DerivativeLimitOrder) GetMarketId() string

func (*DerivativeLimitOrder) GetOrderHash

func (x *DerivativeLimitOrder) GetOrderHash() string

func (*DerivativeLimitOrder) GetOrderSide added in v1.23.6

func (x *DerivativeLimitOrder) GetOrderSide() string

func (*DerivativeLimitOrder) GetPrice

func (x *DerivativeLimitOrder) GetPrice() string

func (*DerivativeLimitOrder) GetQuantity

func (x *DerivativeLimitOrder) GetQuantity() string

func (*DerivativeLimitOrder) GetState

func (x *DerivativeLimitOrder) GetState() string

func (*DerivativeLimitOrder) GetSubaccountId

func (x *DerivativeLimitOrder) GetSubaccountId() string

func (*DerivativeLimitOrder) GetTriggerPrice

func (x *DerivativeLimitOrder) GetTriggerPrice() string

func (*DerivativeLimitOrder) GetUnfilledQuantity

func (x *DerivativeLimitOrder) GetUnfilledQuantity() string

func (*DerivativeLimitOrder) GetUpdatedAt

func (x *DerivativeLimitOrder) GetUpdatedAt() int64

func (*DerivativeLimitOrder) ProtoMessage

func (*DerivativeLimitOrder) ProtoMessage()

func (*DerivativeLimitOrder) ProtoReflect

func (x *DerivativeLimitOrder) ProtoReflect() protoreflect.Message

func (*DerivativeLimitOrder) Reset

func (x *DerivativeLimitOrder) Reset()

func (*DerivativeLimitOrder) String

func (x *DerivativeLimitOrder) String() string

type DerivativeLimitOrderbook

type DerivativeLimitOrderbook struct {

	// Array of price levels for buys
	Buys []*PriceLevel `protobuf:"bytes,1,rep,name=buys,proto3" json:"buys,omitempty"`
	// Array of price levels for sells
	Sells []*PriceLevel `protobuf:"bytes,2,rep,name=sells,proto3" json:"sells,omitempty"`
	// contains filtered or unexported fields
}

func (*DerivativeLimitOrderbook) Descriptor deprecated

func (*DerivativeLimitOrderbook) Descriptor() ([]byte, []int)

Deprecated: Use DerivativeLimitOrderbook.ProtoReflect.Descriptor instead.

func (*DerivativeLimitOrderbook) GetBuys

func (x *DerivativeLimitOrderbook) GetBuys() []*PriceLevel

func (*DerivativeLimitOrderbook) GetSells

func (x *DerivativeLimitOrderbook) GetSells() []*PriceLevel

func (*DerivativeLimitOrderbook) ProtoMessage

func (*DerivativeLimitOrderbook) ProtoMessage()

func (*DerivativeLimitOrderbook) ProtoReflect

func (x *DerivativeLimitOrderbook) ProtoReflect() protoreflect.Message

func (*DerivativeLimitOrderbook) Reset

func (x *DerivativeLimitOrderbook) Reset()

func (*DerivativeLimitOrderbook) String

func (x *DerivativeLimitOrderbook) String() string

type DerivativeMarketInfo

type DerivativeMarketInfo struct {

	// DerivativeMarket ID is crypto.Keccak256Hash([]byte((oracleType.String() +
	// ticker + quoteDenom + oracleBase + oracleQuote))) for perpetual markets and
	// crypto.Keccak256Hash([]byte((oracleType.String() + ticker + quoteDenom +
	// oracleBase + oracleQuote + strconv.Itoa(int(expiry))))) for expiry futures
	// markets
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// The status of the market
	MarketStatus string `protobuf:"bytes,2,opt,name=market_status,json=marketStatus,proto3" json:"market_status,omitempty"`
	// A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote
	// asset.
	Ticker string `protobuf:"bytes,3,opt,name=ticker,proto3" json:"ticker,omitempty"`
	// Oracle base currency
	OracleBase string `protobuf:"bytes,4,opt,name=oracle_base,json=oracleBase,proto3" json:"oracle_base,omitempty"`
	// Oracle quote currency
	OracleQuote string `protobuf:"bytes,5,opt,name=oracle_quote,json=oracleQuote,proto3" json:"oracle_quote,omitempty"`
	// Oracle Type
	OracleType string `protobuf:"bytes,6,opt,name=oracle_type,json=oracleType,proto3" json:"oracle_type,omitempty"`
	// OracleScaleFactor
	OracleScaleFactor uint32 `protobuf:"varint,7,opt,name=oracle_scale_factor,json=oracleScaleFactor,proto3" json:"oracle_scale_factor,omitempty"`
	// Defines the initial margin ratio of a derivative market
	InitialMarginRatio string `protobuf:"bytes,8,opt,name=initial_margin_ratio,json=initialMarginRatio,proto3" json:"initial_margin_ratio,omitempty"`
	// Defines the maintenance margin ratio of a derivative market
	MaintenanceMarginRatio string `` /* 129-byte string literal not displayed */
	// Coin denom used for the quote asset.
	QuoteDenom string `protobuf:"bytes,10,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"`
	// Token metadata for quote asset, only for Ethereum-based assets
	QuoteTokenMeta *TokenMeta `protobuf:"bytes,11,opt,name=quote_token_meta,json=quoteTokenMeta,proto3" json:"quote_token_meta,omitempty"`
	// Defines the fee percentage makers pay when trading (in quote asset)
	MakerFeeRate string `protobuf:"bytes,12,opt,name=maker_fee_rate,json=makerFeeRate,proto3" json:"maker_fee_rate,omitempty"`
	// Defines the fee percentage takers pay when trading (in quote asset)
	TakerFeeRate string `protobuf:"bytes,13,opt,name=taker_fee_rate,json=takerFeeRate,proto3" json:"taker_fee_rate,omitempty"`
	// Percentage of the transaction fee shared with the service provider
	ServiceProviderFee string `protobuf:"bytes,14,opt,name=service_provider_fee,json=serviceProviderFee,proto3" json:"service_provider_fee,omitempty"`
	// True if the market is a perpetual swap market
	IsPerpetual bool `protobuf:"varint,15,opt,name=is_perpetual,json=isPerpetual,proto3" json:"is_perpetual,omitempty"`
	// Defines the minimum required tick size for the order's price
	MinPriceTickSize string `protobuf:"bytes,16,opt,name=min_price_tick_size,json=minPriceTickSize,proto3" json:"min_price_tick_size,omitempty"`
	// Defines the minimum required tick size for the order's quantity
	MinQuantityTickSize     string                   `protobuf:"bytes,17,opt,name=min_quantity_tick_size,json=minQuantityTickSize,proto3" json:"min_quantity_tick_size,omitempty"`
	PerpetualMarketInfo     *PerpetualMarketInfo     `protobuf:"bytes,18,opt,name=perpetual_market_info,json=perpetualMarketInfo,proto3" json:"perpetual_market_info,omitempty"`
	PerpetualMarketFunding  *PerpetualMarketFunding  `` /* 130-byte string literal not displayed */
	ExpiryFuturesMarketInfo *ExpiryFuturesMarketInfo `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DerivativeMarketInfo) Descriptor deprecated

func (*DerivativeMarketInfo) Descriptor() ([]byte, []int)

Deprecated: Use DerivativeMarketInfo.ProtoReflect.Descriptor instead.

func (*DerivativeMarketInfo) GetExpiryFuturesMarketInfo added in v1.23.6

func (x *DerivativeMarketInfo) GetExpiryFuturesMarketInfo() *ExpiryFuturesMarketInfo

func (*DerivativeMarketInfo) GetInitialMarginRatio

func (x *DerivativeMarketInfo) GetInitialMarginRatio() string

func (*DerivativeMarketInfo) GetIsPerpetual

func (x *DerivativeMarketInfo) GetIsPerpetual() bool

func (*DerivativeMarketInfo) GetMaintenanceMarginRatio

func (x *DerivativeMarketInfo) GetMaintenanceMarginRatio() string

func (*DerivativeMarketInfo) GetMakerFeeRate

func (x *DerivativeMarketInfo) GetMakerFeeRate() string

func (*DerivativeMarketInfo) GetMarketId

func (x *DerivativeMarketInfo) GetMarketId() string

func (*DerivativeMarketInfo) GetMarketStatus

func (x *DerivativeMarketInfo) GetMarketStatus() string

func (*DerivativeMarketInfo) GetMinPriceTickSize

func (x *DerivativeMarketInfo) GetMinPriceTickSize() string

func (*DerivativeMarketInfo) GetMinQuantityTickSize

func (x *DerivativeMarketInfo) GetMinQuantityTickSize() string

func (*DerivativeMarketInfo) GetOracleBase

func (x *DerivativeMarketInfo) GetOracleBase() string

func (*DerivativeMarketInfo) GetOracleQuote

func (x *DerivativeMarketInfo) GetOracleQuote() string

func (*DerivativeMarketInfo) GetOracleScaleFactor

func (x *DerivativeMarketInfo) GetOracleScaleFactor() uint32

func (*DerivativeMarketInfo) GetOracleType

func (x *DerivativeMarketInfo) GetOracleType() string

func (*DerivativeMarketInfo) GetPerpetualMarketFunding added in v1.23.6

func (x *DerivativeMarketInfo) GetPerpetualMarketFunding() *PerpetualMarketFunding

func (*DerivativeMarketInfo) GetPerpetualMarketInfo added in v1.23.6

func (x *DerivativeMarketInfo) GetPerpetualMarketInfo() *PerpetualMarketInfo

func (*DerivativeMarketInfo) GetQuoteDenom

func (x *DerivativeMarketInfo) GetQuoteDenom() string

func (*DerivativeMarketInfo) GetQuoteTokenMeta

func (x *DerivativeMarketInfo) GetQuoteTokenMeta() *TokenMeta

func (*DerivativeMarketInfo) GetServiceProviderFee

func (x *DerivativeMarketInfo) GetServiceProviderFee() string

func (*DerivativeMarketInfo) GetTakerFeeRate

func (x *DerivativeMarketInfo) GetTakerFeeRate() string

func (*DerivativeMarketInfo) GetTicker

func (x *DerivativeMarketInfo) GetTicker() string

func (*DerivativeMarketInfo) ProtoMessage

func (*DerivativeMarketInfo) ProtoMessage()

func (*DerivativeMarketInfo) ProtoReflect

func (x *DerivativeMarketInfo) ProtoReflect() protoreflect.Message

func (*DerivativeMarketInfo) Reset

func (x *DerivativeMarketInfo) Reset()

func (*DerivativeMarketInfo) String

func (x *DerivativeMarketInfo) String() string

type DerivativePosition

type DerivativePosition 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"`
	// Aggregate Quantity of the Reduce Only orders associated with the position
	AggregateReduceOnlyQuantity string `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DerivativePosition) Descriptor deprecated

func (*DerivativePosition) Descriptor() ([]byte, []int)

Deprecated: Use DerivativePosition.ProtoReflect.Descriptor instead.

func (*DerivativePosition) GetAggregateReduceOnlyQuantity added in v1.23.6

func (x *DerivativePosition) GetAggregateReduceOnlyQuantity() string

func (*DerivativePosition) GetDirection

func (x *DerivativePosition) GetDirection() string

func (*DerivativePosition) GetEntryPrice

func (x *DerivativePosition) GetEntryPrice() string

func (*DerivativePosition) GetLiquidationPrice

func (x *DerivativePosition) GetLiquidationPrice() string

func (*DerivativePosition) GetMargin

func (x *DerivativePosition) GetMargin() string

func (*DerivativePosition) GetMarkPrice

func (x *DerivativePosition) GetMarkPrice() string

func (*DerivativePosition) GetMarketId

func (x *DerivativePosition) GetMarketId() string

func (*DerivativePosition) GetQuantity

func (x *DerivativePosition) GetQuantity() string

func (*DerivativePosition) GetSubaccountId

func (x *DerivativePosition) GetSubaccountId() string

func (*DerivativePosition) GetTicker

func (x *DerivativePosition) GetTicker() string

func (*DerivativePosition) ProtoMessage

func (*DerivativePosition) ProtoMessage()

func (*DerivativePosition) ProtoReflect

func (x *DerivativePosition) ProtoReflect() protoreflect.Message

func (*DerivativePosition) Reset

func (x *DerivativePosition) Reset()

func (*DerivativePosition) String

func (x *DerivativePosition) String() string

type DerivativeTrade

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"`
	// contains filtered or unexported fields
}

func (*DerivativeTrade) Descriptor deprecated

func (*DerivativeTrade) Descriptor() ([]byte, []int)

Deprecated: Use DerivativeTrade.ProtoReflect.Descriptor instead.

func (*DerivativeTrade) GetExecutedAt

func (x *DerivativeTrade) GetExecutedAt() int64

func (*DerivativeTrade) GetFee

func (x *DerivativeTrade) GetFee() string

func (*DerivativeTrade) GetIsLiquidation

func (x *DerivativeTrade) GetIsLiquidation() bool

func (*DerivativeTrade) GetMarketId

func (x *DerivativeTrade) GetMarketId() string

func (*DerivativeTrade) GetOrderHash

func (x *DerivativeTrade) GetOrderHash() string

func (*DerivativeTrade) GetPayout

func (x *DerivativeTrade) GetPayout() string

func (*DerivativeTrade) GetPositionDelta

func (x *DerivativeTrade) GetPositionDelta() *PositionDelta

func (*DerivativeTrade) GetSubaccountId

func (x *DerivativeTrade) GetSubaccountId() string

func (*DerivativeTrade) GetTradeExecutionType

func (x *DerivativeTrade) GetTradeExecutionType() string

func (*DerivativeTrade) ProtoMessage

func (*DerivativeTrade) ProtoMessage()

func (*DerivativeTrade) ProtoReflect

func (x *DerivativeTrade) ProtoReflect() protoreflect.Message

func (*DerivativeTrade) Reset

func (x *DerivativeTrade) Reset()

func (*DerivativeTrade) String

func (x *DerivativeTrade) String() string

type ExpiryFuturesMarketInfo added in v1.23.6

type ExpiryFuturesMarketInfo struct {

	// Defines the expiration time for a time expiry futures market in UNIX seconds.
	ExpirationTimestamp int64 `protobuf:"zigzag64,1,opt,name=expiration_timestamp,json=expirationTimestamp,proto3" json:"expiration_timestamp,omitempty"`
	// Defines the settlement price for a time expiry futures market.
	SettlementPrice string `protobuf:"bytes,2,opt,name=settlement_price,json=settlementPrice,proto3" json:"settlement_price,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpiryFuturesMarketInfo) Descriptor deprecated added in v1.23.6

func (*ExpiryFuturesMarketInfo) Descriptor() ([]byte, []int)

Deprecated: Use ExpiryFuturesMarketInfo.ProtoReflect.Descriptor instead.

func (*ExpiryFuturesMarketInfo) GetExpirationTimestamp added in v1.23.6

func (x *ExpiryFuturesMarketInfo) GetExpirationTimestamp() int64

func (*ExpiryFuturesMarketInfo) GetSettlementPrice added in v1.23.6

func (x *ExpiryFuturesMarketInfo) GetSettlementPrice() string

func (*ExpiryFuturesMarketInfo) ProtoMessage added in v1.23.6

func (*ExpiryFuturesMarketInfo) ProtoMessage()

func (*ExpiryFuturesMarketInfo) ProtoReflect added in v1.23.6

func (x *ExpiryFuturesMarketInfo) ProtoReflect() protoreflect.Message

func (*ExpiryFuturesMarketInfo) Reset added in v1.23.6

func (x *ExpiryFuturesMarketInfo) Reset()

func (*ExpiryFuturesMarketInfo) String added in v1.23.6

func (x *ExpiryFuturesMarketInfo) String() string

type FundingPayment added in v1.27.5

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.27.5

func (*FundingPayment) Descriptor() ([]byte, []int)

Deprecated: Use FundingPayment.ProtoReflect.Descriptor instead.

func (*FundingPayment) GetAmount added in v1.27.5

func (x *FundingPayment) GetAmount() string

func (*FundingPayment) GetMarketId added in v1.27.5

func (x *FundingPayment) GetMarketId() string

func (*FundingPayment) GetSubaccountId added in v1.27.5

func (x *FundingPayment) GetSubaccountId() string

func (*FundingPayment) GetTimestamp added in v1.27.5

func (x *FundingPayment) GetTimestamp() int64

func (*FundingPayment) ProtoMessage added in v1.27.5

func (*FundingPayment) ProtoMessage()

func (*FundingPayment) ProtoReflect added in v1.27.5

func (x *FundingPayment) ProtoReflect() protoreflect.Message

func (*FundingPayment) Reset added in v1.27.5

func (x *FundingPayment) Reset()

func (*FundingPayment) String added in v1.27.5

func (x *FundingPayment) String() string

type FundingPaymentsRequest added in v1.27.5

type FundingPaymentsRequest struct {

	// SubaccountId of the trader we want to get the positions from
	SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// MarketId of the position we want to fetch
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FundingPaymentsRequest) Descriptor deprecated added in v1.27.5

func (*FundingPaymentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use FundingPaymentsRequest.ProtoReflect.Descriptor instead.

func (*FundingPaymentsRequest) GetMarketId added in v1.27.5

func (x *FundingPaymentsRequest) GetMarketId() string

func (*FundingPaymentsRequest) GetSubaccountId added in v1.27.5

func (x *FundingPaymentsRequest) GetSubaccountId() string

func (*FundingPaymentsRequest) ProtoMessage added in v1.27.5

func (*FundingPaymentsRequest) ProtoMessage()

func (*FundingPaymentsRequest) ProtoReflect added in v1.27.5

func (x *FundingPaymentsRequest) ProtoReflect() protoreflect.Message

func (*FundingPaymentsRequest) Reset added in v1.27.5

func (x *FundingPaymentsRequest) Reset()

func (*FundingPaymentsRequest) String added in v1.27.5

func (x *FundingPaymentsRequest) String() string

type FundingPaymentsResponse added in v1.27.5

type FundingPaymentsResponse struct {

	// List of funding payments
	Payments []*FundingPayment `protobuf:"bytes,1,rep,name=payments,proto3" json:"payments,omitempty"`
	// contains filtered or unexported fields
}

func (*FundingPaymentsResponse) Descriptor deprecated added in v1.27.5

func (*FundingPaymentsResponse) Descriptor() ([]byte, []int)

Deprecated: Use FundingPaymentsResponse.ProtoReflect.Descriptor instead.

func (*FundingPaymentsResponse) GetPayments added in v1.27.5

func (x *FundingPaymentsResponse) GetPayments() []*FundingPayment

func (*FundingPaymentsResponse) ProtoMessage added in v1.27.5

func (*FundingPaymentsResponse) ProtoMessage()

func (*FundingPaymentsResponse) ProtoReflect added in v1.27.5

func (x *FundingPaymentsResponse) ProtoReflect() protoreflect.Message

func (*FundingPaymentsResponse) Reset added in v1.27.5

func (x *FundingPaymentsResponse) Reset()

func (*FundingPaymentsResponse) String added in v1.27.5

func (x *FundingPaymentsResponse) String() string

type InjectiveDerivativeExchangeRPCClient

type InjectiveDerivativeExchangeRPCClient interface {
	// Markets gets a list of Derivative Markets
	Markets(ctx context.Context, in *MarketsRequest, opts ...grpc.CallOption) (*MarketsResponse, error)
	// Market gets details of a single derivative market
	Market(ctx context.Context, in *MarketRequest, opts ...grpc.CallOption) (*MarketResponse, error)
	// StreamMarket streams live updates of selected derivative markets
	StreamMarket(ctx context.Context, in *StreamMarketRequest, opts ...grpc.CallOption) (InjectiveDerivativeExchangeRPC_StreamMarketClient, error)
	// Orderbook gets the Orderbook of a Derivative Market
	Orderbook(ctx context.Context, in *OrderbookRequest, opts ...grpc.CallOption) (*OrderbookResponse, error)
	// StreamOrderbook streams live updates of selected derivative market orderbook.
	StreamOrderbook(ctx context.Context, in *StreamOrderbookRequest, opts ...grpc.CallOption) (InjectiveDerivativeExchangeRPC_StreamOrderbookClient, error)
	// DerivativeLimitOrders gets the limit orders of a Derivative Market.
	Orders(ctx context.Context, in *OrdersRequest, opts ...grpc.CallOption) (*OrdersResponse, error)
	// Positions gets the positions for a trader.
	Positions(ctx context.Context, in *PositionsRequest, opts ...grpc.CallOption) (*PositionsResponse, error)
	// LiquidablePositions gets all the liquidable positions.
	LiquidablePositions(ctx context.Context, in *LiquidablePositionsRequest, opts ...grpc.CallOption) (*LiquidablePositionsResponse, error)
	// FundingPayments gets the funding payments for a trader.
	FundingPayments(ctx context.Context, in *FundingPaymentsRequest, opts ...grpc.CallOption) (*FundingPaymentsResponse, error)
	// StreamPositions streams derivatives position updates.
	StreamPositions(ctx context.Context, in *StreamPositionsRequest, opts ...grpc.CallOption) (InjectiveDerivativeExchangeRPC_StreamPositionsClient, error)
	// StreamOrders streams updates to individual orders of a Derivative Market.
	StreamOrders(ctx context.Context, in *StreamOrdersRequest, opts ...grpc.CallOption) (InjectiveDerivativeExchangeRPC_StreamOrdersClient, error)
	// Trades gets the trades of a Derivative Market.
	Trades(ctx context.Context, in *TradesRequest, opts ...grpc.CallOption) (*TradesResponse, error)
	// StreamTrades streams newly executed trades from Derivative Market.
	StreamTrades(ctx context.Context, in *StreamTradesRequest, opts ...grpc.CallOption) (InjectiveDerivativeExchangeRPC_StreamTradesClient, error)
	// SubaccountOrdersList lists orders posted from this subaccount.
	SubaccountOrdersList(ctx context.Context, in *SubaccountOrdersListRequest, opts ...grpc.CallOption) (*SubaccountOrdersListResponse, error)
	// SubaccountTradesList gets a list of derivatives trades executed by this
	// subaccount.
	SubaccountTradesList(ctx context.Context, in *SubaccountTradesListRequest, opts ...grpc.CallOption) (*SubaccountTradesListResponse, error)
}

InjectiveDerivativeExchangeRPCClient is the client API for InjectiveDerivativeExchangeRPC 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.

type InjectiveDerivativeExchangeRPCServer

type InjectiveDerivativeExchangeRPCServer interface {
	// Markets gets a list of Derivative Markets
	Markets(context.Context, *MarketsRequest) (*MarketsResponse, error)
	// Market gets details of a single derivative market
	Market(context.Context, *MarketRequest) (*MarketResponse, error)
	// StreamMarket streams live updates of selected derivative markets
	StreamMarket(*StreamMarketRequest, InjectiveDerivativeExchangeRPC_StreamMarketServer) error
	// Orderbook gets the Orderbook of a Derivative Market
	Orderbook(context.Context, *OrderbookRequest) (*OrderbookResponse, error)
	// StreamOrderbook streams live updates of selected derivative market orderbook.
	StreamOrderbook(*StreamOrderbookRequest, InjectiveDerivativeExchangeRPC_StreamOrderbookServer) error
	// DerivativeLimitOrders gets the limit orders of a Derivative Market.
	Orders(context.Context, *OrdersRequest) (*OrdersResponse, error)
	// Positions gets the positions for a trader.
	Positions(context.Context, *PositionsRequest) (*PositionsResponse, error)
	// LiquidablePositions gets all the liquidable positions.
	LiquidablePositions(context.Context, *LiquidablePositionsRequest) (*LiquidablePositionsResponse, error)
	// FundingPayments gets the funding payments for a trader.
	FundingPayments(context.Context, *FundingPaymentsRequest) (*FundingPaymentsResponse, error)
	// StreamPositions streams derivatives position updates.
	StreamPositions(*StreamPositionsRequest, InjectiveDerivativeExchangeRPC_StreamPositionsServer) error
	// StreamOrders streams updates to individual orders of a Derivative Market.
	StreamOrders(*StreamOrdersRequest, InjectiveDerivativeExchangeRPC_StreamOrdersServer) error
	// Trades gets the trades of a Derivative Market.
	Trades(context.Context, *TradesRequest) (*TradesResponse, error)
	// StreamTrades streams newly executed trades from Derivative Market.
	StreamTrades(*StreamTradesRequest, InjectiveDerivativeExchangeRPC_StreamTradesServer) error
	// SubaccountOrdersList lists orders posted from this subaccount.
	SubaccountOrdersList(context.Context, *SubaccountOrdersListRequest) (*SubaccountOrdersListResponse, error)
	// SubaccountTradesList gets a list of derivatives trades executed by this
	// subaccount.
	SubaccountTradesList(context.Context, *SubaccountTradesListRequest) (*SubaccountTradesListResponse, error)
	// contains filtered or unexported methods
}

InjectiveDerivativeExchangeRPCServer is the server API for InjectiveDerivativeExchangeRPC service. All implementations must embed UnimplementedInjectiveDerivativeExchangeRPCServer for forward compatibility

type InjectiveDerivativeExchangeRPC_StreamMarketClient

type InjectiveDerivativeExchangeRPC_StreamMarketClient interface {
	Recv() (*StreamMarketResponse, error)
	grpc.ClientStream
}

type InjectiveDerivativeExchangeRPC_StreamMarketServer

type InjectiveDerivativeExchangeRPC_StreamMarketServer interface {
	Send(*StreamMarketResponse) error
	grpc.ServerStream
}

type InjectiveDerivativeExchangeRPC_StreamOrderbookClient

type InjectiveDerivativeExchangeRPC_StreamOrderbookClient interface {
	Recv() (*StreamOrderbookResponse, error)
	grpc.ClientStream
}

type InjectiveDerivativeExchangeRPC_StreamOrderbookServer

type InjectiveDerivativeExchangeRPC_StreamOrderbookServer interface {
	Send(*StreamOrderbookResponse) error
	grpc.ServerStream
}

type InjectiveDerivativeExchangeRPC_StreamOrdersClient

type InjectiveDerivativeExchangeRPC_StreamOrdersClient interface {
	Recv() (*StreamOrdersResponse, error)
	grpc.ClientStream
}

type InjectiveDerivativeExchangeRPC_StreamOrdersServer

type InjectiveDerivativeExchangeRPC_StreamOrdersServer interface {
	Send(*StreamOrdersResponse) error
	grpc.ServerStream
}

type InjectiveDerivativeExchangeRPC_StreamPositionsClient

type InjectiveDerivativeExchangeRPC_StreamPositionsClient interface {
	Recv() (*StreamPositionsResponse, error)
	grpc.ClientStream
}

type InjectiveDerivativeExchangeRPC_StreamPositionsServer

type InjectiveDerivativeExchangeRPC_StreamPositionsServer interface {
	Send(*StreamPositionsResponse) error
	grpc.ServerStream
}

type InjectiveDerivativeExchangeRPC_StreamTradesClient

type InjectiveDerivativeExchangeRPC_StreamTradesClient interface {
	Recv() (*StreamTradesResponse, error)
	grpc.ClientStream
}

type InjectiveDerivativeExchangeRPC_StreamTradesServer

type InjectiveDerivativeExchangeRPC_StreamTradesServer interface {
	Send(*StreamTradesResponse) error
	grpc.ServerStream
}

type LiquidablePositionsRequest

type LiquidablePositionsRequest struct {

	// Market ID to filter orders for specific market
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LiquidablePositionsRequest) Descriptor deprecated

func (*LiquidablePositionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use LiquidablePositionsRequest.ProtoReflect.Descriptor instead.

func (*LiquidablePositionsRequest) GetMarketId

func (x *LiquidablePositionsRequest) GetMarketId() string

func (*LiquidablePositionsRequest) ProtoMessage

func (*LiquidablePositionsRequest) ProtoMessage()

func (*LiquidablePositionsRequest) ProtoReflect

func (*LiquidablePositionsRequest) Reset

func (x *LiquidablePositionsRequest) Reset()

func (*LiquidablePositionsRequest) String

func (x *LiquidablePositionsRequest) String() string

type LiquidablePositionsResponse

type LiquidablePositionsResponse struct {

	// List of derivative positions
	Positions []*DerivativePosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"`
	// contains filtered or unexported fields
}

func (*LiquidablePositionsResponse) Descriptor deprecated

func (*LiquidablePositionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use LiquidablePositionsResponse.ProtoReflect.Descriptor instead.

func (*LiquidablePositionsResponse) GetPositions

func (x *LiquidablePositionsResponse) GetPositions() []*DerivativePosition

func (*LiquidablePositionsResponse) ProtoMessage

func (*LiquidablePositionsResponse) ProtoMessage()

func (*LiquidablePositionsResponse) ProtoReflect

func (*LiquidablePositionsResponse) Reset

func (x *LiquidablePositionsResponse) Reset()

func (*LiquidablePositionsResponse) String

func (x *LiquidablePositionsResponse) String() string

type MarketRequest

type MarketRequest struct {

	// MarketId of the market we want to fetch
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketRequest) Descriptor deprecated

func (*MarketRequest) Descriptor() ([]byte, []int)

Deprecated: Use MarketRequest.ProtoReflect.Descriptor instead.

func (*MarketRequest) GetMarketId

func (x *MarketRequest) GetMarketId() string

func (*MarketRequest) ProtoMessage

func (*MarketRequest) ProtoMessage()

func (*MarketRequest) ProtoReflect

func (x *MarketRequest) ProtoReflect() protoreflect.Message

func (*MarketRequest) Reset

func (x *MarketRequest) Reset()

func (*MarketRequest) String

func (x *MarketRequest) String() string

type MarketResponse

type MarketResponse struct {

	// Info about particular derivative market
	Market *DerivativeMarketInfo `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketResponse) Descriptor deprecated

func (*MarketResponse) Descriptor() ([]byte, []int)

Deprecated: Use MarketResponse.ProtoReflect.Descriptor instead.

func (*MarketResponse) GetMarket

func (x *MarketResponse) GetMarket() *DerivativeMarketInfo

func (*MarketResponse) ProtoMessage

func (*MarketResponse) ProtoMessage()

func (*MarketResponse) ProtoReflect

func (x *MarketResponse) ProtoReflect() protoreflect.Message

func (*MarketResponse) Reset

func (x *MarketResponse) Reset()

func (*MarketResponse) String

func (x *MarketResponse) String() string

type MarketsRequest

type MarketsRequest struct {

	// Filter by market status
	MarketStatus string `protobuf:"bytes,1,opt,name=market_status,json=marketStatus,proto3" json:"market_status,omitempty"`
	// Filter by the Coin denomination of the quote currency
	QuoteDenom string `protobuf:"bytes,2,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketsRequest) Descriptor deprecated

func (*MarketsRequest) Descriptor() ([]byte, []int)

Deprecated: Use MarketsRequest.ProtoReflect.Descriptor instead.

func (*MarketsRequest) GetMarketStatus

func (x *MarketsRequest) GetMarketStatus() string

func (*MarketsRequest) GetQuoteDenom

func (x *MarketsRequest) GetQuoteDenom() string

func (*MarketsRequest) ProtoMessage

func (*MarketsRequest) ProtoMessage()

func (*MarketsRequest) ProtoReflect

func (x *MarketsRequest) ProtoReflect() protoreflect.Message

func (*MarketsRequest) Reset

func (x *MarketsRequest) Reset()

func (*MarketsRequest) String

func (x *MarketsRequest) String() string

type MarketsResponse

type MarketsResponse struct {

	// Derivative Markets list
	Markets []*DerivativeMarketInfo `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketsResponse) Descriptor deprecated

func (*MarketsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MarketsResponse.ProtoReflect.Descriptor instead.

func (*MarketsResponse) GetMarkets

func (x *MarketsResponse) GetMarkets() []*DerivativeMarketInfo

func (*MarketsResponse) ProtoMessage

func (*MarketsResponse) ProtoMessage()

func (*MarketsResponse) ProtoReflect

func (x *MarketsResponse) ProtoReflect() protoreflect.Message

func (*MarketsResponse) Reset

func (x *MarketsResponse) Reset()

func (*MarketsResponse) String

func (x *MarketsResponse) String() string

type OrderbookRequest

type OrderbookRequest struct {

	// MarketId of the market's orderbook we want to fetch
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderbookRequest) Descriptor deprecated

func (*OrderbookRequest) Descriptor() ([]byte, []int)

Deprecated: Use OrderbookRequest.ProtoReflect.Descriptor instead.

func (*OrderbookRequest) GetMarketId

func (x *OrderbookRequest) GetMarketId() string

func (*OrderbookRequest) ProtoMessage

func (*OrderbookRequest) ProtoMessage()

func (*OrderbookRequest) ProtoReflect

func (x *OrderbookRequest) ProtoReflect() protoreflect.Message

func (*OrderbookRequest) Reset

func (x *OrderbookRequest) Reset()

func (*OrderbookRequest) String

func (x *OrderbookRequest) String() string

type OrderbookResponse

type OrderbookResponse struct {

	// Orderbook of a particular derivative market
	Orderbook *DerivativeLimitOrderbook `protobuf:"bytes,1,opt,name=orderbook,proto3" json:"orderbook,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderbookResponse) Descriptor deprecated

func (*OrderbookResponse) Descriptor() ([]byte, []int)

Deprecated: Use OrderbookResponse.ProtoReflect.Descriptor instead.

func (*OrderbookResponse) GetOrderbook

func (x *OrderbookResponse) GetOrderbook() *DerivativeLimitOrderbook

func (*OrderbookResponse) ProtoMessage

func (*OrderbookResponse) ProtoMessage()

func (*OrderbookResponse) ProtoReflect

func (x *OrderbookResponse) ProtoReflect() protoreflect.Message

func (*OrderbookResponse) Reset

func (x *OrderbookResponse) Reset()

func (*OrderbookResponse) String

func (x *OrderbookResponse) String() string

type OrdersRequest

type OrdersRequest struct {

	// MarketId of the market's orderbook we want to fetch
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Look for specific order side
	OrderSide string `protobuf:"bytes,2,opt,name=order_side,json=orderSide,proto3" json:"order_side,omitempty"`
	// Look for specific subaccountId of an order
	SubaccountId string `protobuf:"bytes,3,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// contains filtered or unexported fields
}

func (*OrdersRequest) Descriptor deprecated

func (*OrdersRequest) Descriptor() ([]byte, []int)

Deprecated: Use OrdersRequest.ProtoReflect.Descriptor instead.

func (*OrdersRequest) GetMarketId

func (x *OrdersRequest) GetMarketId() string

func (*OrdersRequest) GetOrderSide added in v1.23.6

func (x *OrdersRequest) GetOrderSide() string

func (*OrdersRequest) GetSubaccountId

func (x *OrdersRequest) GetSubaccountId() string

func (*OrdersRequest) ProtoMessage

func (*OrdersRequest) ProtoMessage()

func (*OrdersRequest) ProtoReflect

func (x *OrdersRequest) ProtoReflect() protoreflect.Message

func (*OrdersRequest) Reset

func (x *OrdersRequest) Reset()

func (*OrdersRequest) String

func (x *OrdersRequest) String() string

type OrdersResponse

type OrdersResponse struct {

	// List of derivative market orders
	Orders []*DerivativeLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*OrdersResponse) Descriptor deprecated

func (*OrdersResponse) Descriptor() ([]byte, []int)

Deprecated: Use OrdersResponse.ProtoReflect.Descriptor instead.

func (*OrdersResponse) GetOrders

func (x *OrdersResponse) GetOrders() []*DerivativeLimitOrder

func (*OrdersResponse) ProtoMessage

func (*OrdersResponse) ProtoMessage()

func (*OrdersResponse) ProtoReflect

func (x *OrdersResponse) ProtoReflect() protoreflect.Message

func (*OrdersResponse) Reset

func (x *OrdersResponse) Reset()

func (*OrdersResponse) String

func (x *OrdersResponse) String() string

type PerpetualMarketFunding added in v1.23.6

type PerpetualMarketFunding struct {

	// Defines the cumulative funding of a perpetual market.
	CumulativeFunding string `protobuf:"bytes,1,opt,name=cumulative_funding,json=cumulativeFunding,proto3" json:"cumulative_funding,omitempty"`
	// Defines defines the cumulative price for the current hour up to the last
	// timestamp.
	CumulativePrice string `protobuf:"bytes,2,opt,name=cumulative_price,json=cumulativePrice,proto3" json:"cumulative_price,omitempty"`
	// Defines the last funding timestamp in seconds of a perpetual market in UNIX
	// seconds.
	LastTimestamp int64 `protobuf:"zigzag64,3,opt,name=last_timestamp,json=lastTimestamp,proto3" json:"last_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*PerpetualMarketFunding) Descriptor deprecated added in v1.23.6

func (*PerpetualMarketFunding) Descriptor() ([]byte, []int)

Deprecated: Use PerpetualMarketFunding.ProtoReflect.Descriptor instead.

func (*PerpetualMarketFunding) GetCumulativeFunding added in v1.23.6

func (x *PerpetualMarketFunding) GetCumulativeFunding() string

func (*PerpetualMarketFunding) GetCumulativePrice added in v1.23.6

func (x *PerpetualMarketFunding) GetCumulativePrice() string

func (*PerpetualMarketFunding) GetLastTimestamp added in v1.23.6

func (x *PerpetualMarketFunding) GetLastTimestamp() int64

func (*PerpetualMarketFunding) ProtoMessage added in v1.23.6

func (*PerpetualMarketFunding) ProtoMessage()

func (*PerpetualMarketFunding) ProtoReflect added in v1.23.6

func (x *PerpetualMarketFunding) ProtoReflect() protoreflect.Message

func (*PerpetualMarketFunding) Reset added in v1.23.6

func (x *PerpetualMarketFunding) Reset()

func (*PerpetualMarketFunding) String added in v1.23.6

func (x *PerpetualMarketFunding) String() string

type PerpetualMarketInfo added in v1.23.6

type PerpetualMarketInfo struct {

	// Defines the default maximum absolute value of the hourly funding rate of the
	// perpetual market.
	HourlyFundingRateCap string `protobuf:"bytes,1,opt,name=hourly_funding_rate_cap,json=hourlyFundingRateCap,proto3" json:"hourly_funding_rate_cap,omitempty"`
	// Defines the hourly interest rate of the perpetual market.
	HourlyInterestRate string `protobuf:"bytes,2,opt,name=hourly_interest_rate,json=hourlyInterestRate,proto3" json:"hourly_interest_rate,omitempty"`
	// Defines the next funding timestamp in seconds of a perpetual market in UNIX
	// seconds.
	NextFundingTimestamp int64 `` /* 126-byte string literal not displayed */
	// Defines the funding interval in seconds of a perpetual market in seconds.
	FundingInterval int64 `protobuf:"zigzag64,4,opt,name=funding_interval,json=fundingInterval,proto3" json:"funding_interval,omitempty"`
	// contains filtered or unexported fields
}

func (*PerpetualMarketInfo) Descriptor deprecated added in v1.23.6

func (*PerpetualMarketInfo) Descriptor() ([]byte, []int)

Deprecated: Use PerpetualMarketInfo.ProtoReflect.Descriptor instead.

func (*PerpetualMarketInfo) GetFundingInterval added in v1.23.6

func (x *PerpetualMarketInfo) GetFundingInterval() int64

func (*PerpetualMarketInfo) GetHourlyFundingRateCap added in v1.23.6

func (x *PerpetualMarketInfo) GetHourlyFundingRateCap() string

func (*PerpetualMarketInfo) GetHourlyInterestRate added in v1.23.6

func (x *PerpetualMarketInfo) GetHourlyInterestRate() string

func (*PerpetualMarketInfo) GetNextFundingTimestamp added in v1.23.6

func (x *PerpetualMarketInfo) GetNextFundingTimestamp() int64

func (*PerpetualMarketInfo) ProtoMessage added in v1.23.6

func (*PerpetualMarketInfo) ProtoMessage()

func (*PerpetualMarketInfo) ProtoReflect added in v1.23.6

func (x *PerpetualMarketInfo) ProtoReflect() protoreflect.Message

func (*PerpetualMarketInfo) Reset added in v1.23.6

func (x *PerpetualMarketInfo) Reset()

func (*PerpetualMarketInfo) String added in v1.23.6

func (x *PerpetualMarketInfo) String() string

type PositionDelta

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

func (*PositionDelta) Descriptor() ([]byte, []int)

Deprecated: Use PositionDelta.ProtoReflect.Descriptor instead.

func (*PositionDelta) GetExecutionMargin

func (x *PositionDelta) GetExecutionMargin() string

func (*PositionDelta) GetExecutionPrice

func (x *PositionDelta) GetExecutionPrice() string

func (*PositionDelta) GetExecutionQuantity

func (x *PositionDelta) GetExecutionQuantity() string

func (*PositionDelta) GetTradeDirection

func (x *PositionDelta) GetTradeDirection() string

func (*PositionDelta) ProtoMessage

func (*PositionDelta) ProtoMessage()

func (*PositionDelta) ProtoReflect

func (x *PositionDelta) ProtoReflect() protoreflect.Message

func (*PositionDelta) Reset

func (x *PositionDelta) Reset()

func (*PositionDelta) String

func (x *PositionDelta) String() string

type PositionsRequest

type PositionsRequest struct {

	// SubaccountId of the trader we want to get the positions from
	SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// MarketId of the position we want to fetch
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PositionsRequest) Descriptor deprecated

func (*PositionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use PositionsRequest.ProtoReflect.Descriptor instead.

func (*PositionsRequest) GetMarketId

func (x *PositionsRequest) GetMarketId() string

func (*PositionsRequest) GetSubaccountId

func (x *PositionsRequest) GetSubaccountId() string

func (*PositionsRequest) ProtoMessage

func (*PositionsRequest) ProtoMessage()

func (*PositionsRequest) ProtoReflect

func (x *PositionsRequest) ProtoReflect() protoreflect.Message

func (*PositionsRequest) Reset

func (x *PositionsRequest) Reset()

func (*PositionsRequest) String

func (x *PositionsRequest) String() string

type PositionsResponse

type PositionsResponse struct {

	// List of derivative positions
	Positions []*DerivativePosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"`
	// contains filtered or unexported fields
}

func (*PositionsResponse) Descriptor deprecated

func (*PositionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use PositionsResponse.ProtoReflect.Descriptor instead.

func (*PositionsResponse) GetPositions

func (x *PositionsResponse) GetPositions() []*DerivativePosition

func (*PositionsResponse) ProtoMessage

func (*PositionsResponse) ProtoMessage()

func (*PositionsResponse) ProtoReflect

func (x *PositionsResponse) ProtoReflect() protoreflect.Message

func (*PositionsResponse) Reset

func (x *PositionsResponse) Reset()

func (*PositionsResponse) String

func (x *PositionsResponse) String() string

type PriceLevel

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

func (*PriceLevel) Descriptor() ([]byte, []int)

Deprecated: Use PriceLevel.ProtoReflect.Descriptor instead.

func (*PriceLevel) GetPrice

func (x *PriceLevel) GetPrice() string

func (*PriceLevel) GetQuantity

func (x *PriceLevel) GetQuantity() string

func (*PriceLevel) GetTimestamp

func (x *PriceLevel) GetTimestamp() int64

func (*PriceLevel) ProtoMessage

func (*PriceLevel) ProtoMessage()

func (*PriceLevel) ProtoReflect

func (x *PriceLevel) ProtoReflect() protoreflect.Message

func (*PriceLevel) Reset

func (x *PriceLevel) Reset()

func (*PriceLevel) String

func (x *PriceLevel) String() string

type StreamMarketRequest

type StreamMarketRequest struct {

	// List of market IDs for updates streaming, empty means 'ALL' derivative
	// markets
	MarketIds []string `protobuf:"bytes,1,rep,name=market_ids,json=marketIds,proto3" json:"market_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamMarketRequest) Descriptor deprecated

func (*StreamMarketRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamMarketRequest.ProtoReflect.Descriptor instead.

func (*StreamMarketRequest) GetMarketIds

func (x *StreamMarketRequest) GetMarketIds() []string

func (*StreamMarketRequest) ProtoMessage

func (*StreamMarketRequest) ProtoMessage()

func (*StreamMarketRequest) ProtoReflect

func (x *StreamMarketRequest) ProtoReflect() protoreflect.Message

func (*StreamMarketRequest) Reset

func (x *StreamMarketRequest) Reset()

func (*StreamMarketRequest) String

func (x *StreamMarketRequest) String() string

type StreamMarketResponse

type StreamMarketResponse struct {

	// Info about particular derivative market
	Market *DerivativeMarketInfo `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// Update 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,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamMarketResponse) Descriptor deprecated

func (*StreamMarketResponse) Descriptor() ([]byte, []int)

Deprecated: Use StreamMarketResponse.ProtoReflect.Descriptor instead.

func (*StreamMarketResponse) GetMarket

func (*StreamMarketResponse) GetOperationType

func (x *StreamMarketResponse) GetOperationType() string

func (*StreamMarketResponse) GetTimestamp

func (x *StreamMarketResponse) GetTimestamp() int64

func (*StreamMarketResponse) ProtoMessage

func (*StreamMarketResponse) ProtoMessage()

func (*StreamMarketResponse) ProtoReflect

func (x *StreamMarketResponse) ProtoReflect() protoreflect.Message

func (*StreamMarketResponse) Reset

func (x *StreamMarketResponse) Reset()

func (*StreamMarketResponse) String

func (x *StreamMarketResponse) String() string

type StreamOrderbookRequest

type StreamOrderbookRequest struct {

	// List of market IDs for orderbook streaming, empty means 'ALL' spot markets
	MarketIds []string `protobuf:"bytes,1,rep,name=market_ids,json=marketIds,proto3" json:"market_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamOrderbookRequest) Descriptor deprecated

func (*StreamOrderbookRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamOrderbookRequest.ProtoReflect.Descriptor instead.

func (*StreamOrderbookRequest) GetMarketIds added in v1.27.5

func (x *StreamOrderbookRequest) GetMarketIds() []string

func (*StreamOrderbookRequest) ProtoMessage

func (*StreamOrderbookRequest) ProtoMessage()

func (*StreamOrderbookRequest) ProtoReflect

func (x *StreamOrderbookRequest) ProtoReflect() protoreflect.Message

func (*StreamOrderbookRequest) Reset

func (x *StreamOrderbookRequest) Reset()

func (*StreamOrderbookRequest) String

func (x *StreamOrderbookRequest) String() string

type StreamOrderbookResponse

type StreamOrderbookResponse struct {

	// Orderbook of a Derivative Market
	Orderbook *DerivativeLimitOrderbook `protobuf:"bytes,1,opt,name=orderbook,proto3" json:"orderbook,omitempty"`
	// Order update 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,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// MarketId of the market's orderbook
	MarketId string `protobuf:"bytes,4,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamOrderbookResponse) Descriptor deprecated

func (*StreamOrderbookResponse) Descriptor() ([]byte, []int)

Deprecated: Use StreamOrderbookResponse.ProtoReflect.Descriptor instead.

func (*StreamOrderbookResponse) GetMarketId added in v1.27.5

func (x *StreamOrderbookResponse) GetMarketId() string

func (*StreamOrderbookResponse) GetOperationType

func (x *StreamOrderbookResponse) GetOperationType() string

func (*StreamOrderbookResponse) GetOrderbook

func (*StreamOrderbookResponse) GetTimestamp

func (x *StreamOrderbookResponse) GetTimestamp() int64

func (*StreamOrderbookResponse) ProtoMessage

func (*StreamOrderbookResponse) ProtoMessage()

func (*StreamOrderbookResponse) ProtoReflect

func (x *StreamOrderbookResponse) ProtoReflect() protoreflect.Message

func (*StreamOrderbookResponse) Reset

func (x *StreamOrderbookResponse) Reset()

func (*StreamOrderbookResponse) String

func (x *StreamOrderbookResponse) String() string

type StreamOrdersRequest

type StreamOrdersRequest struct {

	// MarketId of the market's orderbook we want to fetch
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Look for specific order side
	OrderSide string `protobuf:"bytes,2,opt,name=order_side,json=orderSide,proto3" json:"order_side,omitempty"`
	// Look for specific subaccountId of an order
	SubaccountId string `protobuf:"bytes,3,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamOrdersRequest) Descriptor deprecated

func (*StreamOrdersRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamOrdersRequest.ProtoReflect.Descriptor instead.

func (*StreamOrdersRequest) GetMarketId

func (x *StreamOrdersRequest) GetMarketId() string

func (*StreamOrdersRequest) GetOrderSide added in v1.23.6

func (x *StreamOrdersRequest) GetOrderSide() string

func (*StreamOrdersRequest) GetSubaccountId

func (x *StreamOrdersRequest) GetSubaccountId() string

func (*StreamOrdersRequest) ProtoMessage

func (*StreamOrdersRequest) ProtoMessage()

func (*StreamOrdersRequest) ProtoReflect

func (x *StreamOrdersRequest) ProtoReflect() protoreflect.Message

func (*StreamOrdersRequest) Reset

func (x *StreamOrdersRequest) Reset()

func (*StreamOrdersRequest) String

func (x *StreamOrdersRequest) String() string

type StreamOrdersResponse

type StreamOrdersResponse struct {

	// Updated market order
	Order *DerivativeLimitOrder `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// Order update 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,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamOrdersResponse) Descriptor deprecated

func (*StreamOrdersResponse) Descriptor() ([]byte, []int)

Deprecated: Use StreamOrdersResponse.ProtoReflect.Descriptor instead.

func (*StreamOrdersResponse) GetOperationType

func (x *StreamOrdersResponse) GetOperationType() string

func (*StreamOrdersResponse) GetOrder

func (*StreamOrdersResponse) GetTimestamp

func (x *StreamOrdersResponse) GetTimestamp() int64

func (*StreamOrdersResponse) ProtoMessage

func (*StreamOrdersResponse) ProtoMessage()

func (*StreamOrdersResponse) ProtoReflect

func (x *StreamOrdersResponse) ProtoReflect() protoreflect.Message

func (*StreamOrdersResponse) Reset

func (x *StreamOrdersResponse) Reset()

func (*StreamOrdersResponse) String

func (x *StreamOrdersResponse) String() string

type StreamPositionsRequest

type StreamPositionsRequest struct {

	// SubaccountId of the trader we want to get the positions from
	SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// MarketId of the position we want to fetch
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamPositionsRequest) Descriptor deprecated

func (*StreamPositionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamPositionsRequest.ProtoReflect.Descriptor instead.

func (*StreamPositionsRequest) GetMarketId

func (x *StreamPositionsRequest) GetMarketId() string

func (*StreamPositionsRequest) GetSubaccountId

func (x *StreamPositionsRequest) GetSubaccountId() string

func (*StreamPositionsRequest) ProtoMessage

func (*StreamPositionsRequest) ProtoMessage()

func (*StreamPositionsRequest) ProtoReflect

func (x *StreamPositionsRequest) ProtoReflect() protoreflect.Message

func (*StreamPositionsRequest) Reset

func (x *StreamPositionsRequest) Reset()

func (*StreamPositionsRequest) String

func (x *StreamPositionsRequest) String() string

type StreamPositionsResponse

type StreamPositionsResponse struct {

	// Updated Derivative Position
	Position *DerivativePosition `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 (*StreamPositionsResponse) Descriptor deprecated

func (*StreamPositionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use StreamPositionsResponse.ProtoReflect.Descriptor instead.

func (*StreamPositionsResponse) GetPosition

func (x *StreamPositionsResponse) GetPosition() *DerivativePosition

func (*StreamPositionsResponse) GetTimestamp

func (x *StreamPositionsResponse) GetTimestamp() int64

func (*StreamPositionsResponse) ProtoMessage

func (*StreamPositionsResponse) ProtoMessage()

func (*StreamPositionsResponse) ProtoReflect

func (x *StreamPositionsResponse) ProtoReflect() protoreflect.Message

func (*StreamPositionsResponse) Reset

func (x *StreamPositionsResponse) Reset()

func (*StreamPositionsResponse) String

func (x *StreamPositionsResponse) String() string

type StreamTradesRequest

type StreamTradesRequest struct {

	// MarketId of the market's orderbook we want to fetch
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Filter by execution side of the trade
	ExecutionSide string `protobuf:"bytes,2,opt,name=execution_side,json=executionSide,proto3" json:"execution_side,omitempty"`
	// Filter by direction the trade
	Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"`
	// SubaccountId of the trader we want to get the trades from
	SubaccountId string `protobuf:"bytes,4,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// Skip will skip the first n item from the result
	Skip uint64 `protobuf:"varint,5,opt,name=skip,proto3" json:"skip,omitempty"`
	// Limit is used to specify the maximum number of items to be returned.
	Limit int32 `protobuf:"zigzag32,6,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamTradesRequest) Descriptor deprecated

func (*StreamTradesRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamTradesRequest.ProtoReflect.Descriptor instead.

func (*StreamTradesRequest) GetDirection

func (x *StreamTradesRequest) GetDirection() string

func (*StreamTradesRequest) GetExecutionSide

func (x *StreamTradesRequest) GetExecutionSide() string

func (*StreamTradesRequest) GetLimit added in v1.27.5

func (x *StreamTradesRequest) GetLimit() int32

func (*StreamTradesRequest) GetMarketId

func (x *StreamTradesRequest) GetMarketId() string

func (*StreamTradesRequest) GetSkip added in v1.27.5

func (x *StreamTradesRequest) GetSkip() uint64

func (*StreamTradesRequest) GetSubaccountId

func (x *StreamTradesRequest) GetSubaccountId() string

func (*StreamTradesRequest) ProtoMessage

func (*StreamTradesRequest) ProtoMessage()

func (*StreamTradesRequest) ProtoReflect

func (x *StreamTradesRequest) ProtoReflect() protoreflect.Message

func (*StreamTradesRequest) Reset

func (x *StreamTradesRequest) Reset()

func (*StreamTradesRequest) String

func (x *StreamTradesRequest) String() string

type StreamTradesResponse

type StreamTradesResponse struct {

	// New derivative market trade
	Trade *DerivativeTrade `protobuf:"bytes,1,opt,name=trade,proto3" json:"trade,omitempty"`
	// Executed trades update 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,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamTradesResponse) Descriptor deprecated

func (*StreamTradesResponse) Descriptor() ([]byte, []int)

Deprecated: Use StreamTradesResponse.ProtoReflect.Descriptor instead.

func (*StreamTradesResponse) GetOperationType

func (x *StreamTradesResponse) GetOperationType() string

func (*StreamTradesResponse) GetTimestamp

func (x *StreamTradesResponse) GetTimestamp() int64

func (*StreamTradesResponse) GetTrade

func (x *StreamTradesResponse) GetTrade() *DerivativeTrade

func (*StreamTradesResponse) ProtoMessage

func (*StreamTradesResponse) ProtoMessage()

func (*StreamTradesResponse) ProtoReflect

func (x *StreamTradesResponse) ProtoReflect() protoreflect.Message

func (*StreamTradesResponse) Reset

func (x *StreamTradesResponse) Reset()

func (*StreamTradesResponse) String

func (x *StreamTradesResponse) String() string

type SubaccountOrdersListRequest

type SubaccountOrdersListRequest struct {

	// subaccount ID to filter orders for specific subaccount
	SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// Market ID to filter orders for specific market
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubaccountOrdersListRequest) Descriptor deprecated

func (*SubaccountOrdersListRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubaccountOrdersListRequest.ProtoReflect.Descriptor instead.

func (*SubaccountOrdersListRequest) GetMarketId

func (x *SubaccountOrdersListRequest) GetMarketId() string

func (*SubaccountOrdersListRequest) GetSubaccountId

func (x *SubaccountOrdersListRequest) GetSubaccountId() string

func (*SubaccountOrdersListRequest) ProtoMessage

func (*SubaccountOrdersListRequest) ProtoMessage()

func (*SubaccountOrdersListRequest) ProtoReflect

func (*SubaccountOrdersListRequest) Reset

func (x *SubaccountOrdersListRequest) Reset()

func (*SubaccountOrdersListRequest) String

func (x *SubaccountOrdersListRequest) String() string

type SubaccountOrdersListResponse

type SubaccountOrdersListResponse struct {

	// List of derivative orders
	Orders []*DerivativeLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

func (*SubaccountOrdersListResponse) Descriptor deprecated

func (*SubaccountOrdersListResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubaccountOrdersListResponse.ProtoReflect.Descriptor instead.

func (*SubaccountOrdersListResponse) GetOrders

func (*SubaccountOrdersListResponse) ProtoMessage

func (*SubaccountOrdersListResponse) ProtoMessage()

func (*SubaccountOrdersListResponse) ProtoReflect

func (*SubaccountOrdersListResponse) Reset

func (x *SubaccountOrdersListResponse) Reset()

func (*SubaccountOrdersListResponse) String

type SubaccountTradesListRequest

type SubaccountTradesListRequest 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 trades by market ID
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Filter by execution type of trades
	ExecutionType string `protobuf:"bytes,3,opt,name=execution_type,json=executionType,proto3" json:"execution_type,omitempty"`
	// Filter by direction trades
	Direction string `protobuf:"bytes,4,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*SubaccountTradesListRequest) Descriptor deprecated

func (*SubaccountTradesListRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubaccountTradesListRequest.ProtoReflect.Descriptor instead.

func (*SubaccountTradesListRequest) GetDirection

func (x *SubaccountTradesListRequest) GetDirection() string

func (*SubaccountTradesListRequest) GetExecutionType

func (x *SubaccountTradesListRequest) GetExecutionType() string

func (*SubaccountTradesListRequest) GetMarketId

func (x *SubaccountTradesListRequest) GetMarketId() string

func (*SubaccountTradesListRequest) GetSubaccountId

func (x *SubaccountTradesListRequest) GetSubaccountId() string

func (*SubaccountTradesListRequest) ProtoMessage

func (*SubaccountTradesListRequest) ProtoMessage()

func (*SubaccountTradesListRequest) ProtoReflect

func (*SubaccountTradesListRequest) Reset

func (x *SubaccountTradesListRequest) Reset()

func (*SubaccountTradesListRequest) String

func (x *SubaccountTradesListRequest) String() string

type SubaccountTradesListResponse

type SubaccountTradesListResponse struct {

	// List of derivative market trades
	Trades []*DerivativeTrade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"`
	// contains filtered or unexported fields
}

func (*SubaccountTradesListResponse) Descriptor deprecated

func (*SubaccountTradesListResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubaccountTradesListResponse.ProtoReflect.Descriptor instead.

func (*SubaccountTradesListResponse) GetTrades

func (*SubaccountTradesListResponse) ProtoMessage

func (*SubaccountTradesListResponse) ProtoMessage()

func (*SubaccountTradesListResponse) ProtoReflect

func (*SubaccountTradesListResponse) Reset

func (x *SubaccountTradesListResponse) Reset()

func (*SubaccountTradesListResponse) String

type TokenMeta

type TokenMeta struct {

	// Token full name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Token Ethereum contract address
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// Token symbol short name
	Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"`
	// Token decimals
	Decimals int32 `protobuf:"zigzag32,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// Token metadata fetched timestamp in UNIX millis.
	UpdatedAt int64 `protobuf:"zigzag64,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenMeta) Descriptor deprecated

func (*TokenMeta) Descriptor() ([]byte, []int)

Deprecated: Use TokenMeta.ProtoReflect.Descriptor instead.

func (*TokenMeta) GetAddress

func (x *TokenMeta) GetAddress() string

func (*TokenMeta) GetDecimals

func (x *TokenMeta) GetDecimals() int32
func (x *TokenMeta) GetLogo() string

func (*TokenMeta) GetName

func (x *TokenMeta) GetName() string

func (*TokenMeta) GetSymbol

func (x *TokenMeta) GetSymbol() string

func (*TokenMeta) GetUpdatedAt

func (x *TokenMeta) GetUpdatedAt() int64

func (*TokenMeta) ProtoMessage

func (*TokenMeta) ProtoMessage()

func (*TokenMeta) ProtoReflect

func (x *TokenMeta) ProtoReflect() protoreflect.Message

func (*TokenMeta) Reset

func (x *TokenMeta) Reset()

func (*TokenMeta) String

func (x *TokenMeta) String() string

type TradesRequest

type TradesRequest struct {

	// MarketId of the market's orderbook we want to fetch
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Filter by execution side of the trade
	ExecutionSide string `protobuf:"bytes,2,opt,name=execution_side,json=executionSide,proto3" json:"execution_side,omitempty"`
	// Filter by direction the trade
	Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"`
	// SubaccountId of the trader we want to get the trades from
	SubaccountId string `protobuf:"bytes,4,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"`
	// Skip will skip the first n item from the result
	Skip uint64 `protobuf:"varint,5,opt,name=skip,proto3" json:"skip,omitempty"`
	// Limit is used to specify the maximum number of items to be returned.
	Limit int32 `protobuf:"zigzag32,6,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*TradesRequest) Descriptor deprecated

func (*TradesRequest) Descriptor() ([]byte, []int)

Deprecated: Use TradesRequest.ProtoReflect.Descriptor instead.

func (*TradesRequest) GetDirection

func (x *TradesRequest) GetDirection() string

func (*TradesRequest) GetExecutionSide

func (x *TradesRequest) GetExecutionSide() string

func (*TradesRequest) GetLimit added in v1.27.5

func (x *TradesRequest) GetLimit() int32

func (*TradesRequest) GetMarketId

func (x *TradesRequest) GetMarketId() string

func (*TradesRequest) GetSkip added in v1.27.5

func (x *TradesRequest) GetSkip() uint64

func (*TradesRequest) GetSubaccountId

func (x *TradesRequest) GetSubaccountId() string

func (*TradesRequest) ProtoMessage

func (*TradesRequest) ProtoMessage()

func (*TradesRequest) ProtoReflect

func (x *TradesRequest) ProtoReflect() protoreflect.Message

func (*TradesRequest) Reset

func (x *TradesRequest) Reset()

func (*TradesRequest) String

func (x *TradesRequest) String() string

type TradesResponse

type TradesResponse struct {

	// Trades of a Derivative Market
	Trades []*DerivativeTrade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"`
	// contains filtered or unexported fields
}

func (*TradesResponse) Descriptor deprecated

func (*TradesResponse) Descriptor() ([]byte, []int)

Deprecated: Use TradesResponse.ProtoReflect.Descriptor instead.

func (*TradesResponse) GetTrades

func (x *TradesResponse) GetTrades() []*DerivativeTrade

func (*TradesResponse) ProtoMessage

func (*TradesResponse) ProtoMessage()

func (*TradesResponse) ProtoReflect

func (x *TradesResponse) ProtoReflect() protoreflect.Message

func (*TradesResponse) Reset

func (x *TradesResponse) Reset()

func (*TradesResponse) String

func (x *TradesResponse) String() string

type UnimplementedInjectiveDerivativeExchangeRPCServer

type UnimplementedInjectiveDerivativeExchangeRPCServer struct {
}

UnimplementedInjectiveDerivativeExchangeRPCServer must be embedded to have forward compatible implementations.

func (UnimplementedInjectiveDerivativeExchangeRPCServer) FundingPayments added in v1.27.5

func (UnimplementedInjectiveDerivativeExchangeRPCServer) LiquidablePositions

func (UnimplementedInjectiveDerivativeExchangeRPCServer) Market

func (UnimplementedInjectiveDerivativeExchangeRPCServer) Markets

func (UnimplementedInjectiveDerivativeExchangeRPCServer) Orderbook

func (UnimplementedInjectiveDerivativeExchangeRPCServer) Orders

func (UnimplementedInjectiveDerivativeExchangeRPCServer) Positions

func (UnimplementedInjectiveDerivativeExchangeRPCServer) SubaccountOrdersList

func (UnimplementedInjectiveDerivativeExchangeRPCServer) SubaccountTradesList

func (UnimplementedInjectiveDerivativeExchangeRPCServer) Trades

type UnsafeInjectiveDerivativeExchangeRPCServer

type UnsafeInjectiveDerivativeExchangeRPCServer interface {
	// contains filtered or unexported methods
}

UnsafeInjectiveDerivativeExchangeRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InjectiveDerivativeExchangeRPCServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL