Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeSimpleFinanacePackage ¶
func EncodeSimpleFinanacePackage(packet SimpleFinancePackage) ([]byte, error)
Types ¶
type SimpleFinancePackage ¶
type SimpleFinancePackage struct { Key [8]byte // 8 bytes for the key Operation byte // 1 byte for operation Asset uint16 // 2 bytes for asset Price float64 // 8 bytes for price (float64 for precision) Volume float64 // 8 bytes for volume Expire uint64 // 8 bytes for expiration date CRC uint16 // 2 bytes for CRC }
func ParseSimpleFinanacePackage ¶
func ParseSimpleFinanacePackage(data []byte) (*SimpleFinancePackage, error)
Click to show internal directories.
Click to hide internal directories.