executor

package
v0.0.0-...-3606b63 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExecSymbol

func GetExecSymbol(order *pt.SellOrder) (string, string)

GetExecSymbol : return exec, symbol

func GetName

func GetName() string

GetName : 获取trade合约名字

func Init

func Init(name string, sub []byte)

Init : 注册当前trade合约

func NewOrderTable

func NewOrderTable(kvdb dbm.KV) *table.Table

NewOrderTable create order table

Types

type OrderRow

type OrderRow struct {
	*pty.LocalOrder
}

OrderRow order row

func NewOrderRow

func NewOrderRow() *OrderRow

NewOrderRow create row

func (*OrderRow) CreateRow

func (r *OrderRow) CreateRow() *table.Row

CreateRow create row

func (*OrderRow) Get

func (r *OrderRow) Get(key string) ([]byte, error)

Get get index key

func (*OrderRow) SetPayload

func (r *OrderRow) SetPayload(data types.Message) error

SetPayload set payload

Jump to

Keyboard shortcuts

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