Documentation ¶
Index ¶
- Variables
- func RegisterInjectiveSpotExchangeRPCServer(s grpc.ServiceRegistrar, srv InjectiveSpotExchangeRPCServer)
- type InjectiveSpotExchangeRPCClient
- type InjectiveSpotExchangeRPCServer
- type InjectiveSpotExchangeRPC_StreamMarketsClient
- type InjectiveSpotExchangeRPC_StreamMarketsServer
- type InjectiveSpotExchangeRPC_StreamOrderbookClient
- type InjectiveSpotExchangeRPC_StreamOrderbookServer
- type InjectiveSpotExchangeRPC_StreamOrdersClient
- type InjectiveSpotExchangeRPC_StreamOrdersServer
- type InjectiveSpotExchangeRPC_StreamTradesClient
- type InjectiveSpotExchangeRPC_StreamTradesServer
- type MarketRequest
- type MarketResponse
- type MarketsRequest
- func (*MarketsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MarketsRequest) GetBaseDenom() string
- func (x *MarketsRequest) GetMarketStatus() string
- func (x *MarketsRequest) GetQuoteDenom() string
- func (*MarketsRequest) ProtoMessage()
- func (x *MarketsRequest) ProtoReflect() protoreflect.Message
- func (x *MarketsRequest) Reset()
- func (x *MarketsRequest) String() string
- type MarketsResponse
- type OrderbookRequest
- type OrderbookResponse
- func (*OrderbookResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OrderbookResponse) GetOrderbook() *SpotLimitOrderbook
- func (*OrderbookResponse) ProtoMessage()
- func (x *OrderbookResponse) ProtoReflect() protoreflect.Message
- func (x *OrderbookResponse) Reset()
- func (x *OrderbookResponse) String() string
- type OrdersRequest
- func (*OrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrdersRequest) GetMarketId() string
- func (x *OrdersRequest) GetOrderSide() string
- func (x *OrdersRequest) GetSubaccountId() string
- func (*OrdersRequest) ProtoMessage()
- func (x *OrdersRequest) ProtoReflect() protoreflect.Message
- func (x *OrdersRequest) Reset()
- func (x *OrdersRequest) String() string
- type OrdersResponse
- 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 SpotLimitOrder
- func (*SpotLimitOrder) Descriptor() ([]byte, []int)deprecated
- 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) 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 SpotLimitOrderbook
- func (*SpotLimitOrderbook) Descriptor() ([]byte, []int)deprecated
- func (x *SpotLimitOrderbook) GetBuys() []*PriceLevel
- func (x *SpotLimitOrderbook) GetSells() []*PriceLevel
- func (*SpotLimitOrderbook) ProtoMessage()
- func (x *SpotLimitOrderbook) ProtoReflect() protoreflect.Message
- func (x *SpotLimitOrderbook) Reset()
- func (x *SpotLimitOrderbook) String() string
- type SpotMarketInfo
- func (*SpotMarketInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SpotMarketInfo) GetBaseDenom() string
- func (x *SpotMarketInfo) GetBaseTokenMeta() *TokenMeta
- func (x *SpotMarketInfo) GetMakerFeeRate() string
- func (x *SpotMarketInfo) GetMarketId() string
- func (x *SpotMarketInfo) GetMarketStatus() string
- func (x *SpotMarketInfo) GetMinPriceTickSize() string
- func (x *SpotMarketInfo) GetMinQuantityTickSize() string
- func (x *SpotMarketInfo) GetQuoteDenom() string
- func (x *SpotMarketInfo) GetQuoteTokenMeta() *TokenMeta
- func (x *SpotMarketInfo) GetServiceProviderFee() string
- func (x *SpotMarketInfo) GetTakerFeeRate() string
- func (x *SpotMarketInfo) GetTicker() string
- func (*SpotMarketInfo) ProtoMessage()
- func (x *SpotMarketInfo) ProtoReflect() protoreflect.Message
- func (x *SpotMarketInfo) Reset()
- func (x *SpotMarketInfo) String() string
- type SpotTrade
- func (*SpotTrade) Descriptor() ([]byte, []int)deprecated
- func (x *SpotTrade) GetExecutedAt() int64
- func (x *SpotTrade) GetFee() 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 (*SpotTrade) ProtoMessage()
- func (x *SpotTrade) ProtoReflect() protoreflect.Message
- func (x *SpotTrade) Reset()
- func (x *SpotTrade) String() string
- type StreamMarketsRequest
- func (*StreamMarketsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamMarketsRequest) GetMarketIds() []string
- func (*StreamMarketsRequest) ProtoMessage()
- func (x *StreamMarketsRequest) ProtoReflect() protoreflect.Message
- func (x *StreamMarketsRequest) Reset()
- func (x *StreamMarketsRequest) String() string
- type StreamMarketsResponse
- func (*StreamMarketsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamMarketsResponse) GetMarket() *SpotMarketInfo
- func (x *StreamMarketsResponse) GetOperationType() string
- func (x *StreamMarketsResponse) GetTimestamp() int64
- func (*StreamMarketsResponse) ProtoMessage()
- func (x *StreamMarketsResponse) ProtoReflect() protoreflect.Message
- func (x *StreamMarketsResponse) Reset()
- func (x *StreamMarketsResponse) String() string
- type StreamOrderbookRequest
- func (*StreamOrderbookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamOrderbookRequest) GetMarketIds() []string
- func (*StreamOrderbookRequest) ProtoMessage()
- func (x *StreamOrderbookRequest) ProtoReflect() protoreflect.Message
- func (x *StreamOrderbookRequest) Reset()
- func (x *StreamOrderbookRequest) String() string
- type StreamOrderbookResponse
- func (*StreamOrderbookResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamOrderbookResponse) GetMarketId() string
- func (x *StreamOrderbookResponse) GetOperationType() string
- func (x *StreamOrderbookResponse) GetOrderbook() *SpotLimitOrderbook
- func (x *StreamOrderbookResponse) GetTimestamp() int64
- func (*StreamOrderbookResponse) ProtoMessage()
- func (x *StreamOrderbookResponse) ProtoReflect() protoreflect.Message
- func (x *StreamOrderbookResponse) Reset()
- func (x *StreamOrderbookResponse) String() string
- type StreamOrdersRequest
- func (*StreamOrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamOrdersRequest) GetMarketId() string
- func (x *StreamOrdersRequest) GetOrderSide() string
- func (x *StreamOrdersRequest) GetSubaccountId() string
- func (*StreamOrdersRequest) ProtoMessage()
- func (x *StreamOrdersRequest) ProtoReflect() protoreflect.Message
- func (x *StreamOrdersRequest) Reset()
- func (x *StreamOrdersRequest) String() string
- type StreamOrdersResponse
- func (*StreamOrdersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamOrdersResponse) GetOperationType() string
- func (x *StreamOrdersResponse) GetOrder() *SpotLimitOrder
- func (x *StreamOrdersResponse) GetTimestamp() int64
- func (*StreamOrdersResponse) ProtoMessage()
- func (x *StreamOrdersResponse) ProtoReflect() protoreflect.Message
- func (x *StreamOrdersResponse) Reset()
- func (x *StreamOrdersResponse) String() string
- type StreamTradesRequest
- func (*StreamTradesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamTradesRequest) GetDirection() string
- func (x *StreamTradesRequest) GetExecutionSide() string
- func (x *StreamTradesRequest) GetLimit() int32
- func (x *StreamTradesRequest) GetMarketId() string
- func (x *StreamTradesRequest) GetSkip() uint64
- func (x *StreamTradesRequest) GetSubaccountId() string
- func (*StreamTradesRequest) ProtoMessage()
- func (x *StreamTradesRequest) ProtoReflect() protoreflect.Message
- func (x *StreamTradesRequest) Reset()
- func (x *StreamTradesRequest) String() string
- type StreamTradesResponse
- func (*StreamTradesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamTradesResponse) GetOperationType() string
- func (x *StreamTradesResponse) GetTimestamp() int64
- func (x *StreamTradesResponse) GetTrade() *SpotTrade
- func (*StreamTradesResponse) ProtoMessage()
- func (x *StreamTradesResponse) ProtoReflect() protoreflect.Message
- func (x *StreamTradesResponse) Reset()
- func (x *StreamTradesResponse) String() string
- type SubaccountOrdersListRequest
- func (*SubaccountOrdersListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountOrdersListRequest) GetMarketId() string
- func (x *SubaccountOrdersListRequest) GetSubaccountId() string
- func (*SubaccountOrdersListRequest) ProtoMessage()
- func (x *SubaccountOrdersListRequest) ProtoReflect() protoreflect.Message
- func (x *SubaccountOrdersListRequest) Reset()
- func (x *SubaccountOrdersListRequest) String() string
- type SubaccountOrdersListResponse
- func (*SubaccountOrdersListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountOrdersListResponse) GetOrders() []*SpotLimitOrder
- func (*SubaccountOrdersListResponse) ProtoMessage()
- func (x *SubaccountOrdersListResponse) ProtoReflect() protoreflect.Message
- func (x *SubaccountOrdersListResponse) Reset()
- func (x *SubaccountOrdersListResponse) String() string
- type SubaccountTradesListRequest
- func (*SubaccountTradesListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountTradesListRequest) GetDirection() string
- func (x *SubaccountTradesListRequest) GetExecutionType() string
- func (x *SubaccountTradesListRequest) GetMarketId() string
- func (x *SubaccountTradesListRequest) GetSubaccountId() string
- func (*SubaccountTradesListRequest) ProtoMessage()
- func (x *SubaccountTradesListRequest) ProtoReflect() protoreflect.Message
- func (x *SubaccountTradesListRequest) Reset()
- func (x *SubaccountTradesListRequest) String() string
- type SubaccountTradesListResponse
- func (*SubaccountTradesListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubaccountTradesListResponse) GetTrades() []*SpotTrade
- func (*SubaccountTradesListResponse) ProtoMessage()
- func (x *SubaccountTradesListResponse) ProtoReflect() protoreflect.Message
- func (x *SubaccountTradesListResponse) Reset()
- func (x *SubaccountTradesListResponse) String() string
- type TokenMeta
- func (*TokenMeta) Descriptor() ([]byte, []int)deprecated
- func (x *TokenMeta) GetAddress() string
- func (x *TokenMeta) GetDecimals() int32
- func (x *TokenMeta) GetLogo() string
- func (x *TokenMeta) GetName() string
- func (x *TokenMeta) GetSymbol() string
- func (x *TokenMeta) GetUpdatedAt() int64
- func (*TokenMeta) ProtoMessage()
- func (x *TokenMeta) ProtoReflect() protoreflect.Message
- func (x *TokenMeta) Reset()
- func (x *TokenMeta) String() string
- type TradesRequest
- func (*TradesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TradesRequest) GetDirection() string
- func (x *TradesRequest) GetExecutionSide() string
- func (x *TradesRequest) GetLimit() int32
- func (x *TradesRequest) GetMarketId() string
- func (x *TradesRequest) GetSkip() uint64
- func (x *TradesRequest) GetSubaccountId() string
- func (*TradesRequest) ProtoMessage()
- func (x *TradesRequest) ProtoReflect() protoreflect.Message
- func (x *TradesRequest) Reset()
- func (x *TradesRequest) String() string
- type TradesResponse
- type UnimplementedInjectiveSpotExchangeRPCServer
- func (UnimplementedInjectiveSpotExchangeRPCServer) Market(context.Context, *MarketRequest) (*MarketResponse, error)
- func (UnimplementedInjectiveSpotExchangeRPCServer) Markets(context.Context, *MarketsRequest) (*MarketsResponse, error)
- func (UnimplementedInjectiveSpotExchangeRPCServer) Orderbook(context.Context, *OrderbookRequest) (*OrderbookResponse, error)
- func (UnimplementedInjectiveSpotExchangeRPCServer) Orders(context.Context, *OrdersRequest) (*OrdersResponse, error)
- func (UnimplementedInjectiveSpotExchangeRPCServer) StreamMarkets(*StreamMarketsRequest, InjectiveSpotExchangeRPC_StreamMarketsServer) error
- func (UnimplementedInjectiveSpotExchangeRPCServer) StreamOrderbook(*StreamOrderbookRequest, InjectiveSpotExchangeRPC_StreamOrderbookServer) error
- func (UnimplementedInjectiveSpotExchangeRPCServer) StreamOrders(*StreamOrdersRequest, InjectiveSpotExchangeRPC_StreamOrdersServer) error
- func (UnimplementedInjectiveSpotExchangeRPCServer) StreamTrades(*StreamTradesRequest, InjectiveSpotExchangeRPC_StreamTradesServer) error
- func (UnimplementedInjectiveSpotExchangeRPCServer) SubaccountOrdersList(context.Context, *SubaccountOrdersListRequest) (*SubaccountOrdersListResponse, error)
- func (UnimplementedInjectiveSpotExchangeRPCServer) SubaccountTradesList(context.Context, *SubaccountTradesListRequest) (*SubaccountTradesListResponse, error)
- func (UnimplementedInjectiveSpotExchangeRPCServer) Trades(context.Context, *TradesRequest) (*TradesResponse, error)
- type UnsafeInjectiveSpotExchangeRPCServer
Constants ¶
This section is empty.
Variables ¶
var File_injective_spot_exchange_rpc_proto protoreflect.FileDescriptor
var InjectiveSpotExchangeRPC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", HandlerType: (*InjectiveSpotExchangeRPCServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Markets", Handler: _InjectiveSpotExchangeRPC_Markets_Handler, }, { MethodName: "Market", Handler: _InjectiveSpotExchangeRPC_Market_Handler, }, { MethodName: "Orderbook", Handler: _InjectiveSpotExchangeRPC_Orderbook_Handler, }, { MethodName: "Orders", Handler: _InjectiveSpotExchangeRPC_Orders_Handler, }, { MethodName: "Trades", Handler: _InjectiveSpotExchangeRPC_Trades_Handler, }, { MethodName: "SubaccountOrdersList", Handler: _InjectiveSpotExchangeRPC_SubaccountOrdersList_Handler, }, { MethodName: "SubaccountTradesList", Handler: _InjectiveSpotExchangeRPC_SubaccountTradesList_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamMarkets", Handler: _InjectiveSpotExchangeRPC_StreamMarkets_Handler, ServerStreams: true, }, { StreamName: "StreamOrderbook", Handler: _InjectiveSpotExchangeRPC_StreamOrderbook_Handler, ServerStreams: true, }, { StreamName: "StreamOrders", Handler: _InjectiveSpotExchangeRPC_StreamOrders_Handler, ServerStreams: true, }, { StreamName: "StreamTrades", Handler: _InjectiveSpotExchangeRPC_StreamTrades_Handler, ServerStreams: true, }, }, Metadata: "injective_spot_exchange_rpc.proto", }
InjectiveSpotExchangeRPC_ServiceDesc is the grpc.ServiceDesc for InjectiveSpotExchangeRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInjectiveSpotExchangeRPCServer ¶
func RegisterInjectiveSpotExchangeRPCServer(s grpc.ServiceRegistrar, srv InjectiveSpotExchangeRPCServer)
Types ¶
type InjectiveSpotExchangeRPCClient ¶
type InjectiveSpotExchangeRPCClient interface { // Get a list of Spot Markets Markets(ctx context.Context, in *MarketsRequest, opts ...grpc.CallOption) (*MarketsResponse, error) // Get details of a single spot market Market(ctx context.Context, in *MarketRequest, opts ...grpc.CallOption) (*MarketResponse, error) // Stream live updates of selected spot markets StreamMarkets(ctx context.Context, in *StreamMarketsRequest, opts ...grpc.CallOption) (InjectiveSpotExchangeRPC_StreamMarketsClient, error) // Orderbook of a Spot Market Orderbook(ctx context.Context, in *OrderbookRequest, opts ...grpc.CallOption) (*OrderbookResponse, error) // Stream live updates of selected spot market orderbook StreamOrderbook(ctx context.Context, in *StreamOrderbookRequest, opts ...grpc.CallOption) (InjectiveSpotExchangeRPC_StreamOrderbookClient, error) // Orders of a Spot Market Orders(ctx context.Context, in *OrdersRequest, opts ...grpc.CallOption) (*OrdersResponse, error) // Stream updates to individual orders of a Spot Market StreamOrders(ctx context.Context, in *StreamOrdersRequest, opts ...grpc.CallOption) (InjectiveSpotExchangeRPC_StreamOrdersClient, error) // Trades of a Spot Market Trades(ctx context.Context, in *TradesRequest, opts ...grpc.CallOption) (*TradesResponse, error) // Stream newly executed trades from Spot Market StreamTrades(ctx context.Context, in *StreamTradesRequest, opts ...grpc.CallOption) (InjectiveSpotExchangeRPC_StreamTradesClient, error) // List orders posted from this subaccount SubaccountOrdersList(ctx context.Context, in *SubaccountOrdersListRequest, opts ...grpc.CallOption) (*SubaccountOrdersListResponse, error) // List trades executed by this subaccount SubaccountTradesList(ctx context.Context, in *SubaccountTradesListRequest, opts ...grpc.CallOption) (*SubaccountTradesListResponse, error) }
InjectiveSpotExchangeRPCClient is the client API for InjectiveSpotExchangeRPC 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 NewInjectiveSpotExchangeRPCClient ¶
func NewInjectiveSpotExchangeRPCClient(cc grpc.ClientConnInterface) InjectiveSpotExchangeRPCClient
type InjectiveSpotExchangeRPCServer ¶
type InjectiveSpotExchangeRPCServer interface { // Get a list of Spot Markets Markets(context.Context, *MarketsRequest) (*MarketsResponse, error) // Get details of a single spot market Market(context.Context, *MarketRequest) (*MarketResponse, error) // Stream live updates of selected spot markets StreamMarkets(*StreamMarketsRequest, InjectiveSpotExchangeRPC_StreamMarketsServer) error // Orderbook of a Spot Market Orderbook(context.Context, *OrderbookRequest) (*OrderbookResponse, error) // Stream live updates of selected spot market orderbook StreamOrderbook(*StreamOrderbookRequest, InjectiveSpotExchangeRPC_StreamOrderbookServer) error // Orders of a Spot Market Orders(context.Context, *OrdersRequest) (*OrdersResponse, error) // Stream updates to individual orders of a Spot Market StreamOrders(*StreamOrdersRequest, InjectiveSpotExchangeRPC_StreamOrdersServer) error // Trades of a Spot Market Trades(context.Context, *TradesRequest) (*TradesResponse, error) // Stream newly executed trades from Spot Market StreamTrades(*StreamTradesRequest, InjectiveSpotExchangeRPC_StreamTradesServer) error // List orders posted from this subaccount SubaccountOrdersList(context.Context, *SubaccountOrdersListRequest) (*SubaccountOrdersListResponse, error) // List trades executed by this subaccount SubaccountTradesList(context.Context, *SubaccountTradesListRequest) (*SubaccountTradesListResponse, error) // contains filtered or unexported methods }
InjectiveSpotExchangeRPCServer is the server API for InjectiveSpotExchangeRPC service. All implementations must embed UnimplementedInjectiveSpotExchangeRPCServer for forward compatibility
type InjectiveSpotExchangeRPC_StreamMarketsClient ¶
type InjectiveSpotExchangeRPC_StreamMarketsClient interface { Recv() (*StreamMarketsResponse, error) grpc.ClientStream }
type InjectiveSpotExchangeRPC_StreamMarketsServer ¶
type InjectiveSpotExchangeRPC_StreamMarketsServer interface { Send(*StreamMarketsResponse) error grpc.ServerStream }
type InjectiveSpotExchangeRPC_StreamOrderbookClient ¶
type InjectiveSpotExchangeRPC_StreamOrderbookClient interface { Recv() (*StreamOrderbookResponse, error) grpc.ClientStream }
type InjectiveSpotExchangeRPC_StreamOrderbookServer ¶
type InjectiveSpotExchangeRPC_StreamOrderbookServer interface { Send(*StreamOrderbookResponse) error grpc.ServerStream }
type InjectiveSpotExchangeRPC_StreamOrdersClient ¶
type InjectiveSpotExchangeRPC_StreamOrdersClient interface { Recv() (*StreamOrdersResponse, error) grpc.ClientStream }
type InjectiveSpotExchangeRPC_StreamOrdersServer ¶
type InjectiveSpotExchangeRPC_StreamOrdersServer interface { Send(*StreamOrdersResponse) error grpc.ServerStream }
type InjectiveSpotExchangeRPC_StreamTradesClient ¶
type InjectiveSpotExchangeRPC_StreamTradesClient interface { Recv() (*StreamTradesResponse, error) grpc.ClientStream }
type InjectiveSpotExchangeRPC_StreamTradesServer ¶
type InjectiveSpotExchangeRPC_StreamTradesServer interface { Send(*StreamTradesResponse) error grpc.ServerStream }
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 spot market Market *SpotMarketInfo `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() *SpotMarketInfo
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 base currency BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` // Filter by the Coin denomination of the quote currency QuoteDenom string `protobuf:"bytes,3,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) GetBaseDenom ¶
func (x *MarketsRequest) GetBaseDenom() string
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 { // Spot Markets list Markets []*SpotMarketInfo `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() []*SpotMarketInfo
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 spot market Orderbook *SpotLimitOrderbook `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() *SpotLimitOrderbook
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 spot market orders Orders []*SpotLimitOrder `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() []*SpotLimitOrder
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 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 SpotLimitOrder ¶
type SpotLimitOrder 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"` // 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"` // contains filtered or unexported fields }
func (*SpotLimitOrder) Descriptor
deprecated
func (*SpotLimitOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotLimitOrder.ProtoReflect.Descriptor instead.
func (*SpotLimitOrder) GetCreatedAt ¶
func (x *SpotLimitOrder) GetCreatedAt() int64
func (*SpotLimitOrder) GetFeeRecipient ¶
func (x *SpotLimitOrder) GetFeeRecipient() string
func (*SpotLimitOrder) GetMarketId ¶
func (x *SpotLimitOrder) GetMarketId() string
func (*SpotLimitOrder) GetOrderHash ¶
func (x *SpotLimitOrder) GetOrderHash() string
func (*SpotLimitOrder) GetOrderSide ¶ added in v1.23.6
func (x *SpotLimitOrder) GetOrderSide() string
func (*SpotLimitOrder) GetPrice ¶
func (x *SpotLimitOrder) GetPrice() string
func (*SpotLimitOrder) GetQuantity ¶
func (x *SpotLimitOrder) GetQuantity() string
func (*SpotLimitOrder) GetState ¶
func (x *SpotLimitOrder) GetState() string
func (*SpotLimitOrder) GetSubaccountId ¶
func (x *SpotLimitOrder) GetSubaccountId() string
func (*SpotLimitOrder) GetTriggerPrice ¶
func (x *SpotLimitOrder) GetTriggerPrice() string
func (*SpotLimitOrder) GetUnfilledQuantity ¶
func (x *SpotLimitOrder) GetUnfilledQuantity() string
func (*SpotLimitOrder) GetUpdatedAt ¶
func (x *SpotLimitOrder) GetUpdatedAt() int64
func (*SpotLimitOrder) ProtoMessage ¶
func (*SpotLimitOrder) ProtoMessage()
func (*SpotLimitOrder) ProtoReflect ¶
func (x *SpotLimitOrder) ProtoReflect() protoreflect.Message
func (*SpotLimitOrder) Reset ¶
func (x *SpotLimitOrder) Reset()
func (*SpotLimitOrder) String ¶
func (x *SpotLimitOrder) String() string
type SpotLimitOrderbook ¶
type SpotLimitOrderbook 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 (*SpotLimitOrderbook) Descriptor
deprecated
func (*SpotLimitOrderbook) Descriptor() ([]byte, []int)
Deprecated: Use SpotLimitOrderbook.ProtoReflect.Descriptor instead.
func (*SpotLimitOrderbook) GetBuys ¶
func (x *SpotLimitOrderbook) GetBuys() []*PriceLevel
func (*SpotLimitOrderbook) GetSells ¶
func (x *SpotLimitOrderbook) GetSells() []*PriceLevel
func (*SpotLimitOrderbook) ProtoMessage ¶
func (*SpotLimitOrderbook) ProtoMessage()
func (*SpotLimitOrderbook) ProtoReflect ¶
func (x *SpotLimitOrderbook) ProtoReflect() protoreflect.Message
func (*SpotLimitOrderbook) Reset ¶
func (x *SpotLimitOrderbook) Reset()
func (*SpotLimitOrderbook) String ¶
func (x *SpotLimitOrderbook) String() string
type SpotMarketInfo ¶
type SpotMarketInfo struct { // SpotMarket ID is keccak265(baseDenom || quoteDenom) 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"` // Coin denom used for the base asset. BaseDenom string `protobuf:"bytes,4,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` // Token metadata for base asset, only for Ethereum-based assets BaseTokenMeta *TokenMeta `protobuf:"bytes,5,opt,name=base_token_meta,json=baseTokenMeta,proto3" json:"base_token_meta,omitempty"` // Coin denom used for the quote asset. QuoteDenom string `protobuf:"bytes,6,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,7,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,8,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,9,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,10,opt,name=service_provider_fee,json=serviceProviderFee,proto3" json:"service_provider_fee,omitempty"` // Defines the minimum required tick size for the order's price MinPriceTickSize string `protobuf:"bytes,11,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,12,opt,name=min_quantity_tick_size,json=minQuantityTickSize,proto3" json:"min_quantity_tick_size,omitempty"` // contains filtered or unexported fields }
func (*SpotMarketInfo) Descriptor
deprecated
func (*SpotMarketInfo) Descriptor() ([]byte, []int)
Deprecated: Use SpotMarketInfo.ProtoReflect.Descriptor instead.
func (*SpotMarketInfo) GetBaseDenom ¶
func (x *SpotMarketInfo) GetBaseDenom() string
func (*SpotMarketInfo) GetBaseTokenMeta ¶
func (x *SpotMarketInfo) GetBaseTokenMeta() *TokenMeta
func (*SpotMarketInfo) GetMakerFeeRate ¶
func (x *SpotMarketInfo) GetMakerFeeRate() string
func (*SpotMarketInfo) GetMarketId ¶
func (x *SpotMarketInfo) GetMarketId() string
func (*SpotMarketInfo) GetMarketStatus ¶
func (x *SpotMarketInfo) GetMarketStatus() string
func (*SpotMarketInfo) GetMinPriceTickSize ¶
func (x *SpotMarketInfo) GetMinPriceTickSize() string
func (*SpotMarketInfo) GetMinQuantityTickSize ¶
func (x *SpotMarketInfo) GetMinQuantityTickSize() string
func (*SpotMarketInfo) GetQuoteDenom ¶
func (x *SpotMarketInfo) GetQuoteDenom() string
func (*SpotMarketInfo) GetQuoteTokenMeta ¶
func (x *SpotMarketInfo) GetQuoteTokenMeta() *TokenMeta
func (*SpotMarketInfo) GetServiceProviderFee ¶
func (x *SpotMarketInfo) GetServiceProviderFee() string
func (*SpotMarketInfo) GetTakerFeeRate ¶
func (x *SpotMarketInfo) GetTakerFeeRate() string
func (*SpotMarketInfo) GetTicker ¶
func (x *SpotMarketInfo) GetTicker() string
func (*SpotMarketInfo) ProtoMessage ¶
func (*SpotMarketInfo) ProtoMessage()
func (*SpotMarketInfo) ProtoReflect ¶
func (x *SpotMarketInfo) ProtoReflect() protoreflect.Message
func (*SpotMarketInfo) Reset ¶
func (x *SpotMarketInfo) Reset()
func (*SpotMarketInfo) String ¶
func (x *SpotMarketInfo) String() string
type SpotTrade ¶
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"` // contains filtered or unexported fields }
func (*SpotTrade) Descriptor
deprecated
func (*SpotTrade) GetExecutedAt ¶
func (*SpotTrade) GetMarketId ¶
func (*SpotTrade) GetOrderHash ¶
func (*SpotTrade) GetPrice ¶
func (x *SpotTrade) GetPrice() *PriceLevel
func (*SpotTrade) GetSubaccountId ¶
func (*SpotTrade) GetTradeDirection ¶
func (*SpotTrade) GetTradeExecutionType ¶
func (*SpotTrade) ProtoMessage ¶
func (*SpotTrade) ProtoMessage()
func (*SpotTrade) ProtoReflect ¶
func (x *SpotTrade) ProtoReflect() protoreflect.Message
type StreamMarketsRequest ¶
type StreamMarketsRequest struct { // List of market IDs for updates 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 (*StreamMarketsRequest) Descriptor
deprecated
func (*StreamMarketsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamMarketsRequest.ProtoReflect.Descriptor instead.
func (*StreamMarketsRequest) GetMarketIds ¶
func (x *StreamMarketsRequest) GetMarketIds() []string
func (*StreamMarketsRequest) ProtoMessage ¶
func (*StreamMarketsRequest) ProtoMessage()
func (*StreamMarketsRequest) ProtoReflect ¶
func (x *StreamMarketsRequest) ProtoReflect() protoreflect.Message
func (*StreamMarketsRequest) Reset ¶
func (x *StreamMarketsRequest) Reset()
func (*StreamMarketsRequest) String ¶
func (x *StreamMarketsRequest) String() string
type StreamMarketsResponse ¶
type StreamMarketsResponse struct { // Info about particular spot market Market *SpotMarketInfo `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 (*StreamMarketsResponse) Descriptor
deprecated
func (*StreamMarketsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamMarketsResponse.ProtoReflect.Descriptor instead.
func (*StreamMarketsResponse) GetMarket ¶
func (x *StreamMarketsResponse) GetMarket() *SpotMarketInfo
func (*StreamMarketsResponse) GetOperationType ¶
func (x *StreamMarketsResponse) GetOperationType() string
func (*StreamMarketsResponse) GetTimestamp ¶
func (x *StreamMarketsResponse) GetTimestamp() int64
func (*StreamMarketsResponse) ProtoMessage ¶
func (*StreamMarketsResponse) ProtoMessage()
func (*StreamMarketsResponse) ProtoReflect ¶
func (x *StreamMarketsResponse) ProtoReflect() protoreflect.Message
func (*StreamMarketsResponse) Reset ¶
func (x *StreamMarketsResponse) Reset()
func (*StreamMarketsResponse) String ¶
func (x *StreamMarketsResponse) 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 Spot Market Orderbook *SpotLimitOrderbook `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 (x *StreamOrderbookResponse) GetOrderbook() *SpotLimitOrderbook
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 *SpotLimitOrder `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 (x *StreamOrdersResponse) GetOrder() *SpotLimitOrder
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 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 item 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 spot market trade Trade *SpotTrade `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() *SpotTrade
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 (x *SubaccountOrdersListRequest) ProtoReflect() protoreflect.Message
func (*SubaccountOrdersListRequest) Reset ¶
func (x *SubaccountOrdersListRequest) Reset()
func (*SubaccountOrdersListRequest) String ¶
func (x *SubaccountOrdersListRequest) String() string
type SubaccountOrdersListResponse ¶
type SubaccountOrdersListResponse struct { // List of spot orders Orders []*SpotLimitOrder `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 (x *SubaccountOrdersListResponse) GetOrders() []*SpotLimitOrder
func (*SubaccountOrdersListResponse) ProtoMessage ¶
func (*SubaccountOrdersListResponse) ProtoMessage()
func (*SubaccountOrdersListResponse) ProtoReflect ¶
func (x *SubaccountOrdersListResponse) ProtoReflect() protoreflect.Message
func (*SubaccountOrdersListResponse) Reset ¶
func (x *SubaccountOrdersListResponse) Reset()
func (*SubaccountOrdersListResponse) String ¶
func (x *SubaccountOrdersListResponse) String() 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 (x *SubaccountTradesListRequest) ProtoReflect() protoreflect.Message
func (*SubaccountTradesListRequest) Reset ¶
func (x *SubaccountTradesListRequest) Reset()
func (*SubaccountTradesListRequest) String ¶
func (x *SubaccountTradesListRequest) String() string
type SubaccountTradesListResponse ¶
type SubaccountTradesListResponse struct { // List of spot market trades Trades []*SpotTrade `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 (x *SubaccountTradesListResponse) GetTrades() []*SpotTrade
func (*SubaccountTradesListResponse) ProtoMessage ¶
func (*SubaccountTradesListResponse) ProtoMessage()
func (*SubaccountTradesListResponse) ProtoReflect ¶
func (x *SubaccountTradesListResponse) ProtoReflect() protoreflect.Message
func (*SubaccountTradesListResponse) Reset ¶
func (x *SubaccountTradesListResponse) Reset()
func (*SubaccountTradesListResponse) String ¶
func (x *SubaccountTradesListResponse) String() 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"` // URL to the logo image 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) GetAddress ¶
func (*TokenMeta) GetDecimals ¶
func (*TokenMeta) GetUpdatedAt ¶
func (*TokenMeta) ProtoMessage ¶
func (*TokenMeta) ProtoMessage()
func (*TokenMeta) ProtoReflect ¶
func (x *TokenMeta) ProtoReflect() protoreflect.Message
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 item 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 Spot Market Trades []*SpotTrade `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() []*SpotTrade
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 UnimplementedInjectiveSpotExchangeRPCServer ¶
type UnimplementedInjectiveSpotExchangeRPCServer struct { }
UnimplementedInjectiveSpotExchangeRPCServer must be embedded to have forward compatible implementations.
func (UnimplementedInjectiveSpotExchangeRPCServer) Market ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) Market(context.Context, *MarketRequest) (*MarketResponse, error)
func (UnimplementedInjectiveSpotExchangeRPCServer) Markets ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) Markets(context.Context, *MarketsRequest) (*MarketsResponse, error)
func (UnimplementedInjectiveSpotExchangeRPCServer) Orderbook ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) Orderbook(context.Context, *OrderbookRequest) (*OrderbookResponse, error)
func (UnimplementedInjectiveSpotExchangeRPCServer) Orders ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) Orders(context.Context, *OrdersRequest) (*OrdersResponse, error)
func (UnimplementedInjectiveSpotExchangeRPCServer) StreamMarkets ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) StreamOrderbook ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) StreamOrderbook(*StreamOrderbookRequest, InjectiveSpotExchangeRPC_StreamOrderbookServer) error
func (UnimplementedInjectiveSpotExchangeRPCServer) StreamOrders ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) StreamTrades ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) SubaccountOrdersList ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) SubaccountOrdersList(context.Context, *SubaccountOrdersListRequest) (*SubaccountOrdersListResponse, error)
func (UnimplementedInjectiveSpotExchangeRPCServer) SubaccountTradesList ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) SubaccountTradesList(context.Context, *SubaccountTradesListRequest) (*SubaccountTradesListResponse, error)
func (UnimplementedInjectiveSpotExchangeRPCServer) Trades ¶
func (UnimplementedInjectiveSpotExchangeRPCServer) Trades(context.Context, *TradesRequest) (*TradesResponse, error)
type UnsafeInjectiveSpotExchangeRPCServer ¶
type UnsafeInjectiveSpotExchangeRPCServer interface {
// contains filtered or unexported methods
}
UnsafeInjectiveSpotExchangeRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InjectiveSpotExchangeRPCServer will result in compilation errors.