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

Documentation

Index

Constants

View Source
const DefaultMaxSpreadLength = int64(100)
View Source
const DefaultMinSpreadLength = int64(2)

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	UniversalIdentifier AssetUniversalIdentifier
	ExternalIdentifier  AssetExternalIdentifier
	SourceIdentifier    AssetSourceIdentifier
}

type AssetCurrencyPair

type AssetCurrencyPair struct {
	Identifier AssetPairIdentifier

	BaseAsset   Asset
	QuotedAsset Asset

	CurrencyRatio AssetsCurrencyRatio
}

type AssetExternalIdentifier

type AssetExternalIdentifier int64

type AssetPairIdentifier

type AssetPairIdentifier string

type AssetSourceIdentifier

type AssetSourceIdentifier int64

type AssetUniversalIdentifier

type AssetUniversalIdentifier int64

type AssetsCurrencyRatio

type AssetsCurrencyRatio struct {
	Precision int64
	Value     int64
}

type Spread

type Spread struct {
	Identifier      SpreadIdentifier
	Head            SpreadElement
	MetaInformation SpreadMetaInformation
}

type SpreadElement

type SpreadElement struct {
	AssetPair AssetCurrencyPair

	NextElement *SpreadElement
}

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 SpreadSearchSettings

type SpreadSearchSettings struct {
	MaxSpreadLength *int64
	MinSpreadLength *int64

	MinSearchProfitabilityRatio *SpreadProfitabilityPercent
	MaxSearchProfitabilityRatio *SpreadProfitabilityPercent
}

Jump to

Keyboard shortcuts

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