hnxinfogate

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-1.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RouteAuctionMatch

func RouteAuctionMatch(router func(msg AuctionMatch, sessionID quickfix.SessionID) quickfix.MessageRejectError) (
	string, string, quickfix.MessageRoute)

Route returns the beginstring, message type, and MessageRoute for this Message type

func RouteBoardInfo added in v0.1.4

func RouteBoardInfo(router func(msg BoardInfo, sessionID quickfix.SessionID) quickfix.MessageRejectError) (
	string, string, quickfix.MessageRoute)

RouteIndex returns the begin string, message type, and MessageRoute for this Message type

func RouteDerivativeInfo

func RouteDerivativeInfo(router func(msg DerivativeInfo, sessionID quickfix.SessionID) quickfix.MessageRejectError) (
	string, string, quickfix.MessageRoute)

Route returns the beginstring, message type, and MessageRoute for this Message type

func RouteIndex added in v0.1.4

func RouteIndex(router func(msg Index, sessionID quickfix.SessionID) quickfix.MessageRejectError) (
	string, string, quickfix.MessageRoute)

RouteIndex returns the begin string, message type, and MessageRoute for this Message type

func RouteStockInfo

func RouteStockInfo(router func(msg StockInfo, sessionID quickfix.SessionID) quickfix.MessageRejectError) (
	string, string, quickfix.MessageRoute)

Route returns the beginstring, message type, and MessageRoute for this Message type

func RouteTopNPrice

func RouteTopNPrice(router func(msg TopNPrice, sessionID quickfix.SessionID) quickfix.MessageRejectError) (
	string, string, quickfix.MessageRoute)

Route returns the beginstring, message type, and MessageRoute for this Message type

Types

type ActionTypeField added in v0.1.9

type ActionTypeField struct{ quickfix.FIXString }

func (ActionTypeField) Tag added in v0.1.9

func (f ActionTypeField) Tag() quickfix.Tag

func (ActionTypeField) Value added in v0.1.9

func (f ActionTypeField) Value() string

type AdjustQttyField

type AdjustQttyField struct{ quickfix.FIXDecimal }

func (AdjustQttyField) Tag

func (f AdjustQttyField) Tag() quickfix.Tag

func (AdjustQttyField) Value

func (f AdjustQttyField) Value() decimal.Decimal

type AuctionMatch

type AuctionMatch struct {
	fix44.Header
	*quickfix.Body
	fix44.Trailer
	Message *quickfix.Message
}

AuctionMatch MsgType = EP. giá tạm khớp trong phiên khớp lệnh định kỳ sẽ gửi cho các thành viên giao dịch

func FromMessageToAuctionMatch

func FromMessageToAuctionMatch(m *quickfix.Message) AuctionMatch

FromMessage creates a AuctionMatch from a quickfix.Message instance

func (AuctionMatch) GetActionType added in v0.1.9

func (m AuctionMatch) GetActionType() (v string, err quickfix.MessageRejectError)

GetActionType Tag 33 Loại khớp : A : khớp chính (không có ở phái sinh), M : tạm khớp

func (AuctionMatch) GetPrice added in v0.1.9

func (m AuctionMatch) GetPrice() (v float64, err quickfix.MessageRejectError)

GetPrice Tag 31, Giá khớp (định kỳ)

func (AuctionMatch) GetQtty added in v0.1.9

func (m AuctionMatch) GetQtty() (v float64, err quickfix.MessageRejectError)

GetQtty Tag 32, Khối lượng khớp (định kỳ), với dữ liệu Phái sinh thì không có tag này

func (AuctionMatch) GetSymbol

func (m AuctionMatch) GetSymbol() (v string, err quickfix.MessageRejectError)

GetSymbol Tag 55

func (AuctionMatch) ToMessage

func (m AuctionMatch) ToMessage() *quickfix.Message

ToMessage returns a quickfix.Message instance

type BestOfferQttyField

type BestOfferQttyField struct{ quickfix.FIXDecimal }

func (BestOfferQttyField) Tag

func (BestOfferQttyField) Value

type BidAskGroup

type BidAskGroup struct{ *quickfix.Group }

func (BidAskGroup) GetBestBidPrice

func (m BidAskGroup) GetBestBidPrice() (v float64, err quickfix.MessageRejectError)

Tag 132 Giá mua

func (BidAskGroup) GetBestBidQtty

func (m BidAskGroup) GetBestBidQtty() (v float64, err quickfix.MessageRejectError)

Tag 1321 Khối lượng mua

func (BidAskGroup) GetBestOfferPrice

func (m BidAskGroup) GetBestOfferPrice() (v float64, err quickfix.MessageRejectError)

Tag 133 Giá bán

func (BidAskGroup) GetBestOfferQtty

func (m BidAskGroup) GetBestOfferQtty() (v float64, err quickfix.MessageRejectError)

Tag 1331 Khối lượng bán

func (BidAskGroup) GetNumTopPrice

func (m BidAskGroup) GetNumTopPrice() (v float64, err quickfix.MessageRejectError)

Tag 556 Số thứ tự của mức giá: 1, 2, 3, 4, ..

type BidAskRepeatingGroup

type BidAskRepeatingGroup struct{ *quickfix.RepeatingGroup }

func NewBidAskRepeatingGroup

func NewBidAskRepeatingGroup() BidAskRepeatingGroup

func (BidAskRepeatingGroup) Add

func (BidAskRepeatingGroup) Get

type BidCountField

type BidCountField struct{ quickfix.FIXDecimal }

func (BidCountField) Tag

func (f BidCountField) Tag() quickfix.Tag

func (BidCountField) Value

func (f BidCountField) Value() decimal.Decimal

type BoardCodeField

type BoardCodeField struct{ quickfix.FIXString }

func (BoardCodeField) Tag

func (f BoardCodeField) Tag() quickfix.Tag

func (BoardCodeField) Value

func (f BoardCodeField) Value() string

type BoardInfo added in v0.1.4

type BoardInfo struct {
	fix44.Header
	*quickfix.Body
	fix44.Trailer
	Message *quickfix.Message
}

BoardInfo MsgType = BI, là thông tin về bảng giao dịch

func FromMessageToBoardInfo added in v0.1.4

func FromMessageToBoardInfo(m *quickfix.Message) BoardInfo

FromMessageToBoardInfo creates a BoardInfo msg from a quickfix.Message instance

func (BoardInfo) GetBoardCode added in v0.1.6

func (m BoardInfo) GetBoardCode() (v string, err quickfix.MessageRejectError)

GetBoardCode Tag 425 Mã bảng của chứng khoán:

-LIS_BRD_01,..: bảng niêm yết
-UPC_BRD_01,…: bảng upcom

func (BoardInfo) GetBoardStatus added in v0.1.6

func (m BoardInfo) GetBoardStatus() (v string, err quickfix.MessageRejectError)

GetBoardStatus Tag 426 Trạng thái của bảng:

	-A: Đang hoạt động
	-C: Ngừng hoạt động
 -P: Tạm thời dừng hoạt động

func (BoardInfo) GetName added in v0.1.6

func (m BoardInfo) GetName() (v string, err quickfix.MessageRejectError)

GetName Tag 421

func (BoardInfo) GetNumSymbolAdvances added in v0.1.6

func (m BoardInfo) GetNumSymbolAdvances() (v int, err quickfix.MessageRejectError)

GetNumSymbolAdvances Tag 251

func (BoardInfo) GetNumSymbolDeclines added in v0.1.6

func (m BoardInfo) GetNumSymbolDeclines() (v int, err quickfix.MessageRejectError)

GetNumSymbolDeclines Tag 253

func (BoardInfo) GetNumSymbolNoChange added in v0.1.6

func (m BoardInfo) GetNumSymbolNoChange() (v int, err quickfix.MessageRejectError)

GetNumSymbolNoChange Tag 252

func (BoardInfo) GetTime added in v0.1.7

func (m BoardInfo) GetTime() (v string, err quickfix.MessageRejectError)

func (BoardInfo) GetTradSesStatus added in v0.1.6

func (m BoardInfo) GetTradSesStatus() (v string, err quickfix.MessageRejectError)

GetTradSesStatus Tag 340 Trạng thái giao dịch (áp dụng cho Cổ phiếu):

= 0 Chưa bắt đầu.
= 1 Bình thường
= 2 Tạm dừng
= 3 Kết thúc nhận lệnh phiên hiện tại do RandomEnd
= 4 Tạm dừng do CircuitBreak
= 5 Phiên định kỳ sau CB
= 6 Chứng khoán đang Prolong
= 13 Kết thúc nhận lệnh của ngày giao dịch hiện tại
= 90 Thị trường đang ở trạng thái chờ nhận lệnh
= 97 Đóng cửa thị trường

func (BoardInfo) GetTradingSessionID added in v0.1.6

func (m BoardInfo) GetTradingSessionID() (v string, err quickfix.MessageRejectError)

GetTradingSessionID Tag 336 Mã trạng thái giao dịch. Các mã sử dụng trong bảng LIST:

LIS_AUC_O_NML: Phiên mở cửa(chưa áp dụng)
LIS_AUC_O_NML_LOC: Phiên mở cửa BL(chưa áp dụng)
LIS_CON_NML: Phiên liên tục
LIS_AUC_C_NML: Phiên đóng cửa
LIS_AUC_C_NML_LOC: Phiên đóng cửa BL
LIS_PTH_P_NML: Phiên sau đóng cửa

Các mã sử dụng trong bảng UPCOM:

UPC_AUC_O_NML: Phiên mở cửa(chưa áp dụng):
UPC_AUC_O_NML_LOC: Phiên mở cửa BL(chưa áp dụng)
UPC_CON_NML: Phiên liên tục
UPC_AUC_C_NML: Phiên đóng cửa
UPC_AUC_C_NML_LOC: Phiên đóng cửa BL
UPC_PTH_P_NML: Phiên sau đóng cửa(chưa áp dụng)

func (BoardInfo) ToMessage added in v0.1.4

func (m BoardInfo) ToMessage() *quickfix.Message

ToMessage returns a quickfix.Message instance

type BoardStatusField added in v0.1.6

type BoardStatusField struct{ quickfix.FIXString }

func (BoardStatusField) Tag added in v0.1.6

func (f BoardStatusField) Tag() quickfix.Tag

func (BoardStatusField) Value added in v0.1.6

func (f BoardStatusField) Value() string

type BuyCountField

type BuyCountField struct{ quickfix.FIXDecimal }

func (BuyCountField) Tag

func (f BuyCountField) Tag() quickfix.Tag

func (BuyCountField) Value

func (f BuyCountField) Value() decimal.Decimal

type BuyForeignQttyField

type BuyForeignQttyField struct{ quickfix.FIXDecimal }

func (BuyForeignQttyField) Tag

func (BuyForeignQttyField) Value

type BuyForeignValueField

type BuyForeignValueField struct{ quickfix.FIXDecimal }

func (BuyForeignValueField) Tag

func (BuyForeignValueField) Value

type CeilingPricePTField

type CeilingPricePTField struct{ quickfix.FIXDecimal }

func (CeilingPricePTField) Tag

func (CeilingPricePTField) Value

type ChangeField added in v0.1.6

type ChangeField struct{ quickfix.FIXDecimal }

func (ChangeField) Tag added in v0.1.6

func (f ChangeField) Tag() quickfix.Tag

func (ChangeField) Value added in v0.1.6

func (f ChangeField) Value() decimal.Decimal

type ClosePriceField

type ClosePriceField struct{ quickfix.FIXDecimal }

func (ClosePriceField) Tag

func (f ClosePriceField) Tag() quickfix.Tag

func (ClosePriceField) Value

func (f ClosePriceField) Value() decimal.Decimal

type CurrentPriceField

type CurrentPriceField struct{ quickfix.FIXDecimal }

func (CurrentPriceField) Tag

func (f CurrentPriceField) Tag() quickfix.Tag

func (CurrentPriceField) Value

func (f CurrentPriceField) Value() decimal.Decimal

type CurrentQttyField

type CurrentQttyField struct{ quickfix.FIXDecimal }

func (CurrentQttyField) Tag

func (f CurrentQttyField) Tag() quickfix.Tag

func (CurrentQttyField) Value

func (f CurrentQttyField) Value() decimal.Decimal

type DateNoField

type DateNoField struct{ quickfix.FIXDecimal }

func (DateNoField) Tag

func (f DateNoField) Tag() quickfix.Tag

func (DateNoField) Value

func (f DateNoField) Value() decimal.Decimal

type DerivativeInfo

type DerivativeInfo struct {
	*StockInfo
}

DerivativeInfo MsgType = DI. giá tạm khớp trong phiên khớp lệnh định kỳ sẽ gửi cho các thành viên giao dịch

func FromMessageToDerivativeInfo

func FromMessageToDerivativeInfo(m *quickfix.Message) DerivativeInfo

FromMessage creates a DerivativeInfo from a quickfix.Message instance

type FirstTradingDateField added in v0.1.5

type FirstTradingDateField struct{ quickfix.FIXString }

func (FirstTradingDateField) Tag added in v0.1.5

func (FirstTradingDateField) Value added in v0.1.5

func (f FirstTradingDateField) Value() string

type FloorPricePTField

type FloorPricePTField struct{ quickfix.FIXDecimal }

func (FloorPricePTField) Tag

func (f FloorPricePTField) Tag() quickfix.Tag

func (FloorPricePTField) Value

func (f FloorPricePTField) Value() decimal.Decimal

type HighestIndexField added in v0.1.6

type HighestIndexField struct{ quickfix.FIXDecimal }

func (HighestIndexField) Tag added in v0.1.6

func (f HighestIndexField) Tag() quickfix.Tag

func (HighestIndexField) Value added in v0.1.6

func (f HighestIndexField) Value() decimal.Decimal

type HighestPriceField

type HighestPriceField struct{ quickfix.FIXDecimal }

func (HighestPriceField) Tag

func (f HighestPriceField) Tag() quickfix.Tag

func (HighestPriceField) Value

func (f HighestPriceField) Value() decimal.Decimal

type Index added in v0.1.4

type Index struct {
	fix44.Header
	*quickfix.Body
	fix44.Trailer
	Message *quickfix.Message
}

Index MsgType = I, là nội dung thông tin về một chỉ số mà hệ thống chỉ số gửi ra

func FromMessageToIndex added in v0.1.4

func FromMessageToIndex(m *quickfix.Message) Index

FromMessageToIndex creates a Index msg from a quickfix.Message instance

func (Index) GetChange added in v0.1.6

func (m Index) GetChange() (v float64, err quickfix.MessageRejectError)

GetChange Tag 5 Giá trị thay đổi chỉ số hoặc TRI so với ngày hôm trước

func (Index) GetHighestIndex added in v0.1.6

func (m Index) GetHighestIndex() (v float64, err quickfix.MessageRejectError)

GetHighestIndex Tag 24

func (Index) GetIndexCode added in v0.1.4

func (m Index) GetIndexCode() (v string, err quickfix.MessageRejectError)

GetIndexCode Tag 2

func (Index) GetLowestIndex added in v0.1.6

func (m Index) GetLowestIndex() (v float64, err quickfix.MessageRejectError)

GetLowestIndex Tag 25

func (Index) GetPriorIndexVal added in v0.1.6

func (m Index) GetPriorIndexVal() (v float64, err quickfix.MessageRejectError)

GetPriorIndexVal Tag 23

func (Index) GetRatioChange added in v0.1.6

func (m Index) GetRatioChange() (v float64, err quickfix.MessageRejectError)

GetRatioChange Tag 6 Tỷ lệ (%) thay đổi chỉ số hoặc TRI

func (Index) GetTotalQtty added in v0.1.6

func (m Index) GetTotalQtty() (v float64, err quickfix.MessageRejectError)

GetTotalQtty Tag 7 Tổng khối lượng giao dịch của khớp lệnh thông thường (lô chẵn)

func (Index) GetTotalValue added in v0.1.6

func (m Index) GetTotalValue() (v float64, err quickfix.MessageRejectError)

GetTotalValue Tag 14 Tổng giá trị giao dịch của khớp lệnh thông thường (lô chẵn)

func (Index) GetValue added in v0.1.6

func (m Index) GetValue() (v float64, err quickfix.MessageRejectError)

GetValue Tag 3 Giá trị chỉ số tại thời điểm hiện tại Giá trị TRI tại thời điểm hiện tại Giá trị DPI trong ngày

func (Index) ToMessage added in v0.1.4

func (m Index) ToMessage() *quickfix.Message

ToMessage returns a quickfix.Message instance

type LastTradingDateField added in v0.1.5

type LastTradingDateField struct{ quickfix.FIXString }

func (LastTradingDateField) Tag added in v0.1.5

func (LastTradingDateField) Value added in v0.1.5

func (f LastTradingDateField) Value() string

type LowestIndexField added in v0.1.6

type LowestIndexField struct{ quickfix.FIXDecimal }

func (LowestIndexField) Tag added in v0.1.6

func (f LowestIndexField) Tag() quickfix.Tag

func (LowestIndexField) Value added in v0.1.6

func (f LowestIndexField) Value() decimal.Decimal

type LowestPriceField

type LowestPriceField struct{ quickfix.FIXDecimal }

func (LowestPriceField) Tag

func (f LowestPriceField) Tag() quickfix.Tag

func (LowestPriceField) Value

func (f LowestPriceField) Value() decimal.Decimal

type MatchValueField

type MatchValueField struct{ quickfix.FIXDecimal }

func (MatchValueField) Tag

func (f MatchValueField) Tag() quickfix.Tag

func (MatchValueField) Value

func (f MatchValueField) Value() decimal.Decimal

type NOTopPriceField

type NOTopPriceField struct{ quickfix.FIXDecimal }

func (NOTopPriceField) Tag

func (f NOTopPriceField) Tag() quickfix.Tag

func (NOTopPriceField) Value

func (f NOTopPriceField) Value() decimal.Decimal

type NameField added in v0.1.6

type NameField struct{ quickfix.FIXString }

func (NameField) Tag added in v0.1.6

func (f NameField) Tag() quickfix.Tag

func (NameField) Value added in v0.1.6

func (f NameField) Value() string

type NormalTotalTradedQttyField

type NormalTotalTradedQttyField struct{ quickfix.FIXDecimal }

func (NormalTotalTradedQttyField) Tag

func (NormalTotalTradedQttyField) Value

type NormalTotalTradedValueField

type NormalTotalTradedValueField struct{ quickfix.FIXDecimal }

func (NormalTotalTradedValueField) Tag

func (NormalTotalTradedValueField) Value

type NumSymbolAdvancesField added in v0.1.6

type NumSymbolAdvancesField struct{ quickfix.FIXInt }

func (NumSymbolAdvancesField) Tag added in v0.1.6

func (NumSymbolAdvancesField) Value added in v0.1.6

func (f NumSymbolAdvancesField) Value() int

type NumSymbolDeclinesField added in v0.1.6

type NumSymbolDeclinesField struct{ quickfix.FIXInt }

func (NumSymbolDeclinesField) Tag added in v0.1.6

func (NumSymbolDeclinesField) Value added in v0.1.6

func (f NumSymbolDeclinesField) Value() int

type NumSymbolNoChangeField added in v0.1.6

type NumSymbolNoChangeField struct{ quickfix.FIXInt }

func (NumSymbolNoChangeField) Tag added in v0.1.6

func (NumSymbolNoChangeField) Value added in v0.1.6

func (f NumSymbolNoChangeField) Value() int

type NumTopPriceField

type NumTopPriceField struct{ quickfix.FIXDecimal }

func (NumTopPriceField) Tag

func (f NumTopPriceField) Tag() quickfix.Tag

func (NumTopPriceField) Value

func (f NumTopPriceField) Value() decimal.Decimal

type OfferCountField

type OfferCountField struct{ quickfix.FIXDecimal }

func (OfferCountField) Tag

func (f OfferCountField) Tag() quickfix.Tag

func (OfferCountField) Value

func (f OfferCountField) Value() decimal.Decimal

type OpenInterestChangeField added in v0.1.5

type OpenInterestChangeField struct{ quickfix.FIXDecimal }

func (OpenInterestChangeField) Tag added in v0.1.5

func (OpenInterestChangeField) Value added in v0.1.5

type OpenInterestField added in v0.1.5

type OpenInterestField struct{ quickfix.FIXDecimal }

func (OpenInterestField) Tag added in v0.1.5

func (f OpenInterestField) Tag() quickfix.Tag

func (OpenInterestField) Value added in v0.1.5

func (f OpenInterestField) Value() decimal.Decimal

type OpenPriceField

type OpenPriceField struct{ quickfix.FIXDecimal }

func (OpenPriceField) Tag

func (f OpenPriceField) Tag() quickfix.Tag

func (OpenPriceField) Value

func (f OpenPriceField) Value() decimal.Decimal

type ParValueField

type ParValueField struct{ quickfix.FIXDecimal }

func (ParValueField) Tag

func (f ParValueField) Tag() quickfix.Tag

func (ParValueField) Value

func (f ParValueField) Value() decimal.Decimal

type PriceField added in v0.1.9

type PriceField struct{ quickfix.FIXDecimal }

func (PriceField) Tag added in v0.1.9

func (f PriceField) Tag() quickfix.Tag

func (PriceField) Value added in v0.1.9

func (f PriceField) Value() decimal.Decimal

type PriorClosePriceField

type PriorClosePriceField struct{ quickfix.FIXDecimal }

func (PriorClosePriceField) Tag

func (PriorClosePriceField) Value

type PriorIndexValField added in v0.1.6

type PriorIndexValField struct{ quickfix.FIXDecimal }

func (PriorIndexValField) Tag added in v0.1.6

func (PriorIndexValField) Value added in v0.1.6

type PriorOpenPriceField

type PriorOpenPriceField struct{ quickfix.FIXDecimal }

func (PriorOpenPriceField) Tag

func (PriorOpenPriceField) Value

type PriorPriceField

type PriorPriceField struct{ quickfix.FIXDecimal }

func (PriorPriceField) Tag

func (f PriorPriceField) Tag() quickfix.Tag

func (PriorPriceField) Value

func (f PriorPriceField) Value() decimal.Decimal

type PutThroughMatchPriceField

type PutThroughMatchPriceField struct{ quickfix.FIXDecimal }

func (PutThroughMatchPriceField) Tag

func (PutThroughMatchPriceField) Value

type PutThroughMatchQttyField

type PutThroughMatchQttyField struct{ quickfix.FIXDecimal }

func (PutThroughMatchQttyField) Tag

func (PutThroughMatchQttyField) Value

type PutThroughTotalTradedQttyField

type PutThroughTotalTradedQttyField struct{ quickfix.FIXDecimal }

func (PutThroughTotalTradedQttyField) Tag

func (PutThroughTotalTradedQttyField) Value

type PutThroughTotalTradedValueField

type PutThroughTotalTradedValueField struct{ quickfix.FIXDecimal }

func (PutThroughTotalTradedValueField) Tag

func (PutThroughTotalTradedValueField) Value

type QttyField added in v0.1.9

type QttyField struct{ quickfix.FIXDecimal }

func (QttyField) Tag added in v0.1.9

func (f QttyField) Tag() quickfix.Tag

func (QttyField) Value added in v0.1.9

func (f QttyField) Value() decimal.Decimal

type RatioChangeField added in v0.1.6

type RatioChangeField struct{ quickfix.FIXDecimal }

func (RatioChangeField) Tag added in v0.1.6

func (f RatioChangeField) Tag() quickfix.Tag

func (RatioChangeField) Value added in v0.1.6

func (f RatioChangeField) Value() decimal.Decimal

type ReferenceStatusField

type ReferenceStatusField struct{ quickfix.FIXString }

func (ReferenceStatusField) Tag

func (ReferenceStatusField) Value

func (f ReferenceStatusField) Value() string

type RemainForeignQttyField

type RemainForeignQttyField struct{ quickfix.FIXDecimal }

func (RemainForeignQttyField) Tag

func (RemainForeignQttyField) Value

type SecurityTradingStatusField

type SecurityTradingStatusField struct{ quickfix.FIXInt }

func (SecurityTradingStatusField) Tag

func (SecurityTradingStatusField) Value

func (f SecurityTradingStatusField) Value() int

type SellCountField

type SellCountField struct{ quickfix.FIXDecimal }

func (SellCountField) Tag

func (f SellCountField) Tag() quickfix.Tag

func (SellCountField) Value

func (f SellCountField) Value() decimal.Decimal

type SellForeignQttyField

type SellForeignQttyField struct{ quickfix.FIXDecimal }

func (SellForeignQttyField) Tag

func (SellForeignQttyField) Value

type SellForeignValueField

type SellForeignValueField struct{ quickfix.FIXDecimal }

func (SellForeignValueField) Tag

func (SellForeignValueField) Value

type StockInfo

type StockInfo struct {
	fix44.Header
	*quickfix.Body
	fix44.Trailer
	Message *quickfix.Message
}

StockInfo MsgType = SI. Gửi thông tin chi tiết về chứng khoán mà hệ thống HNX tính toán

func FromMessageToStockInfo

func FromMessageToStockInfo(m *quickfix.Message) StockInfo

FromMessage creates a StockInfo from a quickfix.Message instance

func (StockInfo) GetAdjustQtty

func (m StockInfo) GetAdjustQtty() (v float64, err quickfix.MessageRejectError)

GetAdjustQtty Tag . Dự phòng, không dùng

func (StockInfo) GetBasicPrice

func (m StockInfo) GetBasicPrice() (v float64, err quickfix.MessageRejectError)

GetBasicPrice Tag 260. Giá tham chiếu (nghiệp vụ)

func (StockInfo) GetBestBidPrice

func (m StockInfo) GetBestBidPrice() (v float64, err quickfix.MessageRejectError)

GetBestBidPrice Tag 132. Giá đặt mua tốt nhất của GD khớp lệnh (lô chẵn)

func (StockInfo) GetBestBidQtty

func (m StockInfo) GetBestBidQtty() (v float64, err quickfix.MessageRejectError)

GetBestBidQtty Tag 1321. Khối lượng đặt mua tốt nhất của GD khớp lệnh (lô chẵn)

func (StockInfo) GetBestOfferPrice

func (m StockInfo) GetBestOfferPrice() (v float64, err quickfix.MessageRejectError)

GetBestOfferPrice Tag 133. Giá đặt bán tốt nhất của GD khớp lệnh (lô chẵn)

func (StockInfo) GetBestOfferQtty

func (m StockInfo) GetBestOfferQtty() (v float64, err quickfix.MessageRejectError)

GetBestOfferQtty Tag 1331. Khối lượng đặt bán tốt nhất của GD khớp lệnh (lô chẵn)

func (StockInfo) GetBidCount

func (m StockInfo) GetBidCount() (v float64, err quickfix.MessageRejectError)

GetBidCount Tag 321. Tổng số lệnh đặt mua của GD khớp lệnh lô chẵn

func (StockInfo) GetBoardCode

func (m StockInfo) GetBoardCode() (v string, err quickfix.MessageRejectError)

GetBoardCode Tag 425 Mã bảng của chứng khoán:

-LIS_BRD_01,..: bảng niêm yết
-UPC_BRD_01,…: bảng upcom

func (StockInfo) GetBuyCount

func (m StockInfo) GetBuyCount() (v float64, err quickfix.MessageRejectError)

GetBuyCount Tag 3951. Tổng số lệnh mua khớp của GD khớp lệnh và thỏa thuân (lô chẵn và lẻ)

func (StockInfo) GetBuyForeignQtty

func (m StockInfo) GetBuyForeignQtty() (v float64, err quickfix.MessageRejectError)

GetBuyForeignQtty Tag 397. Tổng khối lượng mua khớp của NĐT NN. Áp dụng cho GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetBuyForeignValue

func (m StockInfo) GetBuyForeignValue() (v float64, err quickfix.MessageRejectError)

GetBuyForeignValue Tag 3971. Tổng giá trị mua khớp của NĐTNN. Áp dụng cho GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetCeilingPrice

func (m StockInfo) GetCeilingPrice() (v float64, err quickfix.MessageRejectError)

GetCeilingPrice Tag 332. Giá trần (nghiệp vụ)

func (StockInfo) GetCeilingPricePT

func (m StockInfo) GetCeilingPricePT() (v float64, err quickfix.MessageRejectError)

GetCeilingPricePT Tag 3321. Giá trần cho giao dịch thỏa thuận ngoài biên độ (nghiệp vụ)

func (StockInfo) GetClosePrice

func (m StockInfo) GetClosePrice() (v float64, err quickfix.MessageRejectError)

GetClosePrice Tag 139. Giá đóng cửa (nghiệp vụ)

func (StockInfo) GetCouponRate

func (m StockInfo) GetCouponRate() (v float64, err quickfix.MessageRejectError)

Tag 223. Dự phòng, không dùng

func (StockInfo) GetCurrentPrice

func (m StockInfo) GetCurrentPrice() (v float64, err quickfix.MessageRejectError)

GetCurrentPrice Tag 255. Giá khớp dự kiến của GD khớp lệnh (lô chẵn)

func (StockInfo) GetCurrentQtty

func (m StockInfo) GetCurrentQtty() (v float64, err quickfix.MessageRejectError)

GetCurrentQtty Tag 2551. Khối lượng khớp dự kiến của GD khớp lệnh (lô chẵn)

func (StockInfo) GetDateNo

func (m StockInfo) GetDateNo() (v float64, err quickfix.MessageRejectError)

GetDateNo Tag 17. Phiên giao dịch thứ ( kể từ ngày niêm yết)

func (StockInfo) GetFirstTradingDate added in v0.1.5

func (m StockInfo) GetFirstTradingDate() (v string, err quickfix.MessageRejectError)

GetFirstTradingDate Tag 802. Ngày giao dịch đầu tiên theo định dạng dd/MM/yyyy :v

func (StockInfo) GetFloorPrice

func (m StockInfo) GetFloorPrice() (v float64, err quickfix.MessageRejectError)

GetFloorPrice Tag 333. Giá sàn (nghiệp vụ)

func (StockInfo) GetFloorPricePT

func (m StockInfo) GetFloorPricePT() (v float64, err quickfix.MessageRejectError)

GetFloorPricePT Tag 3331. Giá sàn cho giao dịch thỏa thuận ngoài biên độ (nghiệp vụ)

func (StockInfo) GetHighestPrice

func (m StockInfo) GetHighestPrice() (v float64, err quickfix.MessageRejectError)

GetHighestPrice Tag 266. Giá thực hiện cao nhất của GD khớp lệnh (lô chẵn)

func (StockInfo) GetIssueDate

func (m StockInfo) GetIssueDate() (v string, err quickfix.MessageRejectError)

GetIssueDate Tag 225. Ngày phát hành theo định dạng yyyyMMdd

func (StockInfo) GetIssuer

func (m StockInfo) GetIssuer() (v string, err quickfix.MessageRejectError)

GetIssuer Tag 106. Tổ chức phát hành

func (StockInfo) GetLastTradingDate added in v0.1.5

func (m StockInfo) GetLastTradingDate() (v string, err quickfix.MessageRejectError)

GetLastTradingDate Tag 803. Ngày giao dịch cuối cùng theo định dạng dd/MM/yyyy

func (StockInfo) GetLowestPrice

func (m StockInfo) GetLowestPrice() (v float64, err quickfix.MessageRejectError)

GetLowestPrice Tag 2661. Giá thực hiện thấp nhất của GD khớp lệnh (lô chẵn)

func (StockInfo) GetMatchPrice

func (m StockInfo) GetMatchPrice() (v float64, err quickfix.MessageRejectError)

GetMatchPrice Tag 31. Giá khớp gần nhất của GD khớp lệnh lô chẵn

func (StockInfo) GetMatchQtty

func (m StockInfo) GetMatchQtty() (v float64, err quickfix.MessageRejectError)

GetMatchQtty Tag 32. KL khớp gần của GD khớp lệnh lô chăn

func (StockInfo) GetMatchValue

func (m StockInfo) GetMatchValue() (v float64, err quickfix.MessageRejectError)

GetMatchValue Tag 310. Giá trị khớp lệnh gần nhất của GD khớp lệnh lô chẵn

func (StockInfo) GetMaturityDate

func (m StockInfo) GetMaturityDate() (v string, err quickfix.MessageRejectError)

Tag 541. Dự phòng, không dùng

func (StockInfo) GetMidPx

func (m StockInfo) GetMidPx() (v float64, err quickfix.MessageRejectError)

GetMidPx Tag 631. Giá bình quân (nghiệp vụ)

func (StockInfo) GetNormalTotalTradedQtty

func (m StockInfo) GetNormalTotalTradedQtty() (v float64, err quickfix.MessageRejectError)

GetNormalTotalTradedQtty Tag 391. Tổng khối lượng giao dịch thông thường của GD khớp lệnh lô chẵn

func (StockInfo) GetNormalTotalTradedValue

func (m StockInfo) GetNormalTotalTradedValue() (v float64, err quickfix.MessageRejectError)

GetNormalTotalTradedValue Tag 392.

func (StockInfo) GetOfferCount

func (m StockInfo) GetOfferCount() (v float64, err quickfix.MessageRejectError)

GetOfferCount Tag 320. Tổng số lệnh đặt bán của GD khớp lệnh lô chẵn

func (StockInfo) GetOpenInterest added in v0.1.5

func (m StockInfo) GetOpenInterest() (v float64, err quickfix.MessageRejectError)

GetOpenInterest Tag 801 Khối lượng mở OI, cuối ngày mới có giá trị

func (StockInfo) GetOpenInterestChange added in v0.1.5

func (m StockInfo) GetOpenInterestChange() (v float64, err quickfix.MessageRejectError)

GetOpenInterestChange Tag 8011 Thay đổi khối lượng mở OI (%), cuối ngày mới có giá trị

func (StockInfo) GetOpenPrice

func (m StockInfo) GetOpenPrice() (v float64, err quickfix.MessageRejectError)

GetOpenPrice Tag 137. Giá mở cửa (nghiệp vụ)

func (StockInfo) GetParValue

func (m StockInfo) GetParValue() (v float64, err quickfix.MessageRejectError)

GetParValue Tag 334. Mệnh giá chứng khoán

func (StockInfo) GetPriorClosePrice

func (m StockInfo) GetPriorClosePrice() (v float64, err quickfix.MessageRejectError)

GetPriorClosePrice Tag 140. Giá đóng cửa phiên trước phiên giao dịch hiện tại

func (StockInfo) GetPriorOpenPrice

func (m StockInfo) GetPriorOpenPrice() (v float64, err quickfix.MessageRejectError)

GetPriorOpenPrice Tag 138. Giá mở cửa phiên giao dịch trước phiên giao dịch hiện tại

func (StockInfo) GetPriorPrice

func (m StockInfo) GetPriorPrice() (v float64, err quickfix.MessageRejectError)

GetPriorPrice Tag 277. Giá khớp lệnh của phiên trước đó. Chỉ tính với khớp lệnh thông thường.

func (StockInfo) GetPutThroughMatchPrice

func (m StockInfo) GetPutThroughMatchPrice() (v float64, err quickfix.MessageRejectError)

GetPutThroughMatchPrice Tag 3931. Giá thực hiện gần nhất của giao dịch thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetPutThroughMatchQtty

func (m StockInfo) GetPutThroughMatchQtty() (v float64, err quickfix.MessageRejectError)

GetPutThroughMatchQtty Tag 393. Khối lượng thực hiện gần nhất của giao dịch thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetPutThroughTotalTradedQtty

func (m StockInfo) GetPutThroughTotalTradedQtty() (v float64, err quickfix.MessageRejectError)

GetPutThroughTotalTradedQtty Tag 394. Tổng khối lượng của giao dịch thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetPutThroughTotalTradedValue

func (m StockInfo) GetPutThroughTotalTradedValue() (v float64, err quickfix.MessageRejectError)

GetPutThroughTotalTradedValue Tag 3941. Tổng giá trị của giao dịch thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetReferenceStatus

func (m StockInfo) GetReferenceStatus() (v string, err quickfix.MessageRejectError)

GetReferenceStatus Tag 232. Trạng thái thực hiện quyền ảnh hưởng tới giá chứng khoán:

0: Không xảy ra
1:Trả CT bằng tiền
2:Trả cổ tức bằng CP/CP thưởng
3: Phát hành CP cho cổ đông hiện hữu
4: Trả cổ tức bằng CP/CP thưởng,phát hành CP cho cổ đông hiện hữu
5: Trả cổ tức bằng tiền, bằng CP/CP thưởng, phát hành CP cho cổ đông hiện hữu
6: Niêm yết bổ sung
7: Giảm vốn
8: Trả cổ tức bằng tiền, trả cổ tức bằng CP/CP thưởng
9: Trả cổ tức bằng tiền, phát hành CP cho cổ đông hiện hữu
10: Thay đổi tỷ lệ Free Float
11: Họp đại cổ đông

func (StockInfo) GetRemainForeignQtty

func (m StockInfo) GetRemainForeignQtty() (v float64, err quickfix.MessageRejectError)

Tag 3301. Số lượng còn lại cho phép NDTNN đặt lệnh mua

func (StockInfo) GetSecurityDesc

func (m StockInfo) GetSecurityDesc() (v string, err quickfix.MessageRejectError)

GetSecurityDesc Tag 107. Mô tả thêm về chứng khoán

func (StockInfo) GetSecurityTradingStatus

func (m StockInfo) GetSecurityTradingStatus() (v int, err quickfix.MessageRejectError)

GetSecurityTradingStatus Tag 326. Trạng thái chứng khoán:

= 0: Bình thường
= 1: Chứng khoán không được giao dịch trong ngày
= 2: Ngừng giao dịch
= 6: Hủy niêm yết
= 7: Niêm yết mới
= 8: Sắp hủy niêm yếtGetTradingSessionID
= 10: Tạm ngừng giao dịch giữa phiên
= 25: Giao dịch đặc biệt

func (StockInfo) GetSecurityType

func (m StockInfo) GetSecurityType() (v string, err quickfix.MessageRejectError)

GetSecurityType Tag 167. Loại chứng khoán:

ST: Cổ phiếu
BO: Trái phiếu
MF: Chứng chỉ quỹ
EF: Exchange-Traded Funds
FU: Future
OP: Option

func (StockInfo) GetSellCount

func (m StockInfo) GetSellCount() (v float64, err quickfix.MessageRejectError)

GetSellCount Tag 3961. Tổng số lệnh bán khớp của GD khớp lệnh và thỏa thuân (lô chẵn và lẻ)

func (StockInfo) GetSellForeignQtty

func (m StockInfo) GetSellForeignQtty() (v float64, err quickfix.MessageRejectError)

Tag 398. Tổng khối lượng bán khớp của NĐT NN. Áp dụng cho GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetSellForeignValue

func (m StockInfo) GetSellForeignValue() (v float64, err quickfix.MessageRejectError)

Tag 3981. Tổng giá trị bán khớp của NĐT NN. Áp dụng cho GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetSymbol

func (m StockInfo) GetSymbol() (v string, err quickfix.MessageRejectError)

GetSymbol Tag 55

func (StockInfo) GetTime

func (m StockInfo) GetTime() (v string, err quickfix.MessageRejectError)

GetTime Tag 399. Thời gian theo định dạng HH:mm:ss

func (StockInfo) GetTotalBidQtty

func (m StockInfo) GetTotalBidQtty() (v float64, err quickfix.MessageRejectError)

GetTotalBidQtty Tag 134. Tổng KL đặt mua của GD khớp lệnh lô chẵn (trừ kl sửa, hủy)

func (StockInfo) GetTotalBidQttyOdd

func (m StockInfo) GetTotalBidQttyOdd() (v float64, err quickfix.MessageRejectError)

Tag 1341. Tổng KL đặt mua của GD khớp lệnh lô lẻ (trừ sửa, hủy)

func (StockInfo) GetTotalBuyTradingQtty

func (m StockInfo) GetTotalBuyTradingQtty() (v float64, err quickfix.MessageRejectError)

GetTotalBuyTradingQtty Tag 395. Tổng khối lượng mua khớp của GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetTotalBuyTradingValue

func (m StockInfo) GetTotalBuyTradingValue() (v float64, err quickfix.MessageRejectError)

GetTotalBuyTradingValue Tag 3952. Tổng giá trị mua khớp của GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetTotalListingQtty

func (m StockInfo) GetTotalListingQtty() (v float64, err quickfix.MessageRejectError)

GetTotalListingQtty Tag 109. Khối lượng niêm yết

func (StockInfo) GetTotalOfferQtty

func (m StockInfo) GetTotalOfferQtty() (v float64, err quickfix.MessageRejectError)

GetTotalOfferQtty Tag 135. Tổng KL đặt bán của GD khớp lệnh lô chẵn (trừ kl sửa, hủy)

func (StockInfo) GetTotalOfferQttyOdd

func (m StockInfo) GetTotalOfferQttyOdd() (v float64, err quickfix.MessageRejectError)

Tag 1351. Tổng KL đặt bán của GD khớp lệnh lô lẻ (trừ sửa hủy)

func (StockInfo) GetTotalSellTradingQtty

func (m StockInfo) GetTotalSellTradingQtty() (v float64, err quickfix.MessageRejectError)

GetTotalSellTradingQtty Tag 396. Tổng khối lượng bán khớp của GD khớp lệnh và thỏa thuân (lô chẵn và lẻ)

func (StockInfo) GetTotalSellTradingValue

func (m StockInfo) GetTotalSellTradingValue() (v float64, err quickfix.MessageRejectError)

GetTotalSellTradingValue Tag 3962. Tổng giá trị bán khớp của GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetTotalValueTraded

func (m StockInfo) GetTotalValueTraded() (v float64, err quickfix.MessageRejectError)

GetTotalValueTraded Tag 3871. Tổng giá trị giao dịch của GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetTotalVolumeTraded

func (m StockInfo) GetTotalVolumeTraded() (v float64, err quickfix.MessageRejectError)

GetTotalVolumeTraded Tag 387. Tổng KL giao dịch của GD khớp lệnh và thỏa thuận (lô chẵn và lẻ)

func (StockInfo) GetTradingDate

func (m StockInfo) GetTradingDate() (v string, err quickfix.MessageRejectError)

GetTradingDate Tag 388. Ngày giao dịch hiện tại theo định dạng yyyyMMdd

func (StockInfo) GetTradingUnit

func (m StockInfo) GetTradingUnit() (v float64, err quickfix.MessageRejectError)

GetTradingUnit Tag 400. Đơn vị giao dịch nhỏ nhất

func (StockInfo) GetUnderlying added in v0.1.5

func (m StockInfo) GetUnderlying() (v string, err quickfix.MessageRejectError)

GetUnderlying Tag 800 Mã tài sản cơ sở

func (StockInfo) ToMessage

func (m StockInfo) ToMessage() *quickfix.Message

ToMessage returns a quickfix.Message instance

type TimeField

type TimeField struct{ quickfix.FIXString }

func (TimeField) Tag

func (f TimeField) Tag() quickfix.Tag

func (TimeField) Value

func (f TimeField) Value() string

type TopNPrice

type TopNPrice struct {
	fix44.Header
	*quickfix.Body
	fix44.Trailer
	Message *quickfix.Message
}

TopNPrice MsgType = TP. Gồm nhiều bước giá do hệ thống HNX tính toán

func FromMessageToTopNPrice

func FromMessageToTopNPrice(m *quickfix.Message) TopNPrice

FromMessage creates a TopNPrice from a quickfix.Message instance

func (TopNPrice) GetBidAsks

func (m TopNPrice) GetBidAsks() (
	v BidAskRepeatingGroup, err quickfix.MessageRejectError)

func (TopNPrice) GetBoardCode

func (m TopNPrice) GetBoardCode() (v string, err quickfix.MessageRejectError)

GetBoardCode Tag 425 Mã bảng của chứng khoán:

-LIS_BRD_01,..: bảng niêm yết
-UPC_BRD_01,…: bảng upcom

func (TopNPrice) GetNOTopPrice

func (m TopNPrice) GetNOTopPrice() (v float64, err quickfix.MessageRejectError)

Tag 555. Số mức giá tốt nhất

func (TopNPrice) GetSymbol

func (m TopNPrice) GetSymbol() (v string, err quickfix.MessageRejectError)

GetSymbol Tag 55

func (TopNPrice) ToMessage

func (m TopNPrice) ToMessage() *quickfix.Message

ToMessage returns a quickfix.Message instance

type TotalBidQttyOddField

type TotalBidQttyOddField struct{ quickfix.FIXDecimal }

func (TotalBidQttyOddField) Tag

func (TotalBidQttyOddField) Value

type TotalBuyTradingQttyField

type TotalBuyTradingQttyField struct{ quickfix.FIXDecimal }

func (TotalBuyTradingQttyField) Tag

func (TotalBuyTradingQttyField) Value

type TotalBuyTradingValueField

type TotalBuyTradingValueField struct{ quickfix.FIXDecimal }

func (TotalBuyTradingValueField) Tag

func (TotalBuyTradingValueField) Value

type TotalListingQttyField

type TotalListingQttyField struct{ quickfix.FIXDecimal }

func (TotalListingQttyField) Tag

func (TotalListingQttyField) Value

type TotalOfferQttyOddField

type TotalOfferQttyOddField struct{ quickfix.FIXDecimal }

func (TotalOfferQttyOddField) Tag

func (TotalOfferQttyOddField) Value

type TotalQttyField added in v0.1.6

type TotalQttyField struct{ quickfix.FIXDecimal }

func (TotalQttyField) Tag added in v0.1.6

func (f TotalQttyField) Tag() quickfix.Tag

func (TotalQttyField) Value added in v0.1.6

func (f TotalQttyField) Value() decimal.Decimal

type TotalSellTradingQttyField

type TotalSellTradingQttyField struct{ quickfix.FIXDecimal }

func (TotalSellTradingQttyField) Tag

func (TotalSellTradingQttyField) Value

type TotalSellTradingValueField

type TotalSellTradingValueField struct{ quickfix.FIXDecimal }

func (TotalSellTradingValueField) Tag

func (TotalSellTradingValueField) Value

type TotalValueField added in v0.1.6

type TotalValueField struct{ quickfix.FIXDecimal }

func (TotalValueField) Tag added in v0.1.6

func (f TotalValueField) Tag() quickfix.Tag

func (TotalValueField) Value added in v0.1.6

func (f TotalValueField) Value() decimal.Decimal

type TotalValueTradedField

type TotalValueTradedField struct{ quickfix.FIXDecimal }

func (TotalValueTradedField) Tag

func (TotalValueTradedField) Value

type TradingDateField

type TradingDateField struct{ quickfix.FIXString }

func (TradingDateField) Tag

func (f TradingDateField) Tag() quickfix.Tag

func (TradingDateField) Value

func (f TradingDateField) Value() string

type TradingUnit

type TradingUnit struct{ quickfix.FIXDecimal }

func (TradingUnit) Tag

func (f TradingUnit) Tag() quickfix.Tag

func (TradingUnit) Value

func (f TradingUnit) Value() decimal.Decimal

type UnderlyingField added in v0.1.5

type UnderlyingField struct{ quickfix.FIXString }

func (UnderlyingField) Tag added in v0.1.5

func (f UnderlyingField) Tag() quickfix.Tag

func (UnderlyingField) Value added in v0.1.5

func (f UnderlyingField) Value() string

type ValueField added in v0.1.6

type ValueField struct{ quickfix.FIXDecimal }

func (ValueField) Tag added in v0.1.6

func (f ValueField) Tag() quickfix.Tag

func (ValueField) Value added in v0.1.6

func (f ValueField) Value() decimal.Decimal

Jump to

Keyboard shortcuts

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