ob_format

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrWrongColumnNumber = "expected length: 4 or 5 columns"
)

Variables

This section is empty.

Functions

func ParseObRow

func ParseObRow(row []string) (data_formats.ObCsvConverter, error)

Types

type ObRow

type ObRow struct {
	Timestamp  time.Time
	UpdateType common.EventType
	Side       common.OrderSide
	Amount     float64
	Price      float64
}

func (*ObRow) ParseRow

func (c *ObRow) ParseRow(row []string) (err error)

func (*ObRow) ToEvent

func (c *ObRow) ToEvent() common.Event

func (*ObRow) ToOrder

func (c *ObRow) ToOrder() common.Order

Jump to

Keyboard shortcuts

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