gotrade: github.com/cyanly/gotrade/core/order Index | Files

package order

import "github.com/cyanly/gotrade/core/order"

Core order APIs

Index

Package Files

order.go

Variables

var (
    MessageBus *messagebus.Conn
)

type Order Uses

type Order struct {
    *proto.Order
}

Order struct extends protobuf Order /proto/order/order.proto

func (*Order) CanCancel Uses

func (m *Order) CanCancel() bool

Status that Order can be cancelled

func (*Order) CanReplace Uses

func (m *Order) CanReplace() bool

Status that Order can be replaced

func (*Order) IsCompleted Uses

func (m *Order) IsCompleted() bool

func (*Order) String Uses

func (m *Order) String() string

Pretty print order, usually for logging

func (*Order) Validate Uses

func (m *Order) Validate() error

Basic validation of Order, usually unmarshaled off message bus

Package order imports 4 packages (graph) and is imported by 2 packages. Updated 2016-07-20. Refresh now. Tools for package owners.