Documentation ¶
Index ¶
- func ModifyMsg(msg *quickfix.Message)
- type Config
- type FixAPI
- func (f FixAPI) AccountSummary(senderCompID, targetCompID string) error
- func (f FixAPI) CancelOrder(cloID, symbol, orderQty string, side enum.Side) error
- func (f FixAPI) MarketData(marketDepth int, symbol, sendercompID, targetCompID string) error
- func (f FixAPI) NewOrder(symbol, orderQty, account, price, stopPx, sendercompID, targetCompID string, ...) error
- func (f FixAPI) OrderMassStatus(sendercompID, targetCompID string, reqType enum.MassStatusReqType) error
- func (f FixAPI) OrderStatus(senderCompID, targetCompID, symbol string) error
- func (f FixAPI) ReplaceOrder(origClo, cloID string, side enum.Side, ordType enum.OrdType) error
- func (f FixAPI) Run() (err error)
- func (f FixAPI) SecurityList(sendercompID, targetCompID string) error
- func (f FixAPI) SecurityListCFI(cfi, sendercompID, targetCompID string, secList enum.SecurityListRequestType) error
- func (f FixAPI) SecurityListSymbol(sym, sendercompID, targetCompID string) error
- func (f FixAPI) Stop()
- func (f FixAPI) TestRequest(requestID string) error
- func (f FixAPI) TradesCapture(sendercompID, targetCompID string, startTime, stopTime time.Time) error
- func (f FixAPI) TradesCaptureStopDate(targetCompID, sendercompID, stopDate string) error
- func (f FixAPI) TradesMargin(symbol, account, currency, sendercompID, targetCompID string, ...) error
- type TradeClient
- func (t TradeClient) FromAdmin(msg *quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError)
- func (t TradeClient) FromApp(msg *quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError)
- func (t TradeClient) OnCreate(sessionID quickfix.SessionID)
- func (t TradeClient) OnLogon(sessionID quickfix.SessionID)
- func (t TradeClient) OnLogout(sessionID quickfix.SessionID)
- func (t TradeClient) ToAdmin(msg *quickfix.Message, sessionID quickfix.SessionID)
- func (t TradeClient) ToApp(msg *quickfix.Message, sessionID quickfix.SessionID) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.0.4
type Config struct { BeginString string `env:"FIX_BEGIN_STRING"` SenderCompID string `env:"FIX_SENDER_COMP_ID"` TargetCompID string `env:"FIX_TARGET_COMP_ID"` ConnectionType string `env:"FIX_CONNECTION_TYPE"` StartTime string `env:"FIX_START_TIME"` EndTime string `env:"FIX_END_TIME"` HeartbeatInterval int `env:"FIX_HEARTBEAT_INTERVAL"` SocketConnectPort int `env:"FIX_SOCKET_CONNECT_PORT"` SocketConnectHost string `env:"FIX_SOCKET_CONNECT_HOST"` ReconnectInterval int `env:"FIX_RECONNECT_INTERVAL"` StoreFactoryMongoURI string `env:"FIX_STORE_FACTORY_MONGO_URI"` }
Config structure for environment variables
type FixAPI ¶
type FixAPI struct { RespChan chan string // contains filtered or unexported fields }
FixAPI struct provide communication with xnt services
func (FixAPI) AccountSummary ¶
AccountSummary request FIX44
func (FixAPI) CancelOrder ¶
CancelOrder request FIX44
func (FixAPI) MarketData ¶
MarketData ...
func (FixAPI) NewOrder ¶
func (f FixAPI) NewOrder(symbol, orderQty, account, price, stopPx, sendercompID, targetCompID string, ordType enum.OrdType) error
NewOrder request FIX44
func (FixAPI) OrderMassStatus ¶
func (f FixAPI) OrderMassStatus(sendercompID, targetCompID string, reqType enum.MassStatusReqType) error
OrderMassStatus request FIX44
func (FixAPI) OrderStatus ¶
OrderStatus request FIX44
func (FixAPI) ReplaceOrder ¶
ReplaceOrder request FIX44
func (FixAPI) SecurityList ¶
SecurityList request FIX44
func (FixAPI) SecurityListCFI ¶
func (f FixAPI) SecurityListCFI(cfi, sendercompID, targetCompID string, secList enum.SecurityListRequestType) error
SecurityListCFI request FIX44
func (FixAPI) SecurityListSymbol ¶
SecurityListSymbol request FIX44
func (FixAPI) TradesCapture ¶
func (f FixAPI) TradesCapture(sendercompID, targetCompID string, startTime, stopTime time.Time) error
TradesCapture request 44
func (FixAPI) TradesCaptureStopDate ¶
TradesCaptureStopDate request 44
type TradeClient ¶
type TradeClient struct {
// contains filtered or unexported fields
}
TradeClient implements the quickfix.Application interface
func (TradeClient) FromAdmin ¶
func (t TradeClient) FromAdmin( msg *quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError)
FromAdmin implemented as part of Application interface
func (TradeClient) FromApp ¶
func (t TradeClient) FromApp(msg *quickfix.Message, sessionID quickfix.SessionID) (reject quickfix.MessageRejectError)
FromApp implemented as part of Application interface. This is the callback for all Application level messages from the counter party.
func (TradeClient) OnCreate ¶
func (t TradeClient) OnCreate(sessionID quickfix.SessionID)
OnCreate implemented as part of Application interface
func (TradeClient) OnLogon ¶
func (t TradeClient) OnLogon(sessionID quickfix.SessionID)
OnLogon implemented ƒas part of Application interface
func (TradeClient) OnLogout ¶
func (t TradeClient) OnLogout(sessionID quickfix.SessionID)
OnLogout implemented as part of Application interface