Documentation
¶
Index ¶
Constants ¶
View Source
const AssetBits int = 24
View Source
const MarketBits int = 2 * AssetBits
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts a byte slice to a string without allocation
Types ¶
type ExchangeMarketID ¶
type ExchangeMarketID uint64
func ExchangeMarket ¶
func ExchangeMarket(exchange uint16, id uint32) ExchangeMarketID
func ExchangeMarketByAssets ¶
func ExchangeMarketByAssets(exchange uint16, sell, buy AssetID) ExchangeMarketID
func (ExchangeMarketID) Buy ¶
func (m ExchangeMarketID) Buy() AssetID
func (ExchangeMarketID) Exchange ¶
func (m ExchangeMarketID) Exchange() ExchangeID
func (ExchangeMarketID) ID ¶
func (m ExchangeMarketID) ID() uint64
func (ExchangeMarketID) Market ¶
func (m ExchangeMarketID) Market() MarketID
func (ExchangeMarketID) Revert ¶
func (m ExchangeMarketID) Revert() ExchangeMarketID
func (ExchangeMarketID) Sell ¶
func (m ExchangeMarketID) Sell() AssetID
type IMarketAdapter ¶
type StringToFloat ¶
type StringToFloat float64
func (StringToFloat) Float ¶
func (foe StringToFloat) Float() float64
func (*StringToFloat) UnmarshalJSON ¶
func (foe *StringToFloat) UnmarshalJSON(data []byte) error
type StringToTimeStampMs ¶
func (StringToTimeStampMs) String ¶
func (t StringToTimeStampMs) String() string
func (StringToTimeStampMs) Time ¶
func (t StringToTimeStampMs) Time() time.Time
func (StringToTimeStampMs) UnixMilli ¶
func (t StringToTimeStampMs) UnixMilli() int64
func (*StringToTimeStampMs) UnmarshalJSON ¶
func (uoe *StringToTimeStampMs) UnmarshalJSON(data []byte) error
type StringToUint64 ¶
type StringToUint64 uint64
func (*StringToUint64) String ¶
func (uoe *StringToUint64) String() string
func (*StringToUint64) UnmarshalJSON ¶
func (uoe *StringToUint64) UnmarshalJSON(data []byte) error
type TimestampToTime ¶
func (*TimestampToTime) MarshalJSON ¶
func (tf *TimestampToTime) MarshalJSON() ([]byte, error)
func (TimestampToTime) String ¶
func (tf TimestampToTime) String() string
func (*TimestampToTime) UnmarshalJSON ¶
func (tf *TimestampToTime) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.