public interface CoreTradingSession extends CoreSession
| Modifier and Type | Method and Description |
|---|---|
mftrading.NewOrderSingleEncoder |
getNewOrderSingleEncoder()
Returns an instance of the
NewOrderSingleEncoder. |
mftrading.OrderCancelReplaceRequestEncoder |
getOrderCancelReplaceRequestEncoder()
Returns an instance of the
OrderCancelReplaceRequestEncoder. |
mftrading.OrderCancelRequestEncoder |
getOrderCancelRequestEncoder()
Returns an instance of the
OrderCancelRequestEncoder. |
void |
marketDefinitionRequest()
A request to receive the definitions of each market.
|
void |
newOrderSingle(mftrading.NewOrderSingleEncoder newOrderSingle)
Submit an order.
|
void |
orderCancelReplaceRequest(mftrading.OrderCancelReplaceRequestEncoder orderCancelReplaceRequest)
Submit modification to an existing order.
|
void |
orderCancelRequest(mftrading.OrderCancelRequestEncoder orderCancelRequest)
Cancel a previously placed order by client order id ('clOrdID')
and orderID.
|
void |
securityDefinitionRequest(long venueID)
Requests information about the securities supported on this venue.
|
void |
tradingRequest(long venueID,
mftrading.SubscriptionRequestType subType,
long nextExpectedMsgSeqNum)
A request to subscribe or unsubscribe to/from a
particular venue (as specified by the venueID parameter)
in order to trade or stop trading.
|
getPort, getSendingTime, getUsername, isLoggedOn, logon, logout, logoutResponsevoid marketDefinitionRequest()
throws MFException
MFException - If there is an error when attempting to
send this message.void securityDefinitionRequest(long venueID)
throws MFException
MFException - If there is an error when attempting to
send this message.void tradingRequest(long venueID,
mftrading.SubscriptionRequestType subType,
long nextExpectedMsgSeqNum)
throws MFException
MFException - If there is an error when attempting to
send this message.void newOrderSingle(mftrading.NewOrderSingleEncoder newOrderSingle)
throws MFException
MFException - If there is an error when attempting to send this message.mftrading.NewOrderSingleEncoder getNewOrderSingleEncoder()
NewOrderSingleEncoder.
Assume you cannot reuse this object. Use it once, submit
it using the newOrderSingle(NewOrderSingleEncoder) method. If you have a new
NewOrderSingle to place, get a new Encoder.void orderCancelReplaceRequest(mftrading.OrderCancelReplaceRequestEncoder orderCancelReplaceRequest)
throws MFException
orderCancelReplaceRequest - the orderCancelReplaceRequestMFException - If there is an error when attempting to send this message.mftrading.OrderCancelReplaceRequestEncoder getOrderCancelReplaceRequestEncoder()
OrderCancelReplaceRequestEncoder. Assume you cannot reuse this object.
Use it once, submit it using
the orderCancelReplaceRequest(mftrading.OrderCancelReplaceRequestEncoder) method. If you have
a new order to cancel/replace, get a new Encoder.void orderCancelRequest(mftrading.OrderCancelRequestEncoder orderCancelRequest)
throws MFException
orderCancelRequest - the cancel requestMFException - If there is an error when attempting to
send this message.mftrading.OrderCancelRequestEncoder getOrderCancelRequestEncoder()
OrderCancelRequestEncoder. Assume you cannot reuse this object.
Use it once, submit it using
the orderCancelRequest(mftrading.OrderCancelRequestEncoder) method. If you have
a new order to cancel, get a new Encoder.