Technology weblogIT-Essence |
|
Thursday Jan 05, 2012
A collection of useful FIX protocol links
This post summarizes some useful links I have collected during my experiences with QuickFix/J:
Posted at 04:21PM Jan 05, 2012 by Zeger Hendrikse in Finance | Comments[0] Creating a FIX market data request message
This post details the composition of a FIX 4.4 market data request message using the QuickFix/J framework ( private static final MessageFactory messageFactory = new quickfix.fix44.MessageFactory(); private Message createMarketDataRequest(SessionID sessionIds, List Posted at 03:56PM Jan 05, 2012 by Zeger Hendrikse in Finance | Comments[0] Reading repeating groups in FIX market data reponse
This short post details how to read out repeating groups in a FIX 4.4 final String symbol = message.getString(Symbol.FIELD);
final List<Group> groups = message.getGroups(NoMDEntries.FIELD);
BigDecimal bidPrice = null;
BigDecimal offerPrice = null;
BigDecimal bidSize = null;
BigDecimal offerSize = null;
for (final Group oneGroup : groups) {
final char type = oneGroup.getChar(MDEntryType.FIELD);
if (type == MDEntryType.OFFER) {
offerPrice = oneGroup.getDecimal(MDEntryPx.FIELD);
offerSize = oneGroup.getDecimal(MDEntrySize.FIELD);
} else if (type == MDEntryType.BID) {
bidPrice = oneGroup.getDecimal(MDEntryPx.FIELD);
bidSize = oneGroup.getDecimal(MDEntrySize.FIELD);
}
}
Posted at 11:29AM Jan 05, 2012 by Zeger Hendrikse in Finance | Comments[0] |
|
||||