ticker

package
v0.0.0-...-8fb26ab Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticker

type Ticker[T instr.Instrument] struct {
	Instrument     T             `json:"instrument"`
	Source         source.Source `json:"exchange"`
	Bid            float64       `json:"bid"`
	Offer          float64       `json:"offer"`
	Mid            float64       `json:"mid"`
	Last           float64       `json:"last"`
	SequenceNumber int64         `json:"sequenceNumber"`
	TransactTime   time.Time     `json:"transactTime"`
}

func EmptyTicker

func EmptyTicker[T instr.Instrument]() Ticker[T]

Jump to

Keyboard shortcuts

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