AlgoTraderAlgoTrader Documentation

Chapter 8. Adapters

8.1. Bloomberg
8.2. Currenex
8.3. DukasCopy
8.4. Exante
8.5. EzeSoft/RealTick
8.6. Fix Interface
8.7. Fortex
8.8. FXCM
8.9. IB Native Interface
8.10. JP Morgan
8.11. LMAX
8.12. Nexus Prime
8.13. PrimeXM
8.14. Quandl
8.15. QuantHouse
8.16. SocGen
8.17. Trading Technologies
8.18. UBS
8.19. Binance
8.20. Bitfinex
8.21. Bitflyer
8.22. BitMEX
8.23. Bitstamp
8.24. CoinAPI
8.25. Coinbase
8.26. CoinMarketCap

The Bloomberg infrastructure consists of the following classes:


The Currenex infrastructure consists of the following classes:


The DukasCopy infrastructure consists of the following classes:


The Exante infrastructure consists of the following classes:


The EzeSoft/RealTick infrastructure consists of the following classes:


The Fix infrastructure consists of the following classes:

Table 8.6. Fix Infrastructure

Class / InterfaceDescription
Session A Session represents a connection to a broker / exchange / market data provider
Application For each Session an Application object is created. It will forward incoming messages to the corresponding MessageHandlers
DefaultFixApplication
FixApplicationFactory Is responsible for the creation of Applications
DefaultFixApplicationFactory
FixMultiApplicationSessionFactory

Creates a Session and Application using the specified FixApplicationFactory according to the following steps:

  • lookup the FixApplicationFactory by its name

  • create an Application

  • create a DefaultSessionFactory

  • create a Session

ExternalSessionStateHolder Represents the current state of a Session (i.e. DISCONNECTED, CONNECTED, LOGGED_ON and SUBSCRIBED)
DefaultFixSessionStateHolder
MarketDataFixSessionStateHolder A ExternalSessionStateHolder for market data sessions that will subscribe to securities as soon as the session is logged on.
FixOrderIdGenerator Generator for Fix Order Ids. The default implementation reads the last Order Ids from the Fix log on start-up.
DefaultFixOrderIdGenerator
FixAdapter Management Adapter for the Fix environment. Allows the creation of dynamic sessions, sending Messages and managing Order Ids.
DefaultFixAdapter
ManagedFixAdapter Manageable implementation of a FixAdapter (based on JMX)
FixEventScheduler QuickFix/J currently supports daily sessions (with a daily session 7 times a week) and weekly sessions (with one weekly session). However some brokers (e.g. JP Morgan) use daily sessions during workdays. To accomplish this scenario, AlgoTrader allows creation of a weekly logon/logoff event (e.g. Mo 08:00:00 and Fr 18:00:00) using Esper Statements
DefaultFixEventScheduler
EventPattern
FixSocketInitiatorFactoryBean A Spring Factory Bean that creates the SocketInitiator necessary for all Fix Sessions.
Fix42MarketDataMessageHandler Message Handler for incoming Fix market data messages. These classes need to be sub classed by the corresponding market data interface. Messages are propagated into the Esper Engine.
Fix44MarketDataMessageHandler
Fix42OrderMessageHandler Message Handler for incoming Fix Execution Reports. These classes need to be sub classed by the corresponding order interface. Messages are propagated into the Esper Engine.
Fix44OrderMessageHandler

The Fortex infrastructure consists of the following classes:


The FXCM infrastructure consists of the following classes:


The IB infrastructure consists of the following classes:


The JP Morgan infrastructure consists of the following classes:


The LMAX infrastructure consists of the following classes:


The Nexus Prime infrastructure consists of the following classes:


The PrimeXM infrastructure consists of the following classes:


The Quandl infrastructure consists of the following classes:


The QuantHouse infrastructure consists of the following classes:


The SocGen infrastructure consists of the following classes:


The Trading Technologies infrastructure consists of the following classes:


The UBS infrastructure consists of the following classes: