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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertedDetails

type ConvertedDetails struct {
	Btc float64
	Eth float64
	Usd float64
}

type Currency

type Currency struct {
	Symbol string
	Name   *string
	Type   currencyrepo.Type
}

type Market

type Market struct {
	HasTradingIncentive bool
	Identifier          string
	Name                string
}

type OrderBook

type OrderBook struct {
	ExchangeId      string
	BaseCurrency    OrderCurrency
	CounterCurrency OrderCurrency
	Bids            []OrderBookEntry
	Asks            []OrderBookEntry
}

type OrderBookEntry

type OrderBookEntry struct {
	Time     time.Time
	Quantity Quantity
	Price    Quantity
}

type OrderCurrency

type OrderCurrency struct {
	Name         string
	Code         string
	MaxPrecision int32
	Digital      bool
}

type Quantity

type Quantity struct {
	Amount int64
	Scale  int32
}

type Ticker

type Ticker struct {
	Base                   string
	BaseCoinId             string
	Counter                string
	CounterCoinId          string
	BidAskSpreadPercentage float64
	ConvertedLast          ConvertedDetails
	ConvertedVolume        ConvertedDetails
	IsAnomaly              bool
	IsStale                bool
	Last                   float64
	LastFetchAt            time.Time
	LastTradedAt           time.Time
	Market                 Market
	Timestamp              time.Time
	TokenInfoUrl           *string
	TradeUrl               string
	TrustScore             string
	Volume                 float64
}

type TradingPair

type TradingPair struct {
	Symbol string

	Base                     string
	BasePriceMinPrecision    *int
	BasePriceMaxPrecision    *int
	BaseQuantityMinPrecision *int
	BaseQuantityMaxPrecision *int

	Counter                     string
	CounterPriceMinPrecision    *int
	CounterPriceMaxPrecision    *int
	CounterQuantityMinPrecision *int
	CounterQuantityMaxPrecision *int
}

type Venue

type Venue struct {
	Id                          int
	VenueId                     string
	Type                        venuerepo.Type
	Name                        string
	YearEstablished             int
	Country                     string
	Image                       string
	Links                       map[string]string
	HasTradingIncentive         bool
	Centralized                 bool
	PublicNotice                string
	AlertNotice                 string
	TrustScore                  int
	TrustScoreRank              int
	TradeVolume24hBtc           float64
	TradeVolume24hBtcNormalized float64
	Tickers                     []Ticker
	MakerFee                    *float64
	TakerFee                    *float64
	SpreadFee                   *bool
	SupportAPI                  *bool
}

Jump to

Keyboard shortcuts

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