Versions in this module Expand all Collapse all v2 v2.0.0 Jul 9, 2023 Changes in this version + func DefaultMarshal(v interface{}) ([]byte, error) + func DefaultUnmarshal(data []byte, v interface{}) error + func NewFinanceInfo(market proto.MarketType, code string) (*FinanceInfoRequest, *FinanceInfoResponse, error) + func NewGetSecurityList(market proto.MarketType, start int) (*GetSecurityListRequest, *GetSecurityListResponse, error) + func NewSecurityCount(market proto.MarketType) (*SecurityCountRequest, *SecurityCountResponse, error) + func NewSetupCmd1() (*SetupCmd1Request, *SetupCmd1Response, error) + func NewSetupCmd2() (*SetupCmd2Request, *SetupCmd2Response, error) + func NewSetupCmd3() (*SetupCmd3Request, *SetupCmd3Response, error) + type Factory func() (Marshaler, Unmarshaler, error) + type FinanceInfo struct + BGu float64 + BaoLiu2 float64 + ChangQiFuZhai float64 + CunHuo float64 + FaQiRenFaRenGu float64 + FaRenGu float64 + GuDingZiChan float64 + GuDongRenShu float64 + GuoJiaGu float64 + HGu float64 + IPODate uint32 + Industry uint16 + JingLiRun float64 + JingYingxianJinLiu float64 + JingZiChan float64 + LiRunZongHe float64 + LiuDongFuZhai float64 + LiuDongZiChan float64 + LiuTongGuBen float64 + MeiGuJingZiChan float64 + Province uint16 + ShuiHouLiRun float64 + TouZiShouYu float64 + UpdatedDate uint32 + WeiFenLiRun float64 + WuXingZiChan float64 + YingShouZhangKuan float64 + YingyeLiRun float64 + ZhiGongGu float64 + ZhuYingLiRun float64 + ZhuYingShouRu float64 + ZiBenGongJiJin float64 + ZongGuBen float64 + ZongXianJinLiu float64 + ZongZiChan float64 + type FinanceInfoRequest struct + Code string + Market proto.MarketType + Unknown1 []byte + func NewFinanceInfoRequest(market proto.MarketType, code string) (*FinanceInfoRequest, error) + func (req *FinanceInfoRequest) Marshal() ([]byte, error) + type FinanceInfoResponse struct + func (resp *FinanceInfoResponse) Unmarshal(data []byte) error + type FinanceInfoResponseRaw struct + BGu float32 + BaoLiu1 float32 + BaoLiu2 float32 + ChangQiFuZhai float32 + Code string + CunHuo float32 + FaQiRenFaRenGu float32 + FaRenGu float32 + GuDingZiChan float32 + GuDongRenShu float32 + GuoJiaGu float32 + HGu float32 + IPODate uint32 + Industry uint16 + JingLiRun float32 + JingYingxianJinLiu float32 + JingZiChan float32 + LiRunZongHe float32 + LiuDongFuZhai float32 + LiuDongZiChan float32 + LiuTongGuBen float32 + Market int + Province uint16 + ShuiHouLiRun float32 + TouZiShouYu float32 + Unknown1 []byte + UpdatedDate uint32 + WeiFenLiRun float32 + WuXingZiChan float32 + Yingshouzhangkuan float32 + YingyeLiRun float32 + ZhiGongGu float32 + ZhuYingLiRun float32 + ZhuYingShouRu float32 + ZiBenGongJiJin float32 + ZongGuBen float32 + ZongXianJinLiu float32 + ZongZiChan float32 + func (resp *FinanceInfoResponseRaw) Unmarshal(data []byte) error + type GetSecurityListRequest struct + Market proto.MarketType + Start int + Unknown1 []byte + func NewGetSecurityListRequest(market proto.MarketType, start int) (*GetSecurityListRequest, error) + func (req *GetSecurityListRequest) Marshal() ([]byte, error) + type GetSecurityListResponse struct + Count int + Stocks []Stock + func (resp *GetSecurityListResponse) Unmarshal(data []byte) error + type Marshaler interface + Marshal func() ([]byte, error) + type PacketHeader struct + Unknown1 uint + Unknown2 uint + Unknown3 uint + UnzipSize int + ZipSize int + func (h *PacketHeader) Bytes() []byte + func (h *PacketHeader) Compressed() bool + func (h *PacketHeader) Size() int + func (h *PacketHeader) Unmarshal(data []byte) error + type SecurityCountRequest struct + Market proto.MarketType + Unknown1 []byte + Unknown2 []byte + func NewSecurityCountRequest(market proto.MarketType) (*SecurityCountRequest, error) + func (req *SecurityCountRequest) Marshal() ([]byte, error) + type SecurityCountResponse struct + Count uint + func (resp *SecurityCountResponse) Unmarshal(data []byte) error + type SetupCmd1Request struct + Cmd []byte + func NewSetupCmd1Request() (*SetupCmd1Request, error) + func (req *SetupCmd1Request) Marshal() ([]byte, error) + type SetupCmd1Response struct + Reply string + Unknown []byte + func (resp *SetupCmd1Response) Unmarshal(data []byte) error + type SetupCmd2Request struct + Cmd []byte + func NewSetupCmd2Request() (*SetupCmd2Request, error) + func (req *SetupCmd2Request) Marshal() ([]byte, error) + type SetupCmd2Response struct + Unknown []byte + func (resp *SetupCmd2Response) Unmarshal(data []byte) error + type SetupCmd3Request struct + Cmd []byte + func NewSetupCmd3Request() (*SetupCmd3Request, error) + func (req *SetupCmd3Request) Marshal() ([]byte, error) + type SetupCmd3Response struct + Unknown []byte + func (resp *SetupCmd3Response) Unmarshal(data []byte) error + type Stock struct + Code string + DecimalPoint int + Name string + PreClose float64 + VolUnit int + type Unmarshaler interface + Unmarshal func([]byte) error Other modules containing this package gitee.com/quant1x/tdx