v1

package
v0.0.0-...-701c789 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	OrderSide_name = map[int32]string{
		0: "ORDER_SIDE_UNSPECIFIED",
		1: "ORDER_SIDE_BUY",
		2: "ORDER_SIDE_SELL",
	}
	OrderSide_value = map[string]int32{
		"ORDER_SIDE_UNSPECIFIED": 0,
		"ORDER_SIDE_BUY":         1,
		"ORDER_SIDE_SELL":        2,
	}
)

Enum value maps for OrderSide.

View Source
var (
	OrderType_name = map[int32]string{
		0: "ORDER_TYPE_UNSPECIFIED",
		1: "ORDER_TYPE_MARKET",
		2: "ORDER_TYPE_LIMIT",
	}
	OrderType_value = map[string]int32{
		"ORDER_TYPE_UNSPECIFIED": 0,
		"ORDER_TYPE_MARKET":      1,
		"ORDER_TYPE_LIMIT":       2,
	}
)

Enum value maps for OrderType.

View Source
var (
	OrderTimeInForce_name = map[int32]string{
		0: "ORDER_TIME_IN_FORCE_UNSPECIFIED",
		1: "ORDER_TIME_IN_FORCE_GOOD_UNTIL_DATETIME",
		2: "ORDER_TIME_IN_FORCE_GOOD_UNTIL_CANCELLED",
		3: "ORDER_TIME_IN_FORCE_IMMEDIATE_OR_CANCEL",
		4: "ORDER_TIME_IN_FORCE_FILL_OR_KILL",
	}
	OrderTimeInForce_value = map[string]int32{
		"ORDER_TIME_IN_FORCE_UNSPECIFIED":          0,
		"ORDER_TIME_IN_FORCE_GOOD_UNTIL_DATETIME":  1,
		"ORDER_TIME_IN_FORCE_GOOD_UNTIL_CANCELLED": 2,
		"ORDER_TIME_IN_FORCE_IMMEDIATE_OR_CANCEL":  3,
		"ORDER_TIME_IN_FORCE_FILL_OR_KILL":         4,
	}
)

Enum value maps for OrderTimeInForce.

View Source
var (
	OrderStatus_name = map[int32]string{
		0: "ORDER_STATUS_UNSPECIFIED",
		1: "ORDER_STATUS_PENDING",
		2: "ORDER_STATUS_OPEN",
		3: "ORDER_STATUS_FILLED",
		4: "ORDER_STATUS_CANCELLED",
		5: "ORDER_STATUS_EXPIRED",
		6: "ORDER_STATUS_FAILED",
	}
	OrderStatus_value = map[string]int32{
		"ORDER_STATUS_UNSPECIFIED": 0,
		"ORDER_STATUS_PENDING":     1,
		"ORDER_STATUS_OPEN":        2,
		"ORDER_STATUS_FILLED":      3,
		"ORDER_STATUS_CANCELLED":   4,
		"ORDER_STATUS_EXPIRED":     5,
		"ORDER_STATUS_FAILED":      6,
	}
)

Enum value maps for OrderStatus.

View Source
var (
	SortDirection_name = map[int32]string{
		0: "SORT_DIRECTION_UNSPECIFIED",
		1: "SORT_DIRECTION_ASC",
		2: "SORT_DIRECTION_DESC",
	}
	SortDirection_value = map[string]int32{
		"SORT_DIRECTION_UNSPECIFIED": 0,
		"SORT_DIRECTION_ASC":         1,
		"SORT_DIRECTION_DESC":        2,
	}
)

Enum value maps for SortDirection.

View Source
var File_pkg_pbs_order_v1_order_proto protoreflect.FileDescriptor
View Source
var OrderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.pbs.order.v1.OrderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrder",
			Handler:    _OrderService_CreateOrder_Handler,
		},
		{
			MethodName: "ReadOrder",
			Handler:    _OrderService_ReadOrder_Handler,
		},
		{
			MethodName: "ListOrders",
			Handler:    _OrderService_ListOrders_Handler,
		},
		{
			MethodName: "UpdateOrder",
			Handler:    _OrderService_UpdateOrder_Handler,
		},
		{
			MethodName: "UpdateOrderFeed",
			Handler:    _OrderService_UpdateOrderFeed_Handler,
		},
		{
			MethodName: "SendVenueOrder",
			Handler:    _OrderService_SendVenueOrder_Handler,
		},
		{
			MethodName: "SendVenueOrderCancel",
			Handler:    _OrderService_SendVenueOrderCancel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/pbs/order/v1/order.proto",
}

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

Functions

func RegisterOrderServiceHandler

func RegisterOrderServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterOrderServiceHandler registers the http handlers for service OrderService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterOrderServiceHandlerClient

func RegisterOrderServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrderServiceClient) error

RegisterOrderServiceHandlerClient registers the http handlers for service OrderService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OrderServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OrderServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OrderServiceClient" to call the correct interceptors.

func RegisterOrderServiceHandlerFromEndpoint

func RegisterOrderServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterOrderServiceHandlerFromEndpoint is same as RegisterOrderServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterOrderServiceHandlerServer

func RegisterOrderServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrderServiceServer) error

RegisterOrderServiceHandlerServer registers the http handlers for service OrderService to "mux". UnaryRPC :call OrderServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOrderServiceHandlerFromEndpoint instead.

func RegisterOrderServiceServer

func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)

Types

type CreateOrderRequest

type CreateOrderRequest struct {
	ProductId   string           `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	Side        OrderSide        `protobuf:"varint,2,opt,name=side,proto3,enum=pkg.pbs.order.v1.OrderSide" json:"side,omitempty"`
	Type        OrderType        `protobuf:"varint,3,opt,name=type,proto3,enum=pkg.pbs.order.v1.OrderType" json:"type,omitempty"`
	Quantity    string           `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	LimitPrice  string           `protobuf:"bytes,5,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"`
	TimeInForce OrderTimeInForce `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateOrderRequest) Descriptor deprecated

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

Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.

func (*CreateOrderRequest) GetLimitPrice

func (x *CreateOrderRequest) GetLimitPrice() string

func (*CreateOrderRequest) GetProductId

func (x *CreateOrderRequest) GetProductId() string

func (*CreateOrderRequest) GetQuantity

func (x *CreateOrderRequest) GetQuantity() string

func (*CreateOrderRequest) GetSide

func (x *CreateOrderRequest) GetSide() OrderSide

func (*CreateOrderRequest) GetTimeInForce

func (x *CreateOrderRequest) GetTimeInForce() OrderTimeInForce

func (*CreateOrderRequest) GetType

func (x *CreateOrderRequest) GetType() OrderType

func (*CreateOrderRequest) ProtoMessage

func (*CreateOrderRequest) ProtoMessage()

func (*CreateOrderRequest) ProtoReflect

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

func (*CreateOrderRequest) Reset

func (x *CreateOrderRequest) Reset()

func (*CreateOrderRequest) String

func (x *CreateOrderRequest) String() string

func (*CreateOrderRequest) Validate

func (m *CreateOrderRequest) Validate() error

Validate checks the field values on CreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrderRequest) ValidateAll

func (m *CreateOrderRequest) ValidateAll() error

ValidateAll checks the field values on CreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrderRequestMultiError, or nil if none found.

type CreateOrderRequestMultiError

type CreateOrderRequestMultiError []error

CreateOrderRequestMultiError is an error wrapping multiple validation errors returned by CreateOrderRequest.ValidateAll() if the designated constraints aren't met.

func (CreateOrderRequestMultiError) AllErrors

func (m CreateOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrderRequestValidationError

type CreateOrderRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateOrderRequestValidationError is the validation error returned by CreateOrderRequest.Validate if the designated constraints aren't met.

func (CreateOrderRequestValidationError) Cause

Cause function returns cause value.

func (CreateOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderRequestValidationError) Field

Field function returns field value.

func (CreateOrderRequestValidationError) Key

Key function returns key value.

func (CreateOrderRequestValidationError) Reason

Reason function returns reason value.

type CreateOrderResponse

type CreateOrderResponse struct {
	OrderId            string                 `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	OwnerId            string                 `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	ProductId          string                 `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	Side               OrderSide              `protobuf:"varint,4,opt,name=side,proto3,enum=pkg.pbs.order.v1.OrderSide" json:"side,omitempty"`
	Type               OrderType              `protobuf:"varint,5,opt,name=type,proto3,enum=pkg.pbs.order.v1.OrderType" json:"type,omitempty"`
	Quantity           string                 `protobuf:"bytes,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	LimitPrice         string                 `protobuf:"bytes,7,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"`
	TimeInForce        OrderTimeInForce       `` /* 136-byte string literal not displayed */
	Status             OrderStatus            `protobuf:"varint,9,opt,name=status,proto3,enum=pkg.pbs.order.v1.OrderStatus" json:"status,omitempty"`
	CreatedAt          *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt          *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	FilledQuantity     string                 `protobuf:"bytes,12,opt,name=filled_quantity,json=filledQuantity,proto3" json:"filled_quantity,omitempty"`
	FilledValue        string                 `protobuf:"bytes,13,opt,name=filled_value,json=filledValue,proto3" json:"filled_value,omitempty"`
	AverageFilledPrice string                 `protobuf:"bytes,14,opt,name=average_filled_price,json=averageFilledPrice,proto3" json:"average_filled_price,omitempty"`
	Commission         string                 `protobuf:"bytes,15,opt,name=commission,proto3" json:"commission,omitempty"`
	ExchangeFee        string                 `protobuf:"bytes,16,opt,name=exchange_fee,json=exchangeFee,proto3" json:"exchange_fee,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrderResponse) Descriptor deprecated

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

Deprecated: Use CreateOrderResponse.ProtoReflect.Descriptor instead.

func (*CreateOrderResponse) GetAverageFilledPrice

func (x *CreateOrderResponse) GetAverageFilledPrice() string

func (*CreateOrderResponse) GetCommission

func (x *CreateOrderResponse) GetCommission() string

func (*CreateOrderResponse) GetCreatedAt

func (x *CreateOrderResponse) GetCreatedAt() *timestamppb.Timestamp

func (*CreateOrderResponse) GetExchangeFee

func (x *CreateOrderResponse) GetExchangeFee() string

func (*CreateOrderResponse) GetFilledQuantity

func (x *CreateOrderResponse) GetFilledQuantity() string

func (*CreateOrderResponse) GetFilledValue

func (x *CreateOrderResponse) GetFilledValue() string

func (*CreateOrderResponse) GetLimitPrice

func (x *CreateOrderResponse) GetLimitPrice() string

func (*CreateOrderResponse) GetOrderId

func (x *CreateOrderResponse) GetOrderId() string

func (*CreateOrderResponse) GetOwnerId

func (x *CreateOrderResponse) GetOwnerId() string

func (*CreateOrderResponse) GetProductId

func (x *CreateOrderResponse) GetProductId() string

func (*CreateOrderResponse) GetQuantity

func (x *CreateOrderResponse) GetQuantity() string

func (*CreateOrderResponse) GetSide

func (x *CreateOrderResponse) GetSide() OrderSide

func (*CreateOrderResponse) GetStatus

func (x *CreateOrderResponse) GetStatus() OrderStatus

func (*CreateOrderResponse) GetTimeInForce

func (x *CreateOrderResponse) GetTimeInForce() OrderTimeInForce

func (*CreateOrderResponse) GetType

func (x *CreateOrderResponse) GetType() OrderType

func (*CreateOrderResponse) GetUpdatedAt

func (x *CreateOrderResponse) GetUpdatedAt() *timestamppb.Timestamp

func (*CreateOrderResponse) ProtoMessage

func (*CreateOrderResponse) ProtoMessage()

func (*CreateOrderResponse) ProtoReflect

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

func (*CreateOrderResponse) Reset

func (x *CreateOrderResponse) Reset()

func (*CreateOrderResponse) String

func (x *CreateOrderResponse) String() string

func (*CreateOrderResponse) Validate

func (m *CreateOrderResponse) Validate() error

Validate checks the field values on CreateOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrderResponse) ValidateAll

func (m *CreateOrderResponse) ValidateAll() error

ValidateAll checks the field values on CreateOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrderResponseMultiError, or nil if none found.

type CreateOrderResponseMultiError

type CreateOrderResponseMultiError []error

CreateOrderResponseMultiError is an error wrapping multiple validation errors returned by CreateOrderResponse.ValidateAll() if the designated constraints aren't met.

func (CreateOrderResponseMultiError) AllErrors

func (m CreateOrderResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrderResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrderResponseValidationError

type CreateOrderResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateOrderResponseValidationError is the validation error returned by CreateOrderResponse.Validate if the designated constraints aren't met.

func (CreateOrderResponseValidationError) Cause

Cause function returns cause value.

func (CreateOrderResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderResponseValidationError) Field

Field function returns field value.

func (CreateOrderResponseValidationError) Key

Key function returns key value.

func (CreateOrderResponseValidationError) Reason

Reason function returns reason value.

type ListOrdersRequest

type ListOrdersRequest struct {
	Query         string        `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Cursor        string        `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	SortDirection SortDirection `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListOrdersRequest) Descriptor deprecated

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

Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.

func (*ListOrdersRequest) GetCursor

func (x *ListOrdersRequest) GetCursor() string

func (*ListOrdersRequest) GetQuery

func (x *ListOrdersRequest) GetQuery() string

func (*ListOrdersRequest) GetSortDirection

func (x *ListOrdersRequest) GetSortDirection() SortDirection

func (*ListOrdersRequest) ProtoMessage

func (*ListOrdersRequest) ProtoMessage()

func (*ListOrdersRequest) ProtoReflect

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

func (*ListOrdersRequest) Reset

func (x *ListOrdersRequest) Reset()

func (*ListOrdersRequest) String

func (x *ListOrdersRequest) String() string

func (*ListOrdersRequest) Validate

func (m *ListOrdersRequest) Validate() error

Validate checks the field values on ListOrdersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListOrdersRequest) ValidateAll

func (m *ListOrdersRequest) ValidateAll() error

ValidateAll checks the field values on ListOrdersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListOrdersRequestMultiError, or nil if none found.

type ListOrdersRequestMultiError

type ListOrdersRequestMultiError []error

ListOrdersRequestMultiError is an error wrapping multiple validation errors returned by ListOrdersRequest.ValidateAll() if the designated constraints aren't met.

func (ListOrdersRequestMultiError) AllErrors

func (m ListOrdersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrdersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrdersRequestValidationError

type ListOrdersRequestValidationError struct {
	// contains filtered or unexported fields
}

ListOrdersRequestValidationError is the validation error returned by ListOrdersRequest.Validate if the designated constraints aren't met.

func (ListOrdersRequestValidationError) Cause

Cause function returns cause value.

func (ListOrdersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListOrdersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListOrdersRequestValidationError) Field

Field function returns field value.

func (ListOrdersRequestValidationError) Key

Key function returns key value.

func (ListOrdersRequestValidationError) Reason

Reason function returns reason value.

type ListOrdersResponse

type ListOrdersResponse struct {
	Data       []*ReadOrderResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Count      int32                `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	NextCursor string               `protobuf:"bytes,3,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	HasNext    bool                 `protobuf:"varint,4,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrdersResponse) Descriptor deprecated

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

Deprecated: Use ListOrdersResponse.ProtoReflect.Descriptor instead.

func (*ListOrdersResponse) GetCount

func (x *ListOrdersResponse) GetCount() int32

func (*ListOrdersResponse) GetData

func (x *ListOrdersResponse) GetData() []*ReadOrderResponse

func (*ListOrdersResponse) GetHasNext

func (x *ListOrdersResponse) GetHasNext() bool

func (*ListOrdersResponse) GetNextCursor

func (x *ListOrdersResponse) GetNextCursor() string

func (*ListOrdersResponse) ProtoMessage

func (*ListOrdersResponse) ProtoMessage()

func (*ListOrdersResponse) ProtoReflect

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

func (*ListOrdersResponse) Reset

func (x *ListOrdersResponse) Reset()

func (*ListOrdersResponse) String

func (x *ListOrdersResponse) String() string

func (*ListOrdersResponse) Validate

func (m *ListOrdersResponse) Validate() error

Validate checks the field values on ListOrdersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListOrdersResponse) ValidateAll

func (m *ListOrdersResponse) ValidateAll() error

ValidateAll checks the field values on ListOrdersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListOrdersResponseMultiError, or nil if none found.

type ListOrdersResponseMultiError

type ListOrdersResponseMultiError []error

ListOrdersResponseMultiError is an error wrapping multiple validation errors returned by ListOrdersResponse.ValidateAll() if the designated constraints aren't met.

func (ListOrdersResponseMultiError) AllErrors

func (m ListOrdersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrdersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrdersResponseValidationError

type ListOrdersResponseValidationError struct {
	// contains filtered or unexported fields
}

ListOrdersResponseValidationError is the validation error returned by ListOrdersResponse.Validate if the designated constraints aren't met.

func (ListOrdersResponseValidationError) Cause

Cause function returns cause value.

func (ListOrdersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListOrdersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListOrdersResponseValidationError) Field

Field function returns field value.

func (ListOrdersResponseValidationError) Key

Key function returns key value.

func (ListOrdersResponseValidationError) Reason

Reason function returns reason value.

type OrderServiceClient

type OrderServiceClient interface {
	CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderResponse, error)
	ReadOrder(ctx context.Context, in *ReadOrderRequest, opts ...grpc.CallOption) (*ReadOrderResponse, error)
	ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error)
	UpdateOrder(ctx context.Context, in *UpdateOrderRequest, opts ...grpc.CallOption) (*UpdateOrderResponse, error)
	UpdateOrderFeed(ctx context.Context, in *UpdateOrderFeedRequest, opts ...grpc.CallOption) (*UpdateOrderFeedResponse, error)
	SendVenueOrder(ctx context.Context, in *SendVenueOrderRequest, opts ...grpc.CallOption) (*SendVenueOrderResponse, error)
	SendVenueOrderCancel(ctx context.Context, in *SendVenueOrderCancelRequest, opts ...grpc.CallOption) (*SendVenueOrderCancelResponse, error)
}

OrderServiceClient is the client API for OrderService 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 OrderServiceServer

OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility

type OrderSide

type OrderSide int32
const (
	OrderSide_ORDER_SIDE_UNSPECIFIED OrderSide = 0
	OrderSide_ORDER_SIDE_BUY         OrderSide = 1
	OrderSide_ORDER_SIDE_SELL        OrderSide = 2
)

func (OrderSide) Descriptor

func (OrderSide) Descriptor() protoreflect.EnumDescriptor

func (OrderSide) Enum

func (x OrderSide) Enum() *OrderSide

func (OrderSide) EnumDescriptor deprecated

func (OrderSide) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderSide.Descriptor instead.

func (OrderSide) Number

func (x OrderSide) Number() protoreflect.EnumNumber

func (OrderSide) String

func (x OrderSide) String() string

func (OrderSide) Type

type OrderStatus

type OrderStatus int32
const (
	OrderStatus_ORDER_STATUS_UNSPECIFIED OrderStatus = 0
	OrderStatus_ORDER_STATUS_PENDING     OrderStatus = 1
	OrderStatus_ORDER_STATUS_OPEN        OrderStatus = 2
	OrderStatus_ORDER_STATUS_FILLED      OrderStatus = 3
	OrderStatus_ORDER_STATUS_CANCELLED   OrderStatus = 4
	OrderStatus_ORDER_STATUS_EXPIRED     OrderStatus = 5
	OrderStatus_ORDER_STATUS_FAILED      OrderStatus = 6
)

func (OrderStatus) Descriptor

func (OrderStatus) Enum

func (x OrderStatus) Enum() *OrderStatus

func (OrderStatus) EnumDescriptor deprecated

func (OrderStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderStatus.Descriptor instead.

func (OrderStatus) Number

func (x OrderStatus) Number() protoreflect.EnumNumber

func (OrderStatus) String

func (x OrderStatus) String() string

func (OrderStatus) Type

type OrderTimeInForce

type OrderTimeInForce int32
const (
	OrderTimeInForce_ORDER_TIME_IN_FORCE_UNSPECIFIED          OrderTimeInForce = 0
	OrderTimeInForce_ORDER_TIME_IN_FORCE_GOOD_UNTIL_DATETIME  OrderTimeInForce = 1
	OrderTimeInForce_ORDER_TIME_IN_FORCE_GOOD_UNTIL_CANCELLED OrderTimeInForce = 2
	OrderTimeInForce_ORDER_TIME_IN_FORCE_IMMEDIATE_OR_CANCEL  OrderTimeInForce = 3
	OrderTimeInForce_ORDER_TIME_IN_FORCE_FILL_OR_KILL         OrderTimeInForce = 4
)

func (OrderTimeInForce) Descriptor

func (OrderTimeInForce) Enum

func (OrderTimeInForce) EnumDescriptor deprecated

func (OrderTimeInForce) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderTimeInForce.Descriptor instead.

func (OrderTimeInForce) Number

func (OrderTimeInForce) String

func (x OrderTimeInForce) String() string

func (OrderTimeInForce) Type

type OrderType

type OrderType int32
const (
	OrderType_ORDER_TYPE_UNSPECIFIED OrderType = 0
	OrderType_ORDER_TYPE_MARKET      OrderType = 1
	OrderType_ORDER_TYPE_LIMIT       OrderType = 2
)

func (OrderType) Descriptor

func (OrderType) Descriptor() protoreflect.EnumDescriptor

func (OrderType) Enum

func (x OrderType) Enum() *OrderType

func (OrderType) EnumDescriptor deprecated

func (OrderType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderType.Descriptor instead.

func (OrderType) Number

func (x OrderType) Number() protoreflect.EnumNumber

func (OrderType) String

func (x OrderType) String() string

func (OrderType) Type

type ReadOrderRequest

type ReadOrderRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadOrderRequest) Descriptor deprecated

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

Deprecated: Use ReadOrderRequest.ProtoReflect.Descriptor instead.

func (*ReadOrderRequest) GetId

func (x *ReadOrderRequest) GetId() string

func (*ReadOrderRequest) ProtoMessage

func (*ReadOrderRequest) ProtoMessage()

func (*ReadOrderRequest) ProtoReflect

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

func (*ReadOrderRequest) Reset

func (x *ReadOrderRequest) Reset()

func (*ReadOrderRequest) String

func (x *ReadOrderRequest) String() string

func (*ReadOrderRequest) Validate

func (m *ReadOrderRequest) Validate() error

Validate checks the field values on ReadOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReadOrderRequest) ValidateAll

func (m *ReadOrderRequest) ValidateAll() error

ValidateAll checks the field values on ReadOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadOrderRequestMultiError, or nil if none found.

type ReadOrderRequestMultiError

type ReadOrderRequestMultiError []error

ReadOrderRequestMultiError is an error wrapping multiple validation errors returned by ReadOrderRequest.ValidateAll() if the designated constraints aren't met.

func (ReadOrderRequestMultiError) AllErrors

func (m ReadOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ReadOrderRequestValidationError

type ReadOrderRequestValidationError struct {
	// contains filtered or unexported fields
}

ReadOrderRequestValidationError is the validation error returned by ReadOrderRequest.Validate if the designated constraints aren't met.

func (ReadOrderRequestValidationError) Cause

Cause function returns cause value.

func (ReadOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (ReadOrderRequestValidationError) Field

Field function returns field value.

func (ReadOrderRequestValidationError) Key

Key function returns key value.

func (ReadOrderRequestValidationError) Reason

Reason function returns reason value.

type ReadOrderResponse

type ReadOrderResponse struct {
	OrderId            string                 `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	OwnerId            string                 `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	ProductId          string                 `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	Side               OrderSide              `protobuf:"varint,4,opt,name=side,proto3,enum=pkg.pbs.order.v1.OrderSide" json:"side,omitempty"`
	Type               OrderType              `protobuf:"varint,5,opt,name=type,proto3,enum=pkg.pbs.order.v1.OrderType" json:"type,omitempty"`
	Quantity           string                 `protobuf:"bytes,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	LimitPrice         string                 `protobuf:"bytes,7,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"`
	TimeInForce        OrderTimeInForce       `` /* 136-byte string literal not displayed */
	Status             OrderStatus            `protobuf:"varint,9,opt,name=status,proto3,enum=pkg.pbs.order.v1.OrderStatus" json:"status,omitempty"`
	CreatedAt          *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt          *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	FilledQuantity     string                 `protobuf:"bytes,12,opt,name=filled_quantity,json=filledQuantity,proto3" json:"filled_quantity,omitempty"`
	FilledValue        string                 `protobuf:"bytes,13,opt,name=filled_value,json=filledValue,proto3" json:"filled_value,omitempty"`
	AverageFilledPrice string                 `protobuf:"bytes,14,opt,name=average_filled_price,json=averageFilledPrice,proto3" json:"average_filled_price,omitempty"`
	Commission         string                 `protobuf:"bytes,15,opt,name=commission,proto3" json:"commission,omitempty"`
	ExchangeFee        string                 `protobuf:"bytes,16,opt,name=exchange_fee,json=exchangeFee,proto3" json:"exchange_fee,omitempty"`
	CancelReason       string                 `protobuf:"bytes,17,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
	FailureReason      string                 `protobuf:"bytes,18,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadOrderResponse) Descriptor deprecated

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

Deprecated: Use ReadOrderResponse.ProtoReflect.Descriptor instead.

func (*ReadOrderResponse) GetAverageFilledPrice

func (x *ReadOrderResponse) GetAverageFilledPrice() string

func (*ReadOrderResponse) GetCancelReason

func (x *ReadOrderResponse) GetCancelReason() string

func (*ReadOrderResponse) GetCommission

func (x *ReadOrderResponse) GetCommission() string

func (*ReadOrderResponse) GetCreatedAt

func (x *ReadOrderResponse) GetCreatedAt() *timestamppb.Timestamp

func (*ReadOrderResponse) GetExchangeFee

func (x *ReadOrderResponse) GetExchangeFee() string

func (*ReadOrderResponse) GetFailureReason

func (x *ReadOrderResponse) GetFailureReason() string

func (*ReadOrderResponse) GetFilledQuantity

func (x *ReadOrderResponse) GetFilledQuantity() string

func (*ReadOrderResponse) GetFilledValue

func (x *ReadOrderResponse) GetFilledValue() string

func (*ReadOrderResponse) GetLimitPrice

func (x *ReadOrderResponse) GetLimitPrice() string

func (*ReadOrderResponse) GetOrderId

func (x *ReadOrderResponse) GetOrderId() string

func (*ReadOrderResponse) GetOwnerId

func (x *ReadOrderResponse) GetOwnerId() string

func (*ReadOrderResponse) GetProductId

func (x *ReadOrderResponse) GetProductId() string

func (*ReadOrderResponse) GetQuantity

func (x *ReadOrderResponse) GetQuantity() string

func (*ReadOrderResponse) GetSide

func (x *ReadOrderResponse) GetSide() OrderSide

func (*ReadOrderResponse) GetStatus

func (x *ReadOrderResponse) GetStatus() OrderStatus

func (*ReadOrderResponse) GetTimeInForce

func (x *ReadOrderResponse) GetTimeInForce() OrderTimeInForce

func (*ReadOrderResponse) GetType

func (x *ReadOrderResponse) GetType() OrderType

func (*ReadOrderResponse) GetUpdatedAt

func (x *ReadOrderResponse) GetUpdatedAt() *timestamppb.Timestamp

func (*ReadOrderResponse) ProtoMessage

func (*ReadOrderResponse) ProtoMessage()

func (*ReadOrderResponse) ProtoReflect

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

func (*ReadOrderResponse) Reset

func (x *ReadOrderResponse) Reset()

func (*ReadOrderResponse) String

func (x *ReadOrderResponse) String() string

func (*ReadOrderResponse) Validate

func (m *ReadOrderResponse) Validate() error

Validate checks the field values on ReadOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReadOrderResponse) ValidateAll

func (m *ReadOrderResponse) ValidateAll() error

ValidateAll checks the field values on ReadOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadOrderResponseMultiError, or nil if none found.

type ReadOrderResponseMultiError

type ReadOrderResponseMultiError []error

ReadOrderResponseMultiError is an error wrapping multiple validation errors returned by ReadOrderResponse.ValidateAll() if the designated constraints aren't met.

func (ReadOrderResponseMultiError) AllErrors

func (m ReadOrderResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadOrderResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ReadOrderResponseValidationError

type ReadOrderResponseValidationError struct {
	// contains filtered or unexported fields
}

ReadOrderResponseValidationError is the validation error returned by ReadOrderResponse.Validate if the designated constraints aren't met.

func (ReadOrderResponseValidationError) Cause

Cause function returns cause value.

func (ReadOrderResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadOrderResponseValidationError) ErrorName

ErrorName returns error name.

func (ReadOrderResponseValidationError) Field

Field function returns field value.

func (ReadOrderResponseValidationError) Key

Key function returns key value.

func (ReadOrderResponseValidationError) Reason

Reason function returns reason value.

type SendVenueOrderCancelRequest

type SendVenueOrderCancelRequest struct {
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVenueOrderCancelRequest) Descriptor deprecated

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

Deprecated: Use SendVenueOrderCancelRequest.ProtoReflect.Descriptor instead.

func (*SendVenueOrderCancelRequest) GetOrderId

func (x *SendVenueOrderCancelRequest) GetOrderId() string

func (*SendVenueOrderCancelRequest) ProtoMessage

func (*SendVenueOrderCancelRequest) ProtoMessage()

func (*SendVenueOrderCancelRequest) ProtoReflect

func (*SendVenueOrderCancelRequest) Reset

func (x *SendVenueOrderCancelRequest) Reset()

func (*SendVenueOrderCancelRequest) String

func (x *SendVenueOrderCancelRequest) String() string

func (*SendVenueOrderCancelRequest) Validate

func (m *SendVenueOrderCancelRequest) Validate() error

Validate checks the field values on SendVenueOrderCancelRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendVenueOrderCancelRequest) ValidateAll

func (m *SendVenueOrderCancelRequest) ValidateAll() error

ValidateAll checks the field values on SendVenueOrderCancelRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendVenueOrderCancelRequestMultiError, or nil if none found.

type SendVenueOrderCancelRequestMultiError

type SendVenueOrderCancelRequestMultiError []error

SendVenueOrderCancelRequestMultiError is an error wrapping multiple validation errors returned by SendVenueOrderCancelRequest.ValidateAll() if the designated constraints aren't met.

func (SendVenueOrderCancelRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SendVenueOrderCancelRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SendVenueOrderCancelRequestValidationError

type SendVenueOrderCancelRequestValidationError struct {
	// contains filtered or unexported fields
}

SendVenueOrderCancelRequestValidationError is the validation error returned by SendVenueOrderCancelRequest.Validate if the designated constraints aren't met.

func (SendVenueOrderCancelRequestValidationError) Cause

Cause function returns cause value.

func (SendVenueOrderCancelRequestValidationError) Error

Error satisfies the builtin error interface

func (SendVenueOrderCancelRequestValidationError) ErrorName

ErrorName returns error name.

func (SendVenueOrderCancelRequestValidationError) Field

Field function returns field value.

func (SendVenueOrderCancelRequestValidationError) Key

Key function returns key value.

func (SendVenueOrderCancelRequestValidationError) Reason

Reason function returns reason value.

type SendVenueOrderCancelResponse

type SendVenueOrderCancelResponse struct {
	// contains filtered or unexported fields
}

func (*SendVenueOrderCancelResponse) Descriptor deprecated

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

Deprecated: Use SendVenueOrderCancelResponse.ProtoReflect.Descriptor instead.

func (*SendVenueOrderCancelResponse) ProtoMessage

func (*SendVenueOrderCancelResponse) ProtoMessage()

func (*SendVenueOrderCancelResponse) ProtoReflect

func (*SendVenueOrderCancelResponse) Reset

func (x *SendVenueOrderCancelResponse) Reset()

func (*SendVenueOrderCancelResponse) String

func (*SendVenueOrderCancelResponse) Validate

func (m *SendVenueOrderCancelResponse) Validate() error

Validate checks the field values on SendVenueOrderCancelResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendVenueOrderCancelResponse) ValidateAll

func (m *SendVenueOrderCancelResponse) ValidateAll() error

ValidateAll checks the field values on SendVenueOrderCancelResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendVenueOrderCancelResponseMultiError, or nil if none found.

type SendVenueOrderCancelResponseMultiError

type SendVenueOrderCancelResponseMultiError []error

SendVenueOrderCancelResponseMultiError is an error wrapping multiple validation errors returned by SendVenueOrderCancelResponse.ValidateAll() if the designated constraints aren't met.

func (SendVenueOrderCancelResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (SendVenueOrderCancelResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SendVenueOrderCancelResponseValidationError

type SendVenueOrderCancelResponseValidationError struct {
	// contains filtered or unexported fields
}

SendVenueOrderCancelResponseValidationError is the validation error returned by SendVenueOrderCancelResponse.Validate if the designated constraints aren't met.

func (SendVenueOrderCancelResponseValidationError) Cause

Cause function returns cause value.

func (SendVenueOrderCancelResponseValidationError) Error

Error satisfies the builtin error interface

func (SendVenueOrderCancelResponseValidationError) ErrorName

ErrorName returns error name.

func (SendVenueOrderCancelResponseValidationError) Field

Field function returns field value.

func (SendVenueOrderCancelResponseValidationError) Key

Key function returns key value.

func (SendVenueOrderCancelResponseValidationError) Reason

Reason function returns reason value.

type SendVenueOrderRequest

type SendVenueOrderRequest struct {
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVenueOrderRequest) Descriptor deprecated

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

Deprecated: Use SendVenueOrderRequest.ProtoReflect.Descriptor instead.

func (*SendVenueOrderRequest) GetOrderId

func (x *SendVenueOrderRequest) GetOrderId() string

func (*SendVenueOrderRequest) ProtoMessage

func (*SendVenueOrderRequest) ProtoMessage()

func (*SendVenueOrderRequest) ProtoReflect

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

func (*SendVenueOrderRequest) Reset

func (x *SendVenueOrderRequest) Reset()

func (*SendVenueOrderRequest) String

func (x *SendVenueOrderRequest) String() string

func (*SendVenueOrderRequest) Validate

func (m *SendVenueOrderRequest) Validate() error

Validate checks the field values on SendVenueOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendVenueOrderRequest) ValidateAll

func (m *SendVenueOrderRequest) ValidateAll() error

ValidateAll checks the field values on SendVenueOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendVenueOrderRequestMultiError, or nil if none found.

type SendVenueOrderRequestMultiError

type SendVenueOrderRequestMultiError []error

SendVenueOrderRequestMultiError is an error wrapping multiple validation errors returned by SendVenueOrderRequest.ValidateAll() if the designated constraints aren't met.

func (SendVenueOrderRequestMultiError) AllErrors

func (m SendVenueOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendVenueOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SendVenueOrderRequestValidationError

type SendVenueOrderRequestValidationError struct {
	// contains filtered or unexported fields
}

SendVenueOrderRequestValidationError is the validation error returned by SendVenueOrderRequest.Validate if the designated constraints aren't met.

func (SendVenueOrderRequestValidationError) Cause

Cause function returns cause value.

func (SendVenueOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (SendVenueOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (SendVenueOrderRequestValidationError) Field

Field function returns field value.

func (SendVenueOrderRequestValidationError) Key

Key function returns key value.

func (SendVenueOrderRequestValidationError) Reason

Reason function returns reason value.

type SendVenueOrderResponse

type SendVenueOrderResponse struct {
	// contains filtered or unexported fields
}

func (*SendVenueOrderResponse) Descriptor deprecated

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

Deprecated: Use SendVenueOrderResponse.ProtoReflect.Descriptor instead.

func (*SendVenueOrderResponse) ProtoMessage

func (*SendVenueOrderResponse) ProtoMessage()

func (*SendVenueOrderResponse) ProtoReflect

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

func (*SendVenueOrderResponse) Reset

func (x *SendVenueOrderResponse) Reset()

func (*SendVenueOrderResponse) String

func (x *SendVenueOrderResponse) String() string

func (*SendVenueOrderResponse) Validate

func (m *SendVenueOrderResponse) Validate() error

Validate checks the field values on SendVenueOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SendVenueOrderResponse) ValidateAll

func (m *SendVenueOrderResponse) ValidateAll() error

ValidateAll checks the field values on SendVenueOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendVenueOrderResponseMultiError, or nil if none found.

type SendVenueOrderResponseMultiError

type SendVenueOrderResponseMultiError []error

SendVenueOrderResponseMultiError is an error wrapping multiple validation errors returned by SendVenueOrderResponse.ValidateAll() if the designated constraints aren't met.

func (SendVenueOrderResponseMultiError) AllErrors

func (m SendVenueOrderResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendVenueOrderResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SendVenueOrderResponseValidationError

type SendVenueOrderResponseValidationError struct {
	// contains filtered or unexported fields
}

SendVenueOrderResponseValidationError is the validation error returned by SendVenueOrderResponse.Validate if the designated constraints aren't met.

func (SendVenueOrderResponseValidationError) Cause

Cause function returns cause value.

func (SendVenueOrderResponseValidationError) Error

Error satisfies the builtin error interface

func (SendVenueOrderResponseValidationError) ErrorName

ErrorName returns error name.

func (SendVenueOrderResponseValidationError) Field

Field function returns field value.

func (SendVenueOrderResponseValidationError) Key

Key function returns key value.

func (SendVenueOrderResponseValidationError) Reason

Reason function returns reason value.

type SortDirection

type SortDirection int32
const (
	SortDirection_SORT_DIRECTION_UNSPECIFIED SortDirection = 0
	SortDirection_SORT_DIRECTION_ASC         SortDirection = 1
	SortDirection_SORT_DIRECTION_DESC        SortDirection = 2
)

func (SortDirection) Descriptor

func (SortDirection) Enum

func (x SortDirection) Enum() *SortDirection

func (SortDirection) EnumDescriptor deprecated

func (SortDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortDirection.Descriptor instead.

func (SortDirection) Number

func (SortDirection) String

func (x SortDirection) String() string

func (SortDirection) Type

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) CreateOrder

func (UnimplementedOrderServiceServer) ListOrders

func (UnimplementedOrderServiceServer) ReadOrder

func (UnimplementedOrderServiceServer) SendVenueOrder

func (UnimplementedOrderServiceServer) UpdateOrder

func (UnimplementedOrderServiceServer) UpdateOrderFeed

type UnsafeOrderServiceServer

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

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

type UpdateOrderFeedRequest

type UpdateOrderFeedRequest struct {
	OrderId       string      `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	ClientOrderId string      `protobuf:"bytes,2,opt,name=client_order_id,json=clientOrderId,proto3" json:"client_order_id,omitempty"`
	CumQty        string      `protobuf:"bytes,3,opt,name=cum_qty,json=cumQty,proto3" json:"cum_qty,omitempty"`
	LeavesQty     string      `protobuf:"bytes,4,opt,name=leaves_qty,json=leavesQty,proto3" json:"leaves_qty,omitempty"`
	AvgPx         string      `protobuf:"bytes,5,opt,name=avg_px,json=avgPx,proto3" json:"avg_px,omitempty"`
	Fees          string      `protobuf:"bytes,6,opt,name=fees,proto3" json:"fees,omitempty"`
	Status        OrderStatus `protobuf:"varint,7,opt,name=status,proto3,enum=pkg.pbs.order.v1.OrderStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOrderFeedRequest) Descriptor deprecated

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

Deprecated: Use UpdateOrderFeedRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrderFeedRequest) GetAvgPx

func (x *UpdateOrderFeedRequest) GetAvgPx() string

func (*UpdateOrderFeedRequest) GetClientOrderId

func (x *UpdateOrderFeedRequest) GetClientOrderId() string

func (*UpdateOrderFeedRequest) GetCumQty

func (x *UpdateOrderFeedRequest) GetCumQty() string

func (*UpdateOrderFeedRequest) GetFees

func (x *UpdateOrderFeedRequest) GetFees() string

func (*UpdateOrderFeedRequest) GetLeavesQty

func (x *UpdateOrderFeedRequest) GetLeavesQty() string

func (*UpdateOrderFeedRequest) GetOrderId

func (x *UpdateOrderFeedRequest) GetOrderId() string

func (*UpdateOrderFeedRequest) GetStatus

func (x *UpdateOrderFeedRequest) GetStatus() OrderStatus

func (*UpdateOrderFeedRequest) ProtoMessage

func (*UpdateOrderFeedRequest) ProtoMessage()

func (*UpdateOrderFeedRequest) ProtoReflect

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

func (*UpdateOrderFeedRequest) Reset

func (x *UpdateOrderFeedRequest) Reset()

func (*UpdateOrderFeedRequest) String

func (x *UpdateOrderFeedRequest) String() string

func (*UpdateOrderFeedRequest) Validate

func (m *UpdateOrderFeedRequest) Validate() error

Validate checks the field values on UpdateOrderFeedRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateOrderFeedRequest) ValidateAll

func (m *UpdateOrderFeedRequest) ValidateAll() error

ValidateAll checks the field values on UpdateOrderFeedRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateOrderFeedRequestMultiError, or nil if none found.

type UpdateOrderFeedRequestMultiError

type UpdateOrderFeedRequestMultiError []error

UpdateOrderFeedRequestMultiError is an error wrapping multiple validation errors returned by UpdateOrderFeedRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateOrderFeedRequestMultiError) AllErrors

func (m UpdateOrderFeedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateOrderFeedRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateOrderFeedRequestValidationError

type UpdateOrderFeedRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateOrderFeedRequestValidationError is the validation error returned by UpdateOrderFeedRequest.Validate if the designated constraints aren't met.

func (UpdateOrderFeedRequestValidationError) Cause

Cause function returns cause value.

func (UpdateOrderFeedRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrderFeedRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrderFeedRequestValidationError) Field

Field function returns field value.

func (UpdateOrderFeedRequestValidationError) Key

Key function returns key value.

func (UpdateOrderFeedRequestValidationError) Reason

Reason function returns reason value.

type UpdateOrderFeedResponse

type UpdateOrderFeedResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateOrderFeedResponse) Descriptor deprecated

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

Deprecated: Use UpdateOrderFeedResponse.ProtoReflect.Descriptor instead.

func (*UpdateOrderFeedResponse) ProtoMessage

func (*UpdateOrderFeedResponse) ProtoMessage()

func (*UpdateOrderFeedResponse) ProtoReflect

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

func (*UpdateOrderFeedResponse) Reset

func (x *UpdateOrderFeedResponse) Reset()

func (*UpdateOrderFeedResponse) String

func (x *UpdateOrderFeedResponse) String() string

func (*UpdateOrderFeedResponse) Validate

func (m *UpdateOrderFeedResponse) Validate() error

Validate checks the field values on UpdateOrderFeedResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateOrderFeedResponse) ValidateAll

func (m *UpdateOrderFeedResponse) ValidateAll() error

ValidateAll checks the field values on UpdateOrderFeedResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateOrderFeedResponseMultiError, or nil if none found.

type UpdateOrderFeedResponseMultiError

type UpdateOrderFeedResponseMultiError []error

UpdateOrderFeedResponseMultiError is an error wrapping multiple validation errors returned by UpdateOrderFeedResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateOrderFeedResponseMultiError) AllErrors

func (m UpdateOrderFeedResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateOrderFeedResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateOrderFeedResponseValidationError

type UpdateOrderFeedResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateOrderFeedResponseValidationError is the validation error returned by UpdateOrderFeedResponse.Validate if the designated constraints aren't met.

func (UpdateOrderFeedResponseValidationError) Cause

Cause function returns cause value.

func (UpdateOrderFeedResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrderFeedResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrderFeedResponseValidationError) Field

Field function returns field value.

func (UpdateOrderFeedResponseValidationError) Key

Key function returns key value.

func (UpdateOrderFeedResponseValidationError) Reason

Reason function returns reason value.

type UpdateOrderRequest

type UpdateOrderRequest struct {
	OrderId            string      `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Status             OrderStatus `protobuf:"varint,2,opt,name=status,proto3,enum=pkg.pbs.order.v1.OrderStatus" json:"status,omitempty"`
	FilledQuantity     string      `protobuf:"bytes,3,opt,name=filled_quantity,json=filledQuantity,proto3" json:"filled_quantity,omitempty"`
	FilledValue        string      `protobuf:"bytes,4,opt,name=filled_value,json=filledValue,proto3" json:"filled_value,omitempty"`
	AverageFilledPrice string      `protobuf:"bytes,5,opt,name=average_filled_price,json=averageFilledPrice,proto3" json:"average_filled_price,omitempty"`
	Commission         string      `protobuf:"bytes,6,opt,name=commission,proto3" json:"commission,omitempty"`
	ExchangeFee        string      `protobuf:"bytes,7,opt,name=exchange_fee,json=exchangeFee,proto3" json:"exchange_fee,omitempty"`
	CancelReason       string      `protobuf:"bytes,8,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
	FailureReason      string      `protobuf:"bytes,9,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOrderRequest) Descriptor deprecated

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

Deprecated: Use UpdateOrderRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrderRequest) GetAverageFilledPrice

func (x *UpdateOrderRequest) GetAverageFilledPrice() string

func (*UpdateOrderRequest) GetCancelReason

func (x *UpdateOrderRequest) GetCancelReason() string

func (*UpdateOrderRequest) GetCommission

func (x *UpdateOrderRequest) GetCommission() string

func (*UpdateOrderRequest) GetExchangeFee

func (x *UpdateOrderRequest) GetExchangeFee() string

func (*UpdateOrderRequest) GetFailureReason

func (x *UpdateOrderRequest) GetFailureReason() string

func (*UpdateOrderRequest) GetFilledQuantity

func (x *UpdateOrderRequest) GetFilledQuantity() string

func (*UpdateOrderRequest) GetFilledValue

func (x *UpdateOrderRequest) GetFilledValue() string

func (*UpdateOrderRequest) GetOrderId

func (x *UpdateOrderRequest) GetOrderId() string

func (*UpdateOrderRequest) GetStatus

func (x *UpdateOrderRequest) GetStatus() OrderStatus

func (*UpdateOrderRequest) ProtoMessage

func (*UpdateOrderRequest) ProtoMessage()

func (*UpdateOrderRequest) ProtoReflect

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

func (*UpdateOrderRequest) Reset

func (x *UpdateOrderRequest) Reset()

func (*UpdateOrderRequest) String

func (x *UpdateOrderRequest) String() string

func (*UpdateOrderRequest) Validate

func (m *UpdateOrderRequest) Validate() error

Validate checks the field values on UpdateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateOrderRequest) ValidateAll

func (m *UpdateOrderRequest) ValidateAll() error

ValidateAll checks the field values on UpdateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateOrderRequestMultiError, or nil if none found.

type UpdateOrderRequestMultiError

type UpdateOrderRequestMultiError []error

UpdateOrderRequestMultiError is an error wrapping multiple validation errors returned by UpdateOrderRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateOrderRequestMultiError) AllErrors

func (m UpdateOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateOrderRequestValidationError

type UpdateOrderRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateOrderRequestValidationError is the validation error returned by UpdateOrderRequest.Validate if the designated constraints aren't met.

func (UpdateOrderRequestValidationError) Cause

Cause function returns cause value.

func (UpdateOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrderRequestValidationError) Field

Field function returns field value.

func (UpdateOrderRequestValidationError) Key

Key function returns key value.

func (UpdateOrderRequestValidationError) Reason

Reason function returns reason value.

type UpdateOrderResponse

type UpdateOrderResponse struct {
	OrderId            string                 `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	OwnerId            string                 `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	ProductId          string                 `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	Side               OrderSide              `protobuf:"varint,4,opt,name=side,proto3,enum=pkg.pbs.order.v1.OrderSide" json:"side,omitempty"`
	Type               OrderType              `protobuf:"varint,5,opt,name=type,proto3,enum=pkg.pbs.order.v1.OrderType" json:"type,omitempty"`
	Quantity           string                 `protobuf:"bytes,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	LimitPrice         string                 `protobuf:"bytes,7,opt,name=limit_price,json=limitPrice,proto3" json:"limit_price,omitempty"`
	TimeInForce        OrderTimeInForce       `` /* 136-byte string literal not displayed */
	Status             OrderStatus            `protobuf:"varint,9,opt,name=status,proto3,enum=pkg.pbs.order.v1.OrderStatus" json:"status,omitempty"`
	CreatedAt          *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt          *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	FilledQuantity     string                 `protobuf:"bytes,12,opt,name=filled_quantity,json=filledQuantity,proto3" json:"filled_quantity,omitempty"`
	FilledValue        string                 `protobuf:"bytes,13,opt,name=filled_value,json=filledValue,proto3" json:"filled_value,omitempty"`
	AverageFilledPrice string                 `protobuf:"bytes,14,opt,name=average_filled_price,json=averageFilledPrice,proto3" json:"average_filled_price,omitempty"`
	Commission         string                 `protobuf:"bytes,15,opt,name=commission,proto3" json:"commission,omitempty"`
	ExchangeFee        string                 `protobuf:"bytes,16,opt,name=exchange_fee,json=exchangeFee,proto3" json:"exchange_fee,omitempty"`
	CancelReason       string                 `protobuf:"bytes,17,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
	FailureReason      string                 `protobuf:"bytes,18,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOrderResponse) Descriptor deprecated

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

Deprecated: Use UpdateOrderResponse.ProtoReflect.Descriptor instead.

func (*UpdateOrderResponse) GetAverageFilledPrice

func (x *UpdateOrderResponse) GetAverageFilledPrice() string

func (*UpdateOrderResponse) GetCancelReason

func (x *UpdateOrderResponse) GetCancelReason() string

func (*UpdateOrderResponse) GetCommission

func (x *UpdateOrderResponse) GetCommission() string

func (*UpdateOrderResponse) GetCreatedAt

func (x *UpdateOrderResponse) GetCreatedAt() *timestamppb.Timestamp

func (*UpdateOrderResponse) GetExchangeFee

func (x *UpdateOrderResponse) GetExchangeFee() string

func (*UpdateOrderResponse) GetFailureReason

func (x *UpdateOrderResponse) GetFailureReason() string

func (*UpdateOrderResponse) GetFilledQuantity

func (x *UpdateOrderResponse) GetFilledQuantity() string

func (*UpdateOrderResponse) GetFilledValue

func (x *UpdateOrderResponse) GetFilledValue() string

func (*UpdateOrderResponse) GetLimitPrice

func (x *UpdateOrderResponse) GetLimitPrice() string

func (*UpdateOrderResponse) GetOrderId

func (x *UpdateOrderResponse) GetOrderId() string

func (*UpdateOrderResponse) GetOwnerId

func (x *UpdateOrderResponse) GetOwnerId() string

func (*UpdateOrderResponse) GetProductId

func (x *UpdateOrderResponse) GetProductId() string

func (*UpdateOrderResponse) GetQuantity

func (x *UpdateOrderResponse) GetQuantity() string

func (*UpdateOrderResponse) GetSide

func (x *UpdateOrderResponse) GetSide() OrderSide

func (*UpdateOrderResponse) GetStatus

func (x *UpdateOrderResponse) GetStatus() OrderStatus

func (*UpdateOrderResponse) GetTimeInForce

func (x *UpdateOrderResponse) GetTimeInForce() OrderTimeInForce

func (*UpdateOrderResponse) GetType

func (x *UpdateOrderResponse) GetType() OrderType

func (*UpdateOrderResponse) GetUpdatedAt

func (x *UpdateOrderResponse) GetUpdatedAt() *timestamppb.Timestamp

func (*UpdateOrderResponse) ProtoMessage

func (*UpdateOrderResponse) ProtoMessage()

func (*UpdateOrderResponse) ProtoReflect

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

func (*UpdateOrderResponse) Reset

func (x *UpdateOrderResponse) Reset()

func (*UpdateOrderResponse) String

func (x *UpdateOrderResponse) String() string

func (*UpdateOrderResponse) Validate

func (m *UpdateOrderResponse) Validate() error

Validate checks the field values on UpdateOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateOrderResponse) ValidateAll

func (m *UpdateOrderResponse) ValidateAll() error

ValidateAll checks the field values on UpdateOrderResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateOrderResponseMultiError, or nil if none found.

type UpdateOrderResponseMultiError

type UpdateOrderResponseMultiError []error

UpdateOrderResponseMultiError is an error wrapping multiple validation errors returned by UpdateOrderResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateOrderResponseMultiError) AllErrors

func (m UpdateOrderResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateOrderResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateOrderResponseValidationError

type UpdateOrderResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateOrderResponseValidationError is the validation error returned by UpdateOrderResponse.Validate if the designated constraints aren't met.

func (UpdateOrderResponseValidationError) Cause

Cause function returns cause value.

func (UpdateOrderResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrderResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrderResponseValidationError) Field

Field function returns field value.

func (UpdateOrderResponseValidationError) Key

Key function returns key value.

func (UpdateOrderResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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