public interface MFTradingSession extends MFSession
| Modifier and Type | Method and Description |
|---|---|
NewOrderSingle |
createNewOrderSingle(long venueId,
long securityId,
byte[] clOrdId,
mftrading.Side side,
mftrading.OrdType ordType,
mftrading.TimeInForce timeInForce) |
NewOrderSingle |
createNewOrderSingle(long venueId,
long securityId,
java.lang.String clOrdId,
mftrading.Side side,
mftrading.OrdType ordType,
mftrading.TimeInForce timeInForce)
Returns an instance of the
NewOrderSingle. |
OrderCancelReplaceRequest |
createOrderCancelReplaceRequest(long venueID,
long securityID,
byte[] clOrdID,
byte[] origOrdID,
long orderID,
mftrading.Side side,
mftrading.OrdType ordType,
mftrading.TimeInForce timeInForce) |
OrderCancelReplaceRequest |
createOrderCancelReplaceRequest(long venueID,
long securityID,
java.lang.String clOrdID,
java.lang.String origOrdID,
long orderID,
mftrading.Side side,
mftrading.OrdType ordType,
mftrading.TimeInForce timeInForce)
Returns an instance of the
OrderCancelReplaceRequest. |
OrderCancelRequest |
createOrderCancelRequest(long venueID,
long securityID,
byte[] clOrdID,
byte[] origOrdID,
long orderID)
Returns an instance of the
OrderCancelRequest. |
OrderCancelRequest |
createOrderCancelRequest(long venueID,
long securityID,
java.lang.String clOrdID,
java.lang.String origOrdID,
long orderID)
Returns an instance of the
OrderCancelRequest. |
void |
marketDefinitionRequest()
A request to receive the definitions of each market.
|
void |
newOrderSingle(NewOrderSingle newOrderSingle)
Submit an order.
|
void |
orderCancelReplaceRequest(OrderCancelReplaceRequest orderCancelReplaceRequest)
Submit modification to an existing order.
|
void |
orderCancelRequest(OrderCancelRequest 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(NewOrderSingle newOrderSingle) throws MFException
MFException - If there is an error when attempting to send this message.NewOrderSingle createNewOrderSingle(long venueId, long securityId, java.lang.String clOrdId, mftrading.Side side, mftrading.OrdType ordType, mftrading.TimeInForce timeInForce)
NewOrderSingle.
Assume you cannot reuse this object. Use it once, submit
it using the newOrderSingle(NewOrderSingle) method. If you have a new
NewOrderSingle to place, get a new Encoder.NewOrderSingle createNewOrderSingle(long venueId, long securityId, byte[] clOrdId, mftrading.Side side, mftrading.OrdType ordType, mftrading.TimeInForce timeInForce)
void orderCancelReplaceRequest(OrderCancelReplaceRequest orderCancelReplaceRequest) throws MFException
orderCancelReplaceRequest - the orderCancelReplaceRequestMFException - If there is an error when attempting to send this message.OrderCancelReplaceRequest createOrderCancelReplaceRequest(long venueID, long securityID, java.lang.String clOrdID, java.lang.String origOrdID, long orderID, mftrading.Side side, mftrading.OrdType ordType, mftrading.TimeInForce timeInForce)
OrderCancelReplaceRequest. Assume you cannot reuse this object.
Use it once, submit it using
the orderCancelReplaceRequest(com.marketfactory.mfclient.api.core.trading.OrderCancelReplaceRequest) method. If you have
a new order to cancel/replace, get a new Encoder.OrderCancelReplaceRequest createOrderCancelReplaceRequest(long venueID, long securityID, byte[] clOrdID, byte[] origOrdID, long orderID, mftrading.Side side, mftrading.OrdType ordType, mftrading.TimeInForce timeInForce)
void orderCancelRequest(OrderCancelRequest orderCancelRequest) throws MFException
orderCancelRequest - the cancel requestMFException - If there is an error when attempting to
send this message.OrderCancelRequest createOrderCancelRequest(long venueID, long securityID, java.lang.String clOrdID, java.lang.String origOrdID, long orderID)
OrderCancelRequest. Assume you cannot reuse this object.
Use it once, submit it using
the orderCancelRequest(com.marketfactory.mfclient.api.core.trading.OrderCancelRequest) method. If you have
a new order to cancel, get a new Encoder.venueID - id of the venuesecurityID - id of the securityclOrdID - new clOrdID for this cancel requestorigOrdID - origOrdID of the order to cancelorderID - orderID of the order to cancelOrderCancelRequest createOrderCancelRequest(long venueID, long securityID, byte[] clOrdID, byte[] origOrdID, long orderID)
OrderCancelRequest. Assume you cannot reuse this object.
Use it once, submit it using
the orderCancelRequest(com.marketfactory.mfclient.api.core.trading.OrderCancelRequest) method. If you have
a new order to cancel, get a new Encoder.venueID - id of the venuesecurityID - id of the securityclOrdID - new clOrdID for this cancel requestorigOrdID - origOrdID of the order to cancelorderID - orderID of the order to cancel