exchangeinfo

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeInfo

type ExchangeInfo struct {
	Timezone        string                `json:"timezone"`
	ServerTime      int64                 `json:"serverTime"`
	RateLimits      []RateLimit           `json:"rateLimits"`
	ExchangeFilters []interface{}         `json:"exchangeFilters"`
	Symbols         *symbols_info.Symbols `json:"symbols"`
}

func New

func New(init func(*ExchangeInfo) types.InitFunction) *ExchangeInfo

func (*ExchangeInfo) GetExchangeFilters

func (e *ExchangeInfo) GetExchangeFilters() []interface{}

GetExchangeFilters implements info.ExchangeInfo.

func (*ExchangeInfo) GetRateLimits

func (e *ExchangeInfo) GetRateLimits() *[]RateLimit

func (*ExchangeInfo) GetServerTime

func (e *ExchangeInfo) GetServerTime() int64

GetServerTime implements info.ExchangeInfo.

func (*ExchangeInfo) GetSymbol

func (exchangeInfo *ExchangeInfo) GetSymbol(symbol string) *symbol_info.Symbol

func (*ExchangeInfo) GetSymbols

func (exchangeInfo *ExchangeInfo) GetSymbols() *symbols_info.Symbols

func (*ExchangeInfo) GetTimezone

func (e *ExchangeInfo) GetTimezone() string

GetTimezone implements info.ExchangeInfo.

func (*ExchangeInfo) Get_Day_Order_Limit

func (e *ExchangeInfo) Get_Day_Order_Limit() *RateLimits

func (*ExchangeInfo) Get_Minute_Order_Limit

func (e *ExchangeInfo) Get_Minute_Order_Limit() *RateLimits

func (*ExchangeInfo) Get_Minute_Raw_Request_Limit

func (e *ExchangeInfo) Get_Minute_Raw_Request_Limit() *RateLimits

func (*ExchangeInfo) Get_Minute_Request_Limit

func (e *ExchangeInfo) Get_Minute_Request_Limit() *RateLimits

type RateLimit

type RateLimit struct {
	RateLimitType string `json:"rateLimitType"`
	Interval      string `json:"interval"`
	IntervalNum   int64  `json:"intervalNum"`
	Limit         int64  `json:"limit"`
}

type RateLimits

type RateLimits struct {
	Interval    time.Duration
	IntervalNum int64
	Limit       int64
}

Jump to

Keyboard shortcuts

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