model

package
v0.0.0-...-2e430cb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetExternalIdentifier

type AssetExternalIdentifier int64

type AssetPairIdentifier

type AssetPairIdentifier string
type AssetPairWithLinks struct {
	AssetPair  model.AssetCurrencyPair
	SourceLink string
	PairLink   string
}

type AssetSourceIdentifier

type AssetSourceIdentifier int64

type AssetUniversalIdentifier

type AssetUniversalIdentifier int64

type Spread

type Spread struct {
	Identifier      SpreadIdentifier
	Head            SpreadElement
	MetaInformation SpreadMetaInformation
}

type SpreadElement

type SpreadElement struct {
	AssetPair model.AssetCurrencyPair

	NextElement *SpreadElement
}
type SpreadElementWithLink struct {
	AssetPair AssetPairWithLinks

	NextElement *SpreadElementWithLink
}

type SpreadIdentifier

type SpreadIdentifier string

type SpreadLength

type SpreadLength int64

type SpreadMetaInformation

type SpreadMetaInformation struct {
	Length               SpreadLength
	ProfitabilityPercent SpreadProfitabilityPercent
	CreatedAt            time.Time
}

type SpreadProfitabilityPercent

type SpreadProfitabilityPercent struct {
	Precision int64
	Value     int64
}
type SpreadWithLink struct {
	Identifier      SpreadIdentifier
	Head            SpreadElementWithLink
	MetaInformation SpreadMetaInformation
}

type SpreadsFilter

type SpreadsFilter struct {
	ProfitabilityFilter *SpreadsProfitabilityFilter
	LengthFilter        *SpreadsLengthFilter
	FoundDateFilter     *SpreadsFoundDateFilter
}

type SpreadsFoundDateFilter

type SpreadsFoundDateFilter struct {
	StartDate time.Time
	EndDate   time.Time
}

type SpreadsLengthFilter

type SpreadsLengthFilter struct {
	MinLength int64
	MaxLength int64
}

type SpreadsProfitabilityFilter

type SpreadsProfitabilityFilter struct {
	MinProfitability SpreadProfitabilityPercent
	MaxProfitability SpreadProfitabilityPercent
}

Jump to

Keyboard shortcuts

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