qotgetsecuritysnapshot

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_Response_RetType = int32(-400)
)

Default values for Response fields.

Variables

View Source
var File_Qot_GetSecuritySnapshot_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type C2S

type C2S struct {
	SecurityList []*qotcommon.Security `protobuf:"bytes,1,rep,name=securityList" json:"securityList,omitempty"` //股票
	// contains filtered or unexported fields
}

func (*C2S) Descriptor deprecated

func (*C2S) Descriptor() ([]byte, []int)

Deprecated: Use C2S.ProtoReflect.Descriptor instead.

func (*C2S) GetSecurityList

func (x *C2S) GetSecurityList() []*qotcommon.Security

func (*C2S) ProtoMessage

func (*C2S) ProtoMessage()

func (*C2S) ProtoReflect

func (x *C2S) ProtoReflect() protoreflect.Message

func (*C2S) Reset

func (x *C2S) Reset()

func (*C2S) String

func (x *C2S) String() string

type EquitySnapshotExData

type EquitySnapshotExData struct {
	IssuedShares         *int64   `protobuf:"varint,1,req,name=issuedShares" json:"issuedShares,omitempty"`                  // 发行股本,即总股本
	IssuedMarketVal      *float64 `protobuf:"fixed64,2,req,name=issuedMarketVal" json:"issuedMarketVal,omitempty"`           // 总市值 =总股本*当前价格(单位:元)
	NetAsset             *float64 `protobuf:"fixed64,3,req,name=netAsset" json:"netAsset,omitempty"`                         // 资产净值
	NetProfit            *float64 `protobuf:"fixed64,4,req,name=netProfit" json:"netProfit,omitempty"`                       // 盈利(亏损)
	EarningsPershare     *float64 `protobuf:"fixed64,5,req,name=earningsPershare" json:"earningsPershare,omitempty"`         // 每股盈利
	OutstandingShares    *int64   `protobuf:"varint,6,req,name=outstandingShares" json:"outstandingShares,omitempty"`        // 流通股本
	OutstandingMarketVal *float64 `protobuf:"fixed64,7,req,name=outstandingMarketVal" json:"outstandingMarketVal,omitempty"` // 流通市值 =流通股本*当前价格(单位:元)
	NetAssetPershare     *float64 `protobuf:"fixed64,8,req,name=netAssetPershare" json:"netAssetPershare,omitempty"`         // 每股净资产
	EyRate               *float64 `protobuf:"fixed64,9,req,name=eyRate" json:"eyRate,omitempty"`                             // 收益率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	PeRate               *float64 `protobuf:"fixed64,10,req,name=peRate" json:"peRate,omitempty"`                            // 市盈率
	PbRate               *float64 `protobuf:"fixed64,11,req,name=pbRate" json:"pbRate,omitempty"`                            // 市净率
	PeTTMRate            *float64 `protobuf:"fixed64,12,req,name=peTTMRate" json:"peTTMRate,omitempty"`                      // 市盈率TTM
	DividendTTM          *float64 `protobuf:"fixed64,13,opt,name=dividendTTM" json:"dividendTTM,omitempty"`                  // 股息TTM,派息
	DividendRatioTTM     *float64 `protobuf:"fixed64,14,opt,name=dividendRatioTTM" json:"dividendRatioTTM,omitempty"`        // 股息率TTM(该字段为百分比字段,默认不展示%,如20实际对应20%)
	DividendLFY          *float64 `protobuf:"fixed64,15,opt,name=dividendLFY" json:"dividendLFY,omitempty"`                  // 股息LFY,上一年度派息
	DividendLFYRatio     *float64 `protobuf:"fixed64,16,opt,name=dividendLFYRatio" json:"dividendLFYRatio,omitempty"`        // 股息率LFY(该字段为百分比字段,默认不展示%,如20实际对应20%)
	// contains filtered or unexported fields
}

正股类型额外数据

func (*EquitySnapshotExData) Descriptor deprecated

func (*EquitySnapshotExData) Descriptor() ([]byte, []int)

Deprecated: Use EquitySnapshotExData.ProtoReflect.Descriptor instead.

func (*EquitySnapshotExData) GetDividendLFY

func (x *EquitySnapshotExData) GetDividendLFY() float64

func (*EquitySnapshotExData) GetDividendLFYRatio

func (x *EquitySnapshotExData) GetDividendLFYRatio() float64

func (*EquitySnapshotExData) GetDividendRatioTTM

func (x *EquitySnapshotExData) GetDividendRatioTTM() float64

func (*EquitySnapshotExData) GetDividendTTM

func (x *EquitySnapshotExData) GetDividendTTM() float64

func (*EquitySnapshotExData) GetEarningsPershare

func (x *EquitySnapshotExData) GetEarningsPershare() float64

func (*EquitySnapshotExData) GetEyRate

func (x *EquitySnapshotExData) GetEyRate() float64

func (*EquitySnapshotExData) GetIssuedMarketVal

func (x *EquitySnapshotExData) GetIssuedMarketVal() float64

func (*EquitySnapshotExData) GetIssuedShares

func (x *EquitySnapshotExData) GetIssuedShares() int64

func (*EquitySnapshotExData) GetNetAsset

func (x *EquitySnapshotExData) GetNetAsset() float64

func (*EquitySnapshotExData) GetNetAssetPershare

func (x *EquitySnapshotExData) GetNetAssetPershare() float64

func (*EquitySnapshotExData) GetNetProfit

func (x *EquitySnapshotExData) GetNetProfit() float64

func (*EquitySnapshotExData) GetOutstandingMarketVal

func (x *EquitySnapshotExData) GetOutstandingMarketVal() float64

func (*EquitySnapshotExData) GetOutstandingShares

func (x *EquitySnapshotExData) GetOutstandingShares() int64

func (*EquitySnapshotExData) GetPbRate

func (x *EquitySnapshotExData) GetPbRate() float64

func (*EquitySnapshotExData) GetPeRate

func (x *EquitySnapshotExData) GetPeRate() float64

func (*EquitySnapshotExData) GetPeTTMRate

func (x *EquitySnapshotExData) GetPeTTMRate() float64

func (*EquitySnapshotExData) ProtoMessage

func (*EquitySnapshotExData) ProtoMessage()

func (*EquitySnapshotExData) ProtoReflect

func (x *EquitySnapshotExData) ProtoReflect() protoreflect.Message

func (*EquitySnapshotExData) Reset

func (x *EquitySnapshotExData) Reset()

func (*EquitySnapshotExData) String

func (x *EquitySnapshotExData) String() string

type FutureSnapshotExData

type FutureSnapshotExData struct {
	LastSettlePrice    *float64 `protobuf:"fixed64,1,req,name=lastSettlePrice" json:"lastSettlePrice,omitempty"`       //昨结
	Position           *int32   `protobuf:"varint,2,req,name=position" json:"position,omitempty"`                      //持仓量
	PositionChange     *int32   `protobuf:"varint,3,req,name=positionChange" json:"positionChange,omitempty"`          //日增仓
	LastTradeTime      *string  `protobuf:"bytes,4,req,name=lastTradeTime" json:"lastTradeTime,omitempty"`             //最后交易日,只有非主连期货合约才有该字段
	LastTradeTimestamp *float64 `protobuf:"fixed64,5,opt,name=lastTradeTimestamp" json:"lastTradeTimestamp,omitempty"` //最后交易日时间戳,只有非主连期货合约才有该字段
	IsMainContract     *bool    `protobuf:"varint,6,req,name=isMainContract" json:"isMainContract,omitempty"`          //是否主连合约
	// contains filtered or unexported fields
}

期货类型额外数据

func (*FutureSnapshotExData) Descriptor deprecated

func (*FutureSnapshotExData) Descriptor() ([]byte, []int)

Deprecated: Use FutureSnapshotExData.ProtoReflect.Descriptor instead.

func (*FutureSnapshotExData) GetIsMainContract

func (x *FutureSnapshotExData) GetIsMainContract() bool

func (*FutureSnapshotExData) GetLastSettlePrice

func (x *FutureSnapshotExData) GetLastSettlePrice() float64

func (*FutureSnapshotExData) GetLastTradeTime

func (x *FutureSnapshotExData) GetLastTradeTime() string

func (*FutureSnapshotExData) GetLastTradeTimestamp

func (x *FutureSnapshotExData) GetLastTradeTimestamp() float64

func (*FutureSnapshotExData) GetPosition

func (x *FutureSnapshotExData) GetPosition() int32

func (*FutureSnapshotExData) GetPositionChange

func (x *FutureSnapshotExData) GetPositionChange() int32

func (*FutureSnapshotExData) ProtoMessage

func (*FutureSnapshotExData) ProtoMessage()

func (*FutureSnapshotExData) ProtoReflect

func (x *FutureSnapshotExData) ProtoReflect() protoreflect.Message

func (*FutureSnapshotExData) Reset

func (x *FutureSnapshotExData) Reset()

func (*FutureSnapshotExData) String

func (x *FutureSnapshotExData) String() string

type IndexSnapshotExData

type IndexSnapshotExData struct {
	RaiseCount *int32 `protobuf:"varint,1,req,name=raiseCount" json:"raiseCount,omitempty"` // 上涨支数
	FallCount  *int32 `protobuf:"varint,2,req,name=fallCount" json:"fallCount,omitempty"`   // 下跌支数
	EqualCount *int32 `protobuf:"varint,3,req,name=equalCount" json:"equalCount,omitempty"` // 平盘支数
	// contains filtered or unexported fields
}

指数类型额外数据

func (*IndexSnapshotExData) Descriptor deprecated

func (*IndexSnapshotExData) Descriptor() ([]byte, []int)

Deprecated: Use IndexSnapshotExData.ProtoReflect.Descriptor instead.

func (*IndexSnapshotExData) GetEqualCount

func (x *IndexSnapshotExData) GetEqualCount() int32

func (*IndexSnapshotExData) GetFallCount

func (x *IndexSnapshotExData) GetFallCount() int32

func (*IndexSnapshotExData) GetRaiseCount

func (x *IndexSnapshotExData) GetRaiseCount() int32

func (*IndexSnapshotExData) ProtoMessage

func (*IndexSnapshotExData) ProtoMessage()

func (*IndexSnapshotExData) ProtoReflect

func (x *IndexSnapshotExData) ProtoReflect() protoreflect.Message

func (*IndexSnapshotExData) Reset

func (x *IndexSnapshotExData) Reset()

func (*IndexSnapshotExData) String

func (x *IndexSnapshotExData) String() string

type OptionSnapshotExData

type OptionSnapshotExData struct {
	Type                 *int32              `protobuf:"varint,1,req,name=type" json:"type,omitempty"`                                   //Qot_Common.OptionType,期权
	Owner                *qotcommon.Security `protobuf:"bytes,2,req,name=owner" json:"owner,omitempty"`                                  //标的股
	StrikeTime           *string             `protobuf:"bytes,3,req,name=strikeTime" json:"strikeTime,omitempty"`                        //行权日
	StrikePrice          *float64            `protobuf:"fixed64,4,req,name=strikePrice" json:"strikePrice,omitempty"`                    //行权价
	ContractSize         *int32              `protobuf:"varint,5,req,name=contractSize" json:"contractSize,omitempty"`                   //每份合约数(整型数据)
	ContractSizeFloat    *float64            `protobuf:"fixed64,22,opt,name=contractSizeFloat" json:"contractSizeFloat,omitempty"`       //每份合约数(浮点型数据)
	OpenInterest         *int32              `protobuf:"varint,6,req,name=openInterest" json:"openInterest,omitempty"`                   //未平仓合约数
	ImpliedVolatility    *float64            `protobuf:"fixed64,7,req,name=impliedVolatility" json:"impliedVolatility,omitempty"`        //隐含波动率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	Premium              *float64            `protobuf:"fixed64,8,req,name=premium" json:"premium,omitempty"`                            //溢价(该字段为百分比字段,默认不展示%,如20实际对应20%)
	Delta                *float64            `protobuf:"fixed64,9,req,name=delta" json:"delta,omitempty"`                                //希腊值 Delta
	Gamma                *float64            `protobuf:"fixed64,10,req,name=gamma" json:"gamma,omitempty"`                               //希腊值 Gamma
	Vega                 *float64            `protobuf:"fixed64,11,req,name=vega" json:"vega,omitempty"`                                 //希腊值 Vega
	Theta                *float64            `protobuf:"fixed64,12,req,name=theta" json:"theta,omitempty"`                               //希腊值 Theta
	Rho                  *float64            `protobuf:"fixed64,13,req,name=rho" json:"rho,omitempty"`                                   //希腊值 Rho
	StrikeTimestamp      *float64            `protobuf:"fixed64,14,opt,name=strikeTimestamp" json:"strikeTimestamp,omitempty"`           //行权日时间戳
	IndexOptionType      *int32              `protobuf:"varint,15,opt,name=indexOptionType" json:"indexOptionType,omitempty"`            //Qot_Common.IndexOptionType,指数期权类型
	NetOpenInterest      *int32              `protobuf:"varint,16,opt,name=netOpenInterest" json:"netOpenInterest,omitempty"`            //净未平仓合约数,仅港股期权适用
	ExpiryDateDistance   *int32              `protobuf:"varint,17,opt,name=expiryDateDistance" json:"expiryDateDistance,omitempty"`      //距离到期日天数,负数表示已过期
	ContractNominalValue *float64            `protobuf:"fixed64,18,opt,name=contractNominalValue" json:"contractNominalValue,omitempty"` //合约名义金额,仅港股期权适用
	OwnerLotMultiplier   *float64            `protobuf:"fixed64,19,opt,name=ownerLotMultiplier" json:"ownerLotMultiplier,omitempty"`     //相等正股手数,指数期权无该字段,仅港股期权适用
	OptionAreaType       *int32              `protobuf:"varint,20,opt,name=optionAreaType" json:"optionAreaType,omitempty"`              //Qot_Common.OptionAreaType,期权类型(按行权时间)
	ContractMultiplier   *float64            `protobuf:"fixed64,21,opt,name=contractMultiplier" json:"contractMultiplier,omitempty"`     //合约乘数
	// contains filtered or unexported fields
}

期权类型额外数据

func (*OptionSnapshotExData) Descriptor deprecated

func (*OptionSnapshotExData) Descriptor() ([]byte, []int)

Deprecated: Use OptionSnapshotExData.ProtoReflect.Descriptor instead.

func (*OptionSnapshotExData) GetContractMultiplier

func (x *OptionSnapshotExData) GetContractMultiplier() float64

func (*OptionSnapshotExData) GetContractNominalValue

func (x *OptionSnapshotExData) GetContractNominalValue() float64

func (*OptionSnapshotExData) GetContractSize

func (x *OptionSnapshotExData) GetContractSize() int32

func (*OptionSnapshotExData) GetContractSizeFloat

func (x *OptionSnapshotExData) GetContractSizeFloat() float64

func (*OptionSnapshotExData) GetDelta

func (x *OptionSnapshotExData) GetDelta() float64

func (*OptionSnapshotExData) GetExpiryDateDistance

func (x *OptionSnapshotExData) GetExpiryDateDistance() int32

func (*OptionSnapshotExData) GetGamma

func (x *OptionSnapshotExData) GetGamma() float64

func (*OptionSnapshotExData) GetImpliedVolatility

func (x *OptionSnapshotExData) GetImpliedVolatility() float64

func (*OptionSnapshotExData) GetIndexOptionType

func (x *OptionSnapshotExData) GetIndexOptionType() int32

func (*OptionSnapshotExData) GetNetOpenInterest

func (x *OptionSnapshotExData) GetNetOpenInterest() int32

func (*OptionSnapshotExData) GetOpenInterest

func (x *OptionSnapshotExData) GetOpenInterest() int32

func (*OptionSnapshotExData) GetOptionAreaType

func (x *OptionSnapshotExData) GetOptionAreaType() int32

func (*OptionSnapshotExData) GetOwner

func (x *OptionSnapshotExData) GetOwner() *qotcommon.Security

func (*OptionSnapshotExData) GetOwnerLotMultiplier

func (x *OptionSnapshotExData) GetOwnerLotMultiplier() float64

func (*OptionSnapshotExData) GetPremium

func (x *OptionSnapshotExData) GetPremium() float64

func (*OptionSnapshotExData) GetRho

func (x *OptionSnapshotExData) GetRho() float64

func (*OptionSnapshotExData) GetStrikePrice

func (x *OptionSnapshotExData) GetStrikePrice() float64

func (*OptionSnapshotExData) GetStrikeTime

func (x *OptionSnapshotExData) GetStrikeTime() string

func (*OptionSnapshotExData) GetStrikeTimestamp

func (x *OptionSnapshotExData) GetStrikeTimestamp() float64

func (*OptionSnapshotExData) GetTheta

func (x *OptionSnapshotExData) GetTheta() float64

func (*OptionSnapshotExData) GetType

func (x *OptionSnapshotExData) GetType() int32

func (*OptionSnapshotExData) GetVega

func (x *OptionSnapshotExData) GetVega() float64

func (*OptionSnapshotExData) ProtoMessage

func (*OptionSnapshotExData) ProtoMessage()

func (*OptionSnapshotExData) ProtoReflect

func (x *OptionSnapshotExData) ProtoReflect() protoreflect.Message

func (*OptionSnapshotExData) Reset

func (x *OptionSnapshotExData) Reset()

func (*OptionSnapshotExData) String

func (x *OptionSnapshotExData) String() string

type PlateSnapshotExData

type PlateSnapshotExData struct {
	RaiseCount *int32 `protobuf:"varint,1,req,name=raiseCount" json:"raiseCount,omitempty"` // 上涨支数
	FallCount  *int32 `protobuf:"varint,2,req,name=fallCount" json:"fallCount,omitempty"`   // 下跌支数
	EqualCount *int32 `protobuf:"varint,3,req,name=equalCount" json:"equalCount,omitempty"` // 平盘支数
	// contains filtered or unexported fields
}

板块类型额外数据

func (*PlateSnapshotExData) Descriptor deprecated

func (*PlateSnapshotExData) Descriptor() ([]byte, []int)

Deprecated: Use PlateSnapshotExData.ProtoReflect.Descriptor instead.

func (*PlateSnapshotExData) GetEqualCount

func (x *PlateSnapshotExData) GetEqualCount() int32

func (*PlateSnapshotExData) GetFallCount

func (x *PlateSnapshotExData) GetFallCount() int32

func (*PlateSnapshotExData) GetRaiseCount

func (x *PlateSnapshotExData) GetRaiseCount() int32

func (*PlateSnapshotExData) ProtoMessage

func (*PlateSnapshotExData) ProtoMessage()

func (*PlateSnapshotExData) ProtoReflect

func (x *PlateSnapshotExData) ProtoReflect() protoreflect.Message

func (*PlateSnapshotExData) Reset

func (x *PlateSnapshotExData) Reset()

func (*PlateSnapshotExData) String

func (x *PlateSnapshotExData) String() string

type Request

type Request struct {
	C2S *C2S `protobuf:"bytes,1,req,name=c2s" json:"c2s,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetC2S

func (x *Request) GetC2S() *C2S

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	RetType *int32  `protobuf:"varint,1,req,name=retType,def=-400" json:"retType,omitempty"` //RetType,返回结果
	RetMsg  *string `protobuf:"bytes,2,opt,name=retMsg" json:"retMsg,omitempty"`
	ErrCode *int32  `protobuf:"varint,3,opt,name=errCode" json:"errCode,omitempty"`
	S2C     *S2C    `protobuf:"bytes,4,opt,name=s2c" json:"s2c,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetErrCode

func (x *Response) GetErrCode() int32

func (*Response) GetRetMsg

func (x *Response) GetRetMsg() string

func (*Response) GetRetType

func (x *Response) GetRetType() int32

func (*Response) GetS2C

func (x *Response) GetS2C() *S2C

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ResponseChan

type ResponseChan chan *Response

func (ResponseChan) Close

func (ch ResponseChan) Close()

func (ResponseChan) Send

func (ch ResponseChan) Send(b []byte) error

type S2C

type S2C struct {
	SnapshotList []*Snapshot `protobuf:"bytes,1,rep,name=snapshotList" json:"snapshotList,omitempty"` //股票快照
	// contains filtered or unexported fields
}

func (*S2C) Descriptor deprecated

func (*S2C) Descriptor() ([]byte, []int)

Deprecated: Use S2C.ProtoReflect.Descriptor instead.

func (*S2C) GetSnapshotList

func (x *S2C) GetSnapshotList() []*Snapshot

func (*S2C) ProtoMessage

func (*S2C) ProtoMessage()

func (*S2C) ProtoReflect

func (x *S2C) ProtoReflect() protoreflect.Message

func (*S2C) Reset

func (x *S2C) Reset()

func (*S2C) String

func (x *S2C) String() string

type Snapshot

type Snapshot struct {
	Basic         *SnapshotBasicData     `protobuf:"bytes,1,req,name=basic" json:"basic,omitempty"`                 //快照基本数据
	EquityExData  *EquitySnapshotExData  `protobuf:"bytes,2,opt,name=equityExData" json:"equityExData,omitempty"`   //正股快照额外数据
	WarrantExData *WarrantSnapshotExData `protobuf:"bytes,3,opt,name=warrantExData" json:"warrantExData,omitempty"` //窝轮快照额外数据
	OptionExData  *OptionSnapshotExData  `protobuf:"bytes,4,opt,name=optionExData" json:"optionExData,omitempty"`   //期权快照额外数据
	IndexExData   *IndexSnapshotExData   `protobuf:"bytes,5,opt,name=indexExData" json:"indexExData,omitempty"`     //指数快照额外数据
	PlateExData   *PlateSnapshotExData   `protobuf:"bytes,6,opt,name=plateExData" json:"plateExData,omitempty"`     //板块快照额外数据
	FutureExData  *FutureSnapshotExData  `protobuf:"bytes,7,opt,name=futureExData" json:"futureExData,omitempty"`   //期货类型额外数据
	TrustExData   *TrustSnapshotExData   `protobuf:"bytes,8,opt,name=trustExData" json:"trustExData,omitempty"`     //基金类型额外数据
	// contains filtered or unexported fields
}

func (*Snapshot) Descriptor deprecated

func (*Snapshot) Descriptor() ([]byte, []int)

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetBasic

func (x *Snapshot) GetBasic() *SnapshotBasicData

func (*Snapshot) GetEquityExData

func (x *Snapshot) GetEquityExData() *EquitySnapshotExData

func (*Snapshot) GetFutureExData

func (x *Snapshot) GetFutureExData() *FutureSnapshotExData

func (*Snapshot) GetIndexExData

func (x *Snapshot) GetIndexExData() *IndexSnapshotExData

func (*Snapshot) GetOptionExData

func (x *Snapshot) GetOptionExData() *OptionSnapshotExData

func (*Snapshot) GetPlateExData

func (x *Snapshot) GetPlateExData() *PlateSnapshotExData

func (*Snapshot) GetTrustExData

func (x *Snapshot) GetTrustExData() *TrustSnapshotExData

func (*Snapshot) GetWarrantExData

func (x *Snapshot) GetWarrantExData() *WarrantSnapshotExData

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

func (x *Snapshot) ProtoReflect() protoreflect.Message

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

type SnapshotBasicData

type SnapshotBasicData struct {
	Security                *qotcommon.Security           `protobuf:"bytes,1,req,name=security" json:"security,omitempty"`                                  //股票
	Type                    *int32                        `protobuf:"varint,2,req,name=type" json:"type,omitempty"`                                         //Qot_Common.SecurityType,股票类型
	IsSuspend               *bool                         `protobuf:"varint,3,req,name=isSuspend" json:"isSuspend,omitempty"`                               //是否停牌
	ListTime                *string                       `protobuf:"bytes,4,req,name=listTime" json:"listTime,omitempty"`                                  //上市时间字符串
	LotSize                 *int32                        `protobuf:"varint,5,req,name=lotSize" json:"lotSize,omitempty"`                                   //每手数量
	PriceSpread             *float64                      `protobuf:"fixed64,6,req,name=priceSpread" json:"priceSpread,omitempty"`                          //价差
	UpdateTime              *string                       `protobuf:"bytes,7,req,name=updateTime" json:"updateTime,omitempty"`                              //更新时间字符串
	HighPrice               *float64                      `protobuf:"fixed64,8,req,name=highPrice" json:"highPrice,omitempty"`                              //最高价
	OpenPrice               *float64                      `protobuf:"fixed64,9,req,name=openPrice" json:"openPrice,omitempty"`                              //开盘价
	LowPrice                *float64                      `protobuf:"fixed64,10,req,name=lowPrice" json:"lowPrice,omitempty"`                               //最低价
	LastClosePrice          *float64                      `protobuf:"fixed64,11,req,name=lastClosePrice" json:"lastClosePrice,omitempty"`                   //昨收价
	CurPrice                *float64                      `protobuf:"fixed64,12,req,name=curPrice" json:"curPrice,omitempty"`                               //最新价
	Volume                  *int64                        `protobuf:"varint,13,req,name=volume" json:"volume,omitempty"`                                    //成交量
	Turnover                *float64                      `protobuf:"fixed64,14,req,name=turnover" json:"turnover,omitempty"`                               //成交额
	TurnoverRate            *float64                      `protobuf:"fixed64,15,req,name=turnoverRate" json:"turnoverRate,omitempty"`                       //换手率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	ListTimestamp           *float64                      `protobuf:"fixed64,16,opt,name=listTimestamp" json:"listTimestamp,omitempty"`                     //上市时间戳
	UpdateTimestamp         *float64                      `protobuf:"fixed64,17,opt,name=updateTimestamp" json:"updateTimestamp,omitempty"`                 //更新时间戳
	AskPrice                *float64                      `protobuf:"fixed64,18,opt,name=askPrice" json:"askPrice,omitempty"`                               //卖价
	BidPrice                *float64                      `protobuf:"fixed64,19,opt,name=bidPrice" json:"bidPrice,omitempty"`                               //买价
	AskVol                  *int64                        `protobuf:"varint,20,opt,name=askVol" json:"askVol,omitempty"`                                    //卖量
	BidVol                  *int64                        `protobuf:"varint,21,opt,name=bidVol" json:"bidVol,omitempty"`                                    //买量
	EnableMargin            *bool                         `protobuf:"varint,22,opt,name=enableMargin" json:"enableMargin,omitempty"`                        // 是否可融资,如果为true,后两个字段才有意义
	MortgageRatio           *float64                      `protobuf:"fixed64,23,opt,name=mortgageRatio" json:"mortgageRatio,omitempty"`                     // 股票抵押率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	LongMarginInitialRatio  *float64                      `protobuf:"fixed64,24,opt,name=longMarginInitialRatio" json:"longMarginInitialRatio,omitempty"`   // 融资初始保证金率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	EnableShortSell         *bool                         `protobuf:"varint,25,opt,name=enableShortSell" json:"enableShortSell,omitempty"`                  // 是否可卖空,如果为true,后三个字段才有意义
	ShortSellRate           *float64                      `protobuf:"fixed64,26,opt,name=shortSellRate" json:"shortSellRate,omitempty"`                     // 卖空参考利率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	ShortAvailableVolume    *int64                        `protobuf:"varint,27,opt,name=shortAvailableVolume" json:"shortAvailableVolume,omitempty"`        // 剩余可卖空数量(股)
	ShortMarginInitialRatio *float64                      `protobuf:"fixed64,28,opt,name=shortMarginInitialRatio" json:"shortMarginInitialRatio,omitempty"` // 卖空(融券)初始保证金率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	Amplitude               *float64                      `protobuf:"fixed64,29,opt,name=amplitude" json:"amplitude,omitempty"`                             // 振幅(该字段为百分比字段,默认不展示%,如20实际对应20%)
	AvgPrice                *float64                      `protobuf:"fixed64,30,opt,name=avgPrice" json:"avgPrice,omitempty"`                               // 平均价
	BidAskRatio             *float64                      `protobuf:"fixed64,31,opt,name=bidAskRatio" json:"bidAskRatio,omitempty"`                         // 委比(该字段为百分比字段,默认不展示%,如20实际对应20%)
	VolumeRatio             *float64                      `protobuf:"fixed64,32,opt,name=volumeRatio" json:"volumeRatio,omitempty"`                         // 量比
	Highest52WeeksPrice     *float64                      `protobuf:"fixed64,33,opt,name=highest52WeeksPrice" json:"highest52WeeksPrice,omitempty"`         // 52周最高价
	Lowest52WeeksPrice      *float64                      `protobuf:"fixed64,34,opt,name=lowest52WeeksPrice" json:"lowest52WeeksPrice,omitempty"`           // 52周最低价
	HighestHistoryPrice     *float64                      `protobuf:"fixed64,35,opt,name=highestHistoryPrice" json:"highestHistoryPrice,omitempty"`         // 历史最高价
	LowestHistoryPrice      *float64                      `protobuf:"fixed64,36,opt,name=lowestHistoryPrice" json:"lowestHistoryPrice,omitempty"`           // 历史最低价
	PreMarket               *qotcommon.PreAfterMarketData `protobuf:"bytes,37,opt,name=preMarket" json:"preMarket,omitempty"`                               //Qot_Common::PreAfterMarketData 盘前数据
	AfterMarket             *qotcommon.PreAfterMarketData `protobuf:"bytes,38,opt,name=afterMarket" json:"afterMarket,omitempty"`                           //Qot_Common::PreAfterMarketData 盘后数据
	SecStatus               *int32                        `protobuf:"varint,39,opt,name=secStatus" json:"secStatus,omitempty"`                              //Qot_Common::SecurityStatus 股票状态
	ClosePrice5Minute       *float64                      `protobuf:"fixed64,40,opt,name=closePrice5Minute" json:"closePrice5Minute,omitempty"`             //5分钟收盘价
	// contains filtered or unexported fields
}

基本快照数据

func (*SnapshotBasicData) Descriptor deprecated

func (*SnapshotBasicData) Descriptor() ([]byte, []int)

Deprecated: Use SnapshotBasicData.ProtoReflect.Descriptor instead.

func (*SnapshotBasicData) GetAfterMarket

func (x *SnapshotBasicData) GetAfterMarket() *qotcommon.PreAfterMarketData

func (*SnapshotBasicData) GetAmplitude

func (x *SnapshotBasicData) GetAmplitude() float64

func (*SnapshotBasicData) GetAskPrice

func (x *SnapshotBasicData) GetAskPrice() float64

func (*SnapshotBasicData) GetAskVol

func (x *SnapshotBasicData) GetAskVol() int64

func (*SnapshotBasicData) GetAvgPrice

func (x *SnapshotBasicData) GetAvgPrice() float64

func (*SnapshotBasicData) GetBidAskRatio

func (x *SnapshotBasicData) GetBidAskRatio() float64

func (*SnapshotBasicData) GetBidPrice

func (x *SnapshotBasicData) GetBidPrice() float64

func (*SnapshotBasicData) GetBidVol

func (x *SnapshotBasicData) GetBidVol() int64

func (*SnapshotBasicData) GetClosePrice5Minute

func (x *SnapshotBasicData) GetClosePrice5Minute() float64

func (*SnapshotBasicData) GetCurPrice

func (x *SnapshotBasicData) GetCurPrice() float64

func (*SnapshotBasicData) GetEnableMargin

func (x *SnapshotBasicData) GetEnableMargin() bool

func (*SnapshotBasicData) GetEnableShortSell

func (x *SnapshotBasicData) GetEnableShortSell() bool

func (*SnapshotBasicData) GetHighPrice

func (x *SnapshotBasicData) GetHighPrice() float64

func (*SnapshotBasicData) GetHighest52WeeksPrice

func (x *SnapshotBasicData) GetHighest52WeeksPrice() float64

func (*SnapshotBasicData) GetHighestHistoryPrice

func (x *SnapshotBasicData) GetHighestHistoryPrice() float64

func (*SnapshotBasicData) GetIsSuspend

func (x *SnapshotBasicData) GetIsSuspend() bool

func (*SnapshotBasicData) GetLastClosePrice

func (x *SnapshotBasicData) GetLastClosePrice() float64

func (*SnapshotBasicData) GetListTime

func (x *SnapshotBasicData) GetListTime() string

func (*SnapshotBasicData) GetListTimestamp

func (x *SnapshotBasicData) GetListTimestamp() float64

func (*SnapshotBasicData) GetLongMarginInitialRatio

func (x *SnapshotBasicData) GetLongMarginInitialRatio() float64

func (*SnapshotBasicData) GetLotSize

func (x *SnapshotBasicData) GetLotSize() int32

func (*SnapshotBasicData) GetLowPrice

func (x *SnapshotBasicData) GetLowPrice() float64

func (*SnapshotBasicData) GetLowest52WeeksPrice

func (x *SnapshotBasicData) GetLowest52WeeksPrice() float64

func (*SnapshotBasicData) GetLowestHistoryPrice

func (x *SnapshotBasicData) GetLowestHistoryPrice() float64

func (*SnapshotBasicData) GetMortgageRatio

func (x *SnapshotBasicData) GetMortgageRatio() float64

func (*SnapshotBasicData) GetOpenPrice

func (x *SnapshotBasicData) GetOpenPrice() float64

func (*SnapshotBasicData) GetPreMarket

func (x *SnapshotBasicData) GetPreMarket() *qotcommon.PreAfterMarketData

func (*SnapshotBasicData) GetPriceSpread

func (x *SnapshotBasicData) GetPriceSpread() float64

func (*SnapshotBasicData) GetSecStatus

func (x *SnapshotBasicData) GetSecStatus() int32

func (*SnapshotBasicData) GetSecurity

func (x *SnapshotBasicData) GetSecurity() *qotcommon.Security

func (*SnapshotBasicData) GetShortAvailableVolume

func (x *SnapshotBasicData) GetShortAvailableVolume() int64

func (*SnapshotBasicData) GetShortMarginInitialRatio

func (x *SnapshotBasicData) GetShortMarginInitialRatio() float64

func (*SnapshotBasicData) GetShortSellRate

func (x *SnapshotBasicData) GetShortSellRate() float64

func (*SnapshotBasicData) GetTurnover

func (x *SnapshotBasicData) GetTurnover() float64

func (*SnapshotBasicData) GetTurnoverRate

func (x *SnapshotBasicData) GetTurnoverRate() float64

func (*SnapshotBasicData) GetType

func (x *SnapshotBasicData) GetType() int32

func (*SnapshotBasicData) GetUpdateTime

func (x *SnapshotBasicData) GetUpdateTime() string

func (*SnapshotBasicData) GetUpdateTimestamp

func (x *SnapshotBasicData) GetUpdateTimestamp() float64

func (*SnapshotBasicData) GetVolume

func (x *SnapshotBasicData) GetVolume() int64

func (*SnapshotBasicData) GetVolumeRatio

func (x *SnapshotBasicData) GetVolumeRatio() float64

func (*SnapshotBasicData) ProtoMessage

func (*SnapshotBasicData) ProtoMessage()

func (*SnapshotBasicData) ProtoReflect

func (x *SnapshotBasicData) ProtoReflect() protoreflect.Message

func (*SnapshotBasicData) Reset

func (x *SnapshotBasicData) Reset()

func (*SnapshotBasicData) String

func (x *SnapshotBasicData) String() string

type TrustSnapshotExData

type TrustSnapshotExData struct {
	DividendYield    *float64 `protobuf:"fixed64,1,req,name=dividendYield" json:"dividendYield,omitempty"`      //股息率(该字段为百分比字段,默认不展示%,如20实际对应20%)
	Aum              *float64 `protobuf:"fixed64,2,req,name=aum" json:"aum,omitempty"`                          //资产规模(单位:元)
	OutstandingUnits *int64   `protobuf:"varint,3,req,name=outstandingUnits" json:"outstandingUnits,omitempty"` //总发行量
	NetAssetValue    *float64 `protobuf:"fixed64,4,req,name=netAssetValue" json:"netAssetValue,omitempty"`      //单位净值
	Premium          *float64 `protobuf:"fixed64,5,req,name=premium" json:"premium,omitempty"`                  //溢价(该字段为百分比字段,默认不展示%,如20实际对应20%)
	AssetClass       *int32   `protobuf:"varint,6,req,name=assetClass" json:"assetClass,omitempty"`             //Qot_Common.AssetClass,资产类别
	// contains filtered or unexported fields
}

基金类型额外数据

func (*TrustSnapshotExData) Descriptor deprecated

func (*TrustSnapshotExData) Descriptor() ([]byte, []int)

Deprecated: Use TrustSnapshotExData.ProtoReflect.Descriptor instead.

func (*TrustSnapshotExData) GetAssetClass

func (x *TrustSnapshotExData) GetAssetClass() int32

func (*TrustSnapshotExData) GetAum

func (x *TrustSnapshotExData) GetAum() float64

func (*TrustSnapshotExData) GetDividendYield

func (x *TrustSnapshotExData) GetDividendYield() float64

func (*TrustSnapshotExData) GetNetAssetValue

func (x *TrustSnapshotExData) GetNetAssetValue() float64

func (*TrustSnapshotExData) GetOutstandingUnits

func (x *TrustSnapshotExData) GetOutstandingUnits() int64

func (*TrustSnapshotExData) GetPremium

func (x *TrustSnapshotExData) GetPremium() float64

func (*TrustSnapshotExData) ProtoMessage

func (*TrustSnapshotExData) ProtoMessage()

func (*TrustSnapshotExData) ProtoReflect

func (x *TrustSnapshotExData) ProtoReflect() protoreflect.Message

func (*TrustSnapshotExData) Reset

func (x *TrustSnapshotExData) Reset()

func (*TrustSnapshotExData) String

func (x *TrustSnapshotExData) String() string

type WarrantSnapshotExData

type WarrantSnapshotExData struct {
	ConversionRate     *float64            `protobuf:"fixed64,1,req,name=conversionRate" json:"conversionRate,omitempty"`          //换股比率
	WarrantType        *int32              `protobuf:"varint,2,req,name=warrantType" json:"warrantType,omitempty"`                 //Qot_Common.WarrantType,窝轮类型
	StrikePrice        *float64            `protobuf:"fixed64,3,req,name=strikePrice" json:"strikePrice,omitempty"`                //行使价
	MaturityTime       *string             `protobuf:"bytes,4,req,name=maturityTime" json:"maturityTime,omitempty"`                //到期日时间字符串
	EndTradeTime       *string             `protobuf:"bytes,5,req,name=endTradeTime" json:"endTradeTime,omitempty"`                //最后交易日时间字符串
	Owner              *qotcommon.Security `protobuf:"bytes,6,req,name=owner" json:"owner,omitempty"`                              //所属正股
	RecoveryPrice      *float64            `protobuf:"fixed64,7,req,name=recoveryPrice" json:"recoveryPrice,omitempty"`            //收回价,仅牛熊证支持该字段
	StreetVolumn       *int64              `protobuf:"varint,8,req,name=streetVolumn" json:"streetVolumn,omitempty"`               //街货量
	IssueVolumn        *int64              `protobuf:"varint,9,req,name=issueVolumn" json:"issueVolumn,omitempty"`                 //发行量
	StreetRate         *float64            `protobuf:"fixed64,10,req,name=streetRate" json:"streetRate,omitempty"`                 //街货占比(该字段为百分比字段,默认不展示%,如20实际对应20%)
	Delta              *float64            `protobuf:"fixed64,11,req,name=delta" json:"delta,omitempty"`                           //对冲值,仅认购认沽支持该字段
	ImpliedVolatility  *float64            `protobuf:"fixed64,12,req,name=impliedVolatility" json:"impliedVolatility,omitempty"`   //引申波幅,仅认购认沽支持该字段
	Premium            *float64            `protobuf:"fixed64,13,req,name=premium" json:"premium,omitempty"`                       //溢价(该字段为百分比字段,默认不展示%,如20实际对应20%)
	MaturityTimestamp  *float64            `protobuf:"fixed64,14,opt,name=maturityTimestamp" json:"maturityTimestamp,omitempty"`   //到期日时间戳
	EndTradeTimestamp  *float64            `protobuf:"fixed64,15,opt,name=endTradeTimestamp" json:"endTradeTimestamp,omitempty"`   //最后交易日时间戳
	Leverage           *float64            `protobuf:"fixed64,16,opt,name=leverage" json:"leverage,omitempty"`                     // 杠杆比率(倍)
	Ipop               *float64            `protobuf:"fixed64,17,opt,name=ipop" json:"ipop,omitempty"`                             // 价内/价外(该字段为百分比字段,默认不展示%,如20实际对应20%)
	BreakEvenPoint     *float64            `protobuf:"fixed64,18,opt,name=breakEvenPoint" json:"breakEvenPoint,omitempty"`         // 打和点
	ConversionPrice    *float64            `protobuf:"fixed64,19,opt,name=conversionPrice" json:"conversionPrice,omitempty"`       // 换股价
	PriceRecoveryRatio *float64            `protobuf:"fixed64,20,opt,name=priceRecoveryRatio" json:"priceRecoveryRatio,omitempty"` // 正股距收回价(该字段为百分比字段,默认不展示%,如20实际对应20%)
	Score              *float64            `protobuf:"fixed64,21,opt,name=score" json:"score,omitempty"`                           // 综合评分
	UpperStrikePrice   *float64            `protobuf:"fixed64,22,opt,name=upperStrikePrice" json:"upperStrikePrice,omitempty"`     //上限价,仅界内证支持该字段
	LowerStrikePrice   *float64            `protobuf:"fixed64,23,opt,name=lowerStrikePrice" json:"lowerStrikePrice,omitempty"`     //下限价,仅界内证支持该字段
	InLinePriceStatus  *int32              `protobuf:"varint,24,opt,name=inLinePriceStatus" json:"inLinePriceStatus,omitempty"`    //Qot_Common.PriceType, 界内界外,仅界内证支持该字段
	IssuerCode         *string             `protobuf:"bytes,25,opt,name=issuerCode" json:"issuerCode,omitempty"`                   //发行人代码
	// contains filtered or unexported fields
}

窝轮类型额外数据

func (*WarrantSnapshotExData) Descriptor deprecated

func (*WarrantSnapshotExData) Descriptor() ([]byte, []int)

Deprecated: Use WarrantSnapshotExData.ProtoReflect.Descriptor instead.

func (*WarrantSnapshotExData) GetBreakEvenPoint

func (x *WarrantSnapshotExData) GetBreakEvenPoint() float64

func (*WarrantSnapshotExData) GetConversionPrice

func (x *WarrantSnapshotExData) GetConversionPrice() float64

func (*WarrantSnapshotExData) GetConversionRate

func (x *WarrantSnapshotExData) GetConversionRate() float64

func (*WarrantSnapshotExData) GetDelta

func (x *WarrantSnapshotExData) GetDelta() float64

func (*WarrantSnapshotExData) GetEndTradeTime

func (x *WarrantSnapshotExData) GetEndTradeTime() string

func (*WarrantSnapshotExData) GetEndTradeTimestamp

func (x *WarrantSnapshotExData) GetEndTradeTimestamp() float64

func (*WarrantSnapshotExData) GetImpliedVolatility

func (x *WarrantSnapshotExData) GetImpliedVolatility() float64

func (*WarrantSnapshotExData) GetInLinePriceStatus

func (x *WarrantSnapshotExData) GetInLinePriceStatus() int32

func (*WarrantSnapshotExData) GetIpop

func (x *WarrantSnapshotExData) GetIpop() float64

func (*WarrantSnapshotExData) GetIssueVolumn

func (x *WarrantSnapshotExData) GetIssueVolumn() int64

func (*WarrantSnapshotExData) GetIssuerCode

func (x *WarrantSnapshotExData) GetIssuerCode() string

func (*WarrantSnapshotExData) GetLeverage

func (x *WarrantSnapshotExData) GetLeverage() float64

func (*WarrantSnapshotExData) GetLowerStrikePrice

func (x *WarrantSnapshotExData) GetLowerStrikePrice() float64

func (*WarrantSnapshotExData) GetMaturityTime

func (x *WarrantSnapshotExData) GetMaturityTime() string

func (*WarrantSnapshotExData) GetMaturityTimestamp

func (x *WarrantSnapshotExData) GetMaturityTimestamp() float64

func (*WarrantSnapshotExData) GetOwner

func (x *WarrantSnapshotExData) GetOwner() *qotcommon.Security

func (*WarrantSnapshotExData) GetPremium

func (x *WarrantSnapshotExData) GetPremium() float64

func (*WarrantSnapshotExData) GetPriceRecoveryRatio

func (x *WarrantSnapshotExData) GetPriceRecoveryRatio() float64

func (*WarrantSnapshotExData) GetRecoveryPrice

func (x *WarrantSnapshotExData) GetRecoveryPrice() float64

func (*WarrantSnapshotExData) GetScore

func (x *WarrantSnapshotExData) GetScore() float64

func (*WarrantSnapshotExData) GetStreetRate

func (x *WarrantSnapshotExData) GetStreetRate() float64

func (*WarrantSnapshotExData) GetStreetVolumn

func (x *WarrantSnapshotExData) GetStreetVolumn() int64

func (*WarrantSnapshotExData) GetStrikePrice

func (x *WarrantSnapshotExData) GetStrikePrice() float64

func (*WarrantSnapshotExData) GetUpperStrikePrice

func (x *WarrantSnapshotExData) GetUpperStrikePrice() float64

func (*WarrantSnapshotExData) GetWarrantType

func (x *WarrantSnapshotExData) GetWarrantType() int32

func (*WarrantSnapshotExData) ProtoMessage

func (*WarrantSnapshotExData) ProtoMessage()

func (*WarrantSnapshotExData) ProtoReflect

func (x *WarrantSnapshotExData) ProtoReflect() protoreflect.Message

func (*WarrantSnapshotExData) Reset

func (x *WarrantSnapshotExData) Reset()

func (*WarrantSnapshotExData) String

func (x *WarrantSnapshotExData) String() string

Jump to

Keyboard shortcuts

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