public class FIXProcessor extends RowProcessor
| Constructor and Description |
|---|
FIXProcessor(OrderProcessor inProcessor,
BrokerID inBrokerID,
FIXVersion inFIXVersion)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addDefaults(quickfix.Message message) |
protected quickfix.Field<?> |
getQuickFixFieldFromName(String inFieldName)
Translate the incoming field name from String to a FIX standard
using reflection.
|
protected static char |
getSide(String inValue) |
protected String |
parseMessageValue(quickfix.Field<?> inField,
String inFieldName,
String inValue,
quickfix.Message inMessage)
For some fields (day, side, etc) we do custom lookups since
the orders may be "DAY", MKT (for price), etc
For all others, delegate to the basic field type lookup
|
protected Order |
parseOrder(String[] inRow)
Parses the supplied row and creates an order instance from it.
|
void |
setHeaders(String[] inHeaders)
Implemented by subclasses to initialize themselves with the
supplied headers.
|
geBrokerID, getFailedOrders, getNumFailed, getNumSuccess, getTotal, initialize, processOrderprotected static String MKT_PRICE
public FIXProcessor(OrderProcessor inProcessor, BrokerID inBrokerID, FIXVersion inFIXVersion) throws OrderParsingException
inProcessor - the processor.inBrokerID - the brokerID.inFIXVersion - the FIX Version to use for parsing, constructing
and validating messages.OrderParsingException - if the
supplied FIX Version cannot be supported or
if brokerID was not supplied.public void setHeaders(String[] inHeaders) throws OrderParsingException
RowProcessorsetHeaders in class RowProcessorinHeaders - the headers specified in the csv file.OrderParsingException - if there were errors with the supplied
headers.protected Order parseOrder(String[] inRow) throws OrderParsingException
RowProcessorparseOrder in class RowProcessorinRow - the supplied row.OrderParsingException - if there were errors parsing theprotected quickfix.Field<?> getQuickFixFieldFromName(String inFieldName) throws OrderParsingException
inFieldName - the field name.OrderParsingException - if there were failuresprotected String parseMessageValue(quickfix.Field<?> inField, String inFieldName, String inValue, quickfix.Message inMessage) throws OrderParsingException
inField - the field we are convertinginFieldName - the name of the field being processed.inValue - string valueinMessage - the message to add the processed field to.OrderParsingException - if there were errors parsing the field.protected static char getSide(String inValue)
protected static void addDefaults(quickfix.Message message)
Copyright © 2014. All Rights Reserved.