matching

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTengine

func NewTengine(symbol string, price_digit, qty_digit int) *trading_core.TradePair

func Run

func Run()

Types

type Order

type Order struct {
	OrderId   string                 `json:"order_id"`
	OrderType trading_core.OrderType `json:"order_type"`
	Side      trading_core.OrderSide `json:"side"`
	Price     string                 `json:"price,omitempty"`
	Qty       string                 `json:"qty,omitempty"`
	Amount    string                 `json:"amount,omitempty"`
	MaxQty    string                 `json:"max_qty,omitempty"`
	MaxAmount string                 `json:"max_amount,omitempty"`
	At        int64                  `json:"at"`
}

func (*Order) Json

func (o *Order) Json() []byte

type StructCancelOrder

type StructCancelOrder struct {
	Side    trading_core.OrderSide `json:"side"`
	OrderId string                 `json:"order_id"`
}

func (*StructCancelOrder) Json

func (o *StructCancelOrder) Json() []byte

type StructCancelOrderResult

type StructCancelOrderResult struct {
	OrderId string `json:"order_id"`
	Status  string `json:"status"`
}

func (*StructCancelOrderResult) Json

func (o *StructCancelOrderResult) Json() []byte

Jump to

Keyboard shortcuts

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