public class MFStpBookingSessionToCoreStpBookingSessionAdapter extends java.lang.Object implements MFStpBookingSession
| Constructor and Description |
|---|
MFStpBookingSessionToCoreStpBookingSessionAdapter(CoreStpBookingSession delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
confirmation(long msgSeqNum,
byte[] confirmID,
byte[] execID) |
void |
confirmation(long msgSeqNum,
java.lang.String confirmID,
java.lang.String execID) |
NewOrderSingle |
createNewOrderSingle(long msgSeqNum,
boolean possDupFlag,
long securityID,
java.lang.String orderID,
mfstp_booking.Side side,
int settlDate)
Returns an instance of the
NewOrderSingle. |
OrderCancelReplaceRequest |
createOrderCancelReplaceRequest(long msgSeqNum,
boolean possDupFlag,
byte[] orderID,
long securityID,
byte[] clOrdID,
mfstp_booking.Side side) |
OrderCancelReplaceRequest |
createOrderCancelReplaceRequest(long msgSeqNum,
boolean possDupFlag,
java.lang.String orderID,
long securityID,
java.lang.String clOrdID,
mfstp_booking.Side side) |
OrderCancelRequest |
createOrderCancelRequest(long msgSeqNum,
boolean possDupFlag,
byte[] orderID,
long securityID,
byte[] clOrdID) |
OrderCancelRequest |
createOrderCancelRequest(long msgSeqNum,
boolean possDupFlag,
java.lang.String orderID,
long securityID,
java.lang.String clOrdID) |
TradeCaptureReportSpotForward |
createTradeCaptureReportSpotForward(long msgSeqNum,
boolean possDupFlag,
boolean isBaseSpecified,
long sendingTime,
long securityID,
byte[] execID,
mfstp_booking.Side side,
byte[] orderID)
Returns an instance of the
TradeCaptureReportSpotForward. |
TradeCaptureReportSpotForward |
createTradeCaptureReportSpotForward(long msgSeqNum,
boolean possDupFlag,
boolean isBaseSpecified,
long sendingTime,
long securityID,
java.lang.String execID,
mfstp_booking.Side side,
java.lang.String orderID) |
TradeCaptureReportSwap |
createTradeCaptureReportSwap(long msgSeqNum,
boolean possDupFlag,
boolean isBaseSpecified,
long sendingTime,
long securityID,
byte[] execID,
mfstp_booking.Side side,
byte[] orderID)
Returns an instance of the
TradeCaptureReportSwap. |
TradeCaptureReportSwap |
createTradeCaptureReportSwap(long msgSeqNum,
boolean possDupFlag,
boolean isBaseSpecified,
long sendingTime,
long securityID,
java.lang.String execID,
mfstp_booking.Side side,
java.lang.String orderID) |
int |
getPort()
The port used for this session.
|
long |
getSendingTime()
Retrieves the MF server sending time (nanoseconds since epoch) of the current message frame.
|
java.lang.String |
getUsername()
The username used for this session.
|
boolean |
isLoggedOn() |
void |
logon()
Sends a logon message with the supplied username and password.
|
void |
logon(long nextExpectedMsgSeqNum)
Sends a logon message with the username and password supplied during session creation.
|
void |
logout()
Initiates logout.
|
void |
logoutResponse()
The response to a logout from the server.
|
void |
newOrderSingle(NewOrderSingle newOrderSingle)
Sends the NewOrderSingle instance obtained via the
MFStpBookingSession.createNewOrderSingle(long, boolean, long, java.lang.String, mfstp_booking.Side, int) method. |
void |
orderCancelReplaceRequest(OrderCancelReplaceRequest orderCancelReplaceRequest)
Sends the OrderCancelReplaceRequest instance obtained via the
MFStpBookingSession.createOrderCancelReplaceRequest(long, boolean, java.lang.String, long, java.lang.String, mfstp_booking.Side) methods
Consider using the OrderCancelReplaceRequest.send() method instead |
void |
orderCancelRequest(OrderCancelRequest orderCancelRequest)
Sends the OrderCancelRequest instance obtained via the
MFStpBookingSession.createOrderCancelRequest(long, boolean, java.lang.String, long, java.lang.String) methods
Consider using the OrderCancelRequest.send() method instead |
void |
securityDefinitionRequest()
Requests information about the securities supported on this venue.
|
void |
sendConfirmation(long msgSeqNum,
byte[] confirmID,
byte[] execID)
Submit a confirmation.
|
void |
sendConfirmation(long msgSeqNum,
java.lang.String confirmID,
java.lang.String execID)
Submit a confirmation.
|
void |
tradeCaptureReportSpotForward(TradeCaptureReportSpotForward tradeCaptureReportSpotForward)
Submit a trade capture report for a spot or forward trade.
|
void |
tradeCaptureReportSwap(TradeCaptureReportSwap tradeCaptureReportSwap)
Submit a trade capture report for a swap trade.
|
public MFStpBookingSessionToCoreStpBookingSessionAdapter(CoreStpBookingSession delegate)
public java.lang.String getUsername()
MFSessiongetUsername in interface MFSessionpublic int getPort()
MFSessionpublic void logon()
throws MFException
MFSessionlogon in interface MFSessionMFException - If there is an error when attempting to
send this message.public void logon(long nextExpectedMsgSeqNum)
throws MFException
MFStpBookingSessionProvide the nextExpectedMsSeqNum so that the message synchronizing process can begin.
logon in interface MFStpBookingSessionMFException - If there is an error when attempting to
send this message.public void logout()
throws MFException
MFSessionlogout in interface MFSessionMFException - If there is an error when attempting to
send this message.public boolean isLoggedOn()
isLoggedOn in interface MFSessionpublic void logoutResponse()
throws MFException
MFSessionlogoutResponse in interface MFSessionMFException - If there is an error when attempting to
send this message.public long getSendingTime()
MFSessiongetSendingTime in interface MFSessionpublic void securityDefinitionRequest()
throws MFException
MFStpBookingSessionsecurityDefinitionRequest in interface MFStpBookingSessionMFException - If there is an error when attempting to
send this message.public void tradeCaptureReportSpotForward(TradeCaptureReportSpotForward tradeCaptureReportSpotForward) throws MFException
MFStpBookingSessiontradeCaptureReportSpotForward in interface MFStpBookingSessionMFException - If there is an error when attempting to send this message.public TradeCaptureReportSpotForward createTradeCaptureReportSpotForward(long msgSeqNum, boolean possDupFlag, boolean isBaseSpecified, long sendingTime, long securityID, byte[] execID, mfstp_booking.Side side, byte[] orderID)
MFStpBookingSessionTradeCaptureReportSpotForward.
Assume you cannot reuse this object. Use it once, submit
it using the MFStpBookingSession.tradeCaptureReportSpotForward(TradeCaptureReportSpotForward) method. If you have a new
TradeCaptureReportSpotForward to place, call this method again.createTradeCaptureReportSpotForward in interface MFStpBookingSessionpublic TradeCaptureReportSpotForward createTradeCaptureReportSpotForward(long msgSeqNum, boolean possDupFlag, boolean isBaseSpecified, long sendingTime, long securityID, java.lang.String execID, mfstp_booking.Side side, java.lang.String orderID)
createTradeCaptureReportSpotForward in interface MFStpBookingSessionpublic void tradeCaptureReportSwap(TradeCaptureReportSwap tradeCaptureReportSwap) throws MFException
MFStpBookingSessiontradeCaptureReportSwap in interface MFStpBookingSessionMFException - If there is an error when attempting to send this message.public TradeCaptureReportSwap createTradeCaptureReportSwap(long msgSeqNum, boolean possDupFlag, boolean isBaseSpecified, long sendingTime, long securityID, byte[] execID, mfstp_booking.Side side, byte[] orderID)
MFStpBookingSessionTradeCaptureReportSwap.
Assume you cannot reuse this object. Use it once, submit
it using the MFStpBookingSession.tradeCaptureReportSwap(TradeCaptureReportSwap) method. If you have a new
TradeCaptureReportSwap to place, call this method again.createTradeCaptureReportSwap in interface MFStpBookingSessionpublic TradeCaptureReportSwap createTradeCaptureReportSwap(long msgSeqNum, boolean possDupFlag, boolean isBaseSpecified, long sendingTime, long securityID, java.lang.String execID, mfstp_booking.Side side, java.lang.String orderID)
createTradeCaptureReportSwap in interface MFStpBookingSessionpublic void sendConfirmation(long msgSeqNum,
byte[] confirmID,
byte[] execID)
throws MFException
MFStpBookingSessionsendConfirmation in interface MFStpBookingSessionMFException - If there is an error when attempting to send this message.public void sendConfirmation(long msgSeqNum,
java.lang.String confirmID,
java.lang.String execID)
throws MFException
MFStpBookingSessionsendConfirmation in interface MFStpBookingSessionMFException - If there is an error when attempting to send this message.public void confirmation(long msgSeqNum,
byte[] confirmID,
byte[] execID)
throws MFException
confirmation in interface MFStpBookingSessionMFExceptionpublic void confirmation(long msgSeqNum,
java.lang.String confirmID,
java.lang.String execID)
throws MFException
confirmation in interface MFStpBookingSessionMFExceptionpublic OrderCancelRequest createOrderCancelRequest(long msgSeqNum, boolean possDupFlag, java.lang.String orderID, long securityID, java.lang.String clOrdID)
createOrderCancelRequest in interface MFStpBookingSessionpublic OrderCancelRequest createOrderCancelRequest(long msgSeqNum, boolean possDupFlag, byte[] orderID, long securityID, byte[] clOrdID)
createOrderCancelRequest in interface MFStpBookingSessionpublic void orderCancelRequest(OrderCancelRequest orderCancelRequest) throws MFException
MFStpBookingSessionMFStpBookingSession.createOrderCancelRequest(long, boolean, java.lang.String, long, java.lang.String) methods
Consider using the OrderCancelRequest.send() method insteadorderCancelRequest in interface MFStpBookingSessionorderCancelRequest - data to send to the serverMFException - can thrown an exception is something prevents this data from being sentpublic OrderCancelReplaceRequest createOrderCancelReplaceRequest(long msgSeqNum, boolean possDupFlag, java.lang.String orderID, long securityID, java.lang.String clOrdID, mfstp_booking.Side side)
createOrderCancelReplaceRequest in interface MFStpBookingSessionpublic OrderCancelReplaceRequest createOrderCancelReplaceRequest(long msgSeqNum, boolean possDupFlag, byte[] orderID, long securityID, byte[] clOrdID, mfstp_booking.Side side)
createOrderCancelReplaceRequest in interface MFStpBookingSessionpublic void orderCancelReplaceRequest(OrderCancelReplaceRequest orderCancelReplaceRequest) throws MFException
MFStpBookingSessionMFStpBookingSession.createOrderCancelReplaceRequest(long, boolean, java.lang.String, long, java.lang.String, mfstp_booking.Side) methods
Consider using the OrderCancelReplaceRequest.send() method insteadorderCancelReplaceRequest in interface MFStpBookingSessionorderCancelReplaceRequest - data to send to the serverMFException - can thrown an exception is something prevents this data from being sentpublic NewOrderSingle createNewOrderSingle(long msgSeqNum, boolean possDupFlag, long securityID, java.lang.String orderID, mfstp_booking.Side side, int settlDate)
MFStpBookingSessionNewOrderSingle.
Assume you cannot reuse this object. Use it once, submit
it using the MFStpBookingSession.newOrderSingle(NewOrderSingle) method. If you have a new
NewOrderSingle to place, call this method again.createNewOrderSingle in interface MFStpBookingSessionpublic void newOrderSingle(NewOrderSingle newOrderSingle) throws MFException
MFStpBookingSessionMFStpBookingSession.createNewOrderSingle(long, boolean, long, java.lang.String, mfstp_booking.Side, int) method.
Consider using the NewOrderSingle.send() method insteadnewOrderSingle in interface MFStpBookingSessionnewOrderSingle - data to send to the serverMFException - can thrown an exception is something prevents this data from being sent