tradelog

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monitor

func Monitor(symbol string, price_digit, qty_digit int64)

Types

type TradeLog

type TradeLog struct {
	Id            int64      `xorm:"autoincr pk" json:"-"`
	Symbol        string     `xorm:"-" json:"-"`
	TradeAt       int64      `xorm:"notnull" json:"trade_at"`
	TradePrice    string     `xorm:"decimal(30, 10) notnull" json:"price"`
	TradeQuantity string     `xorm:"decimal(30, 10) notnull" json:"qty"`
	TradeAmount   string     `xorm:"decimal(30, 10) notnull" json:"amount"`
	Ask           string     `xorm:"varchar(128) notnull unique(askbid)" json:"-"`
	Bid           string     `xorm:"varchar(128) notnull unique(askbid)" json:"-"`
	CreateTime    utils.Time `xorm:"timestamp created" json:"-"`
	UpdateTime    utils.Time `xorm:"timestamp updated" json:"-"`
}

func (*TradeLog) Save

func (t *TradeLog) Save() error

func (*TradeLog) TableName

func (t *TradeLog) TableName() string

Jump to

Keyboard shortcuts

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