models

package
v0.0.0-...-fe50809 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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 MarketType

type MarketType string
const (
	MarketTypeFuture MarketType = "future"
	MarketTypeSpot   MarketType = "spot"
)

func (*MarketType) UnmarshalJSON

func (mt *MarketType) UnmarshalJSON(raw []byte) error

type MarketsMap

type MarketsMap map[string]ftxv1.Market

type OrderBookEntry

type OrderBookEntry struct {
	Symbol string
	Time   time.Time
	Bid    *PriceLevel
	Ask    *PriceLevel
}

type PriceLevel

type PriceLevel struct {
	Price    float64
	Quantity float64
}

Jump to

Keyboard shortcuts

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