constants

package
v0.0.0-...-3aeaace Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameChars           = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
	SessionNameLength   = 10
	QuoteReqIDLength    = 15
	QuoteID             = 15
	MdReqID             = 15
	TradeReportID       = 15
	SecurityReqID       = 15
	MassStatusReqID     = 15
	ClOrdID             = 15
	TradSesReqID        = 15
	SecurityStatusReqID = 15
	SecurityResponseID  = 15
	OracleID            = 15

	LogonRequestStatus = "logon-request"
	LoggedInStatus     = "loggedIn"
	RejectedStatus     = "rejected"

	// cache
	CacheTTL          = 5 * time.Second
	FetchEvery        = 5 * time.Second
	CosmosHubCacheKey = "cosmosHub"
	BitcoinCacheKey   = "bitcoin"
	EthereumCacheKey  = "ethereum"
)

Variables

View Source
var (
	SendingTime = time.Now().UTC().Format("20060102-15:04:05.000")
	CreatedAt   = time.Now().UTC().Format("20060102-15:04:05.000")
)
View Source
var (
	C = cache.New(CacheTTL, 10*time.Minute)
)

cache

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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