clearing

package
v0.0.0-...-0a93553 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Notify chan te.TradeResult
)

Functions

func ClearingLockExist

func ClearingLockExist(order_id string) bool

判断一个订单是否还存在结算时候加的锁

func Init

func Init(db *xorm.Engine, r *redis.Client)

func NewClearing

func NewClearing(data te.TradeResult) (err error)

结算一条成交记录

func Run

func Run()

Types

type ClearingLock

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

func NewClearingLock

func NewClearingLock(ask, bid string) ClearingLock

func (*ClearingLock) Lock

func (l *ClearingLock) Lock() error

func (*ClearingLock) UnLock

func (l *ClearingLock) UnLock() error

Jump to

Keyboard shortcuts

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