Documentation ¶
Index ¶
- func BuildMassCancelRequest(side enum.Side, symbol string, account string) quickfix.Messagable
- type Handler
- type Manager
- type OrderHandler
- func (o *OrderHandler) BuildAllCancelRequest(symbols []string) quickfix.Messagable
- func (o *OrderHandler) BuildMassCancelRequest() quickfix.Messagable
- func (o *OrderHandler) BuildOrderRequest() (quickfix.Messagable, string)
- func (o *OrderHandler) CanCancelAllOrdersInOnRequest() bool
- func (o *OrderHandler) GetAccount() string
- func (o *OrderHandler) GetLastOrderId() string
- func (o *OrderHandler) GetMessageType() string
- func (o *OrderHandler) GetSide() enum.Side
- func (o *OrderHandler) GetSymbol() string
- func (o *OrderHandler) GetTimestamp() time.Time
- func (o *OrderHandler) UpdateClientOrderId(newId string)
- type QuoteHandler
- func (q *QuoteHandler) BuildAllCancelRequest(symbols []string) quickfix.Messagable
- func (q *QuoteHandler) BuildMassCancelRequest() quickfix.Messagable
- func (q *QuoteHandler) BuildOrderRequest() (quickfix.Messagable, string)
- func (q *QuoteHandler) CanCancelAllOrdersInOnRequest() bool
- func (q *QuoteHandler) GetAccount() string
- func (q *QuoteHandler) GetLastOrderId() string
- func (q *QuoteHandler) GetMessageType() string
- func (q *QuoteHandler) GetSide() enum.Side
- func (q *QuoteHandler) GetSymbol() string
- func (q *QuoteHandler) GetTimestamp() time.Time
- func (q *QuoteHandler) UpdateClientOrderId(newId string)
- type SampledManager
- type SenderApp
- func (a *SenderApp) Connect() error
- func (a *SenderApp) FromAdmin(message *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
- func (a *SenderApp) FromApp(message *quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError)
- func (a *SenderApp) OnCreate(sessionID quickfix.SessionID)
- func (a *SenderApp) OnLogon(sessionID quickfix.SessionID)
- func (a *SenderApp) OnLogout(sessionID quickfix.SessionID)
- func (a *SenderApp) OnQuoteStatusReport(msg quotestatusreport.QuoteStatusReport, sessionID quickfix.SessionID) quickfix.MessageRejectError
- func (a *SenderApp) Send(message quickfix.Messagable) error
- func (a *SenderApp) ToAdmin(message *quickfix.Message, sessionID quickfix.SessionID)
- func (a *SenderApp) ToApp(message *quickfix.Message, sessionID quickfix.SessionID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMassCancelRequest ¶
Types ¶
type Handler ¶
type Handler interface { GetSymbol() string GetSide() enum.Side GetLastOrderId() string GetAccount() string GetTimestamp() time.Time GetMessageType() string UpdateClientOrderId(newId string) CanCancelAllOrdersInOnRequest() bool BuildAllCancelRequest(symbols []string) quickfix.Messagable BuildMassCancelRequest() quickfix.Messagable BuildOrderRequest() (quickfix.Messagable, string) }
type Manager ¶
type Manager struct { Closed chan bool // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) CancelAllOrders ¶
func (m *Manager) CancelAllOrders()
type OrderHandler ¶
type OrderHandler struct {
// contains filtered or unexported fields
}
func NewOrderHandler ¶
func (*OrderHandler) BuildAllCancelRequest ¶
func (o *OrderHandler) BuildAllCancelRequest(symbols []string) quickfix.Messagable
func (*OrderHandler) BuildMassCancelRequest ¶
func (o *OrderHandler) BuildMassCancelRequest() quickfix.Messagable
func (*OrderHandler) BuildOrderRequest ¶
func (o *OrderHandler) BuildOrderRequest() (quickfix.Messagable, string)
func (*OrderHandler) CanCancelAllOrdersInOnRequest ¶
func (o *OrderHandler) CanCancelAllOrdersInOnRequest() bool
func (*OrderHandler) GetAccount ¶
func (o *OrderHandler) GetAccount() string
func (*OrderHandler) GetLastOrderId ¶
func (o *OrderHandler) GetLastOrderId() string
func (*OrderHandler) GetMessageType ¶
func (o *OrderHandler) GetMessageType() string
func (*OrderHandler) GetSide ¶
func (o *OrderHandler) GetSide() enum.Side
func (*OrderHandler) GetSymbol ¶
func (o *OrderHandler) GetSymbol() string
func (*OrderHandler) GetTimestamp ¶
func (o *OrderHandler) GetTimestamp() time.Time
func (*OrderHandler) UpdateClientOrderId ¶
func (o *OrderHandler) UpdateClientOrderId(newId string)
type QuoteHandler ¶
type QuoteHandler struct {
// contains filtered or unexported fields
}
func NewQuoteHandler ¶
func NewQuoteHandler(symbol string, bidPrice, offerPrice float64, account string) *QuoteHandler
func (*QuoteHandler) BuildAllCancelRequest ¶
func (q *QuoteHandler) BuildAllCancelRequest(symbols []string) quickfix.Messagable
func (*QuoteHandler) BuildMassCancelRequest ¶
func (q *QuoteHandler) BuildMassCancelRequest() quickfix.Messagable
func (*QuoteHandler) BuildOrderRequest ¶
func (q *QuoteHandler) BuildOrderRequest() (quickfix.Messagable, string)
func (*QuoteHandler) CanCancelAllOrdersInOnRequest ¶
func (q *QuoteHandler) CanCancelAllOrdersInOnRequest() bool
func (*QuoteHandler) GetAccount ¶
func (q *QuoteHandler) GetAccount() string
func (*QuoteHandler) GetLastOrderId ¶
func (q *QuoteHandler) GetLastOrderId() string
func (*QuoteHandler) GetMessageType ¶
func (q *QuoteHandler) GetMessageType() string
func (*QuoteHandler) GetSide ¶
func (q *QuoteHandler) GetSide() enum.Side
func (*QuoteHandler) GetSymbol ¶
func (q *QuoteHandler) GetSymbol() string
func (*QuoteHandler) GetTimestamp ¶
func (q *QuoteHandler) GetTimestamp() time.Time
func (*QuoteHandler) UpdateClientOrderId ¶
func (q *QuoteHandler) UpdateClientOrderId(newId string)
type SampledManager ¶
type SampledManager struct { Closed chan bool // contains filtered or unexported fields }
func NewSampledManager ¶
func (*SampledManager) CancelAllOrders ¶
func (m *SampledManager) CancelAllOrders()
func (*SampledManager) Start ¶
func (m *SampledManager) Start()
type SenderApp ¶
type SenderApp struct { // Logger. fixutils.QuickFixAppMessageLogger // Message router. *quickfix.MessageRouter // ExecReportNotification forwards received fix message to subscriber. ExecReportNotification chan executionreport.ExecutionReport // QuoteStatusReportNotification forwards received fix message to subscriber. QuoteStatusReportNotification chan quotestatusreport.QuoteStatusReport // Closed is a chan to notify when application is closed properly. Closed chan bool // contains filtered or unexported fields }
func NewOrderSender ¶
func NewOrderSender( ctx context.Context, quickFixAppMessageLogger fixutils.QuickFixAppMessageLogger, settings *quickfix.Settings, sessionConfig *config.Session) (*SenderApp, error)
NewOrderSender creates an Application which implements quickfix.Application.
func (*SenderApp) FromAdmin ¶
func (a *SenderApp) FromAdmin(message *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError
FromAdmin is called when receiving a FIX message regarding the FIX protocol, e.g.: LOGIN, LOGOUT, HEARTBEAT, TEST ... etc.
func (*SenderApp) FromApp ¶
func (a *SenderApp) FromApp(message *quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError)
FromApp is called when receiving a FIX message that is not considered "Admin".
func (*SenderApp) OnCreate ¶
OnCreate is called when a session is created. Note that sessions are created upon initiator/acceptor start and not when a connection is established.
func (*SenderApp) OnQuoteStatusReport ¶
func (a *SenderApp) OnQuoteStatusReport(msg quotestatusreport.QuoteStatusReport, sessionID quickfix.SessionID) quickfix.MessageRejectError
Click to show internal directories.
Click to hide internal directories.