public abstract class MFClientBase
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MFClientBase.OrderArgs |
class |
MFClientBase.PingTime |
static class |
MFClientBase.RiskLimit
Admin interface: group limit, optionally for a specific feed and market.
|
static class |
MFClientBase.RiskMarketPosition
Admin interface:
Use this if interested in market position rather than RiskUsage's net open position.
|
static class |
MFClientBase.RiskUsage
Admin interface: user state.
|
class |
MFClientBase.TimeStats |
| Modifier and Type | Field and Description |
|---|---|
protected MFClientBase.RiskLimit[] |
_riskLimits |
protected long |
_riskTimestamp |
protected MFClientBase.RiskUsage[] |
_riskUsages |
protected java.util.List<com.marketfactory.api.TradeLimitDataMessage> |
_tradeLimitDataQueue |
protected java.util.Map<java.lang.String,java.lang.String[]> |
_userGroupChains |
static int |
FEED_ALL |
static int |
FEED_NULL
Pair with marketID to reference individual currencies.
|
static int |
MARKET_ALL |
static long |
SETTL_DATE_CASH |
static long |
SETTL_DATE_SUM |
| Modifier and Type | Method and Description |
|---|---|
protected APIResult |
allowClientsToConnect()
Admin interface: Call this method to allow monitored API clients to connect.
|
protected APIResult |
cancelAll(int feedID,
java.lang.String cxlID)
Cancel all the orders on a feed.
|
protected APIResult |
cancelAll(java.lang.String cxlID)
Cancel all the orders, on all feeds.
|
protected APIResult |
cancelOrder(java.lang.String cxlID,
long orderID)
Cancel a previously placed order by internal 'orderID'.
|
protected APIResult |
cancelOrder(java.lang.String cxlID,
long orderID,
java.lang.String clOrdID)
Cancel a previously placed order by providing both internal 'orderID' and clOrdID.
|
protected APIResult |
cancelOrder(java.lang.String cxlID,
java.lang.String clOrdID)
Cancel a previously placed order by client order id ('clOrdID').
|
APIResult |
close()
Close the connection.
|
APIResult |
connect()
Connect to the first available server with user credentials.
|
protected APIResult |
connectOne(java.lang.String host,
int port) |
void |
enableDebugMetrics(boolean flag) |
APIFeed |
getFeedByID(int id)
After a successful connection is established, you may access the server's
list of _feeds, markets.
|
APIFeed |
getFeedByName(java.lang.String name)
After a successful connection is established, you may access the server's
list of _feeds, markets.
|
APIFeed[] |
getFeeds() |
java.lang.String |
getHostname() |
java.util.Queue<MFClientBase.PingTime> |
getLastPingTimes() |
APIMarket |
getMarketByID(APIFeed feed,
int marketID)
After a successful connection is established, you may access the server's
list of _feeds, markets.
|
APIMarket |
getMarketByName(APIFeed feed,
java.lang.String name)
After a successful connection is established, you may access the server's
list of _feeds, markets.
|
int |
getPort() |
protected MFClientBase.RiskLimit[] |
getRiskLimits()
Admin interface: limits registered by server process.
|
protected MFClientBase.RiskMarketPosition[] |
getRiskMarketPositions()
Admin interface:
|
protected long |
getRiskTimestamp() |
protected MFClientBase.RiskUsage[] |
getRiskUsage() |
int |
getSequenceID(int feedID)
Get the last received sequenceID after successful subscription.
|
java.lang.String |
getSignature() |
protected java.util.Map<java.lang.String,java.lang.String[]> |
getUserGroupChains() |
protected void |
handle(com.marketfactory.api.AcceptOrderMessage msg) |
protected void |
handle(com.marketfactory.api.BatchesCompletedMessage msg) |
protected void |
handle(com.marketfactory.api.BatchRegisterMessage msg) |
protected void |
handle(com.marketfactory.api.BatchUnregisterMessage msg) |
protected void |
handle(com.marketfactory.api.CancelAllOrderMessage msg) |
protected void |
handle(com.marketfactory.api.CancelOrderMessage msg) |
protected void |
handle(com.marketfactory.api.CancelQuoteMessage msg) |
protected void |
handle(com.marketfactory.api.ClientConnectMessage msg) |
protected void |
handle(com.marketfactory.api.ClientDisconnectMessage msg) |
protected void |
handle(com.marketfactory.api.ConfigMessage msg) |
protected void |
handle(com.marketfactory.api.ConnectResponseMessage msg) |
protected void |
handle(com.marketfactory.api.DateRolloverMessage msg) |
protected void |
handle(com.marketfactory.api.DropCopyMessage msg) |
protected void |
handle(com.marketfactory.api.EventReportMessage msg) |
protected void |
handle(com.marketfactory.api.HeartbeatMessage msg) |
protected void |
handle(com.marketfactory.api.ImHereMessage msg) |
protected void |
handle(com.marketfactory.api.InsertLogMessage msg) |
protected void |
handle(com.marketfactory.api.JsonFromClient msg) |
protected void |
handle(com.marketfactory.api.JsonFromServer msg) |
protected void |
handle(com.marketfactory.api.LastSequenceIDMessage msg) |
protected void |
handle(com.marketfactory.api.LockResponseMessage msg) |
protected void |
handle(com.marketfactory.api.LockUserMessage msg) |
protected void |
handle(com.marketfactory.api.MassQuoteAckMessage msg) |
protected void |
handle(com.marketfactory.api.MassQuoteMessage msg) |
protected void |
handle(com.marketfactory.api.MktDataMessage msg) |
protected void |
handle(com.marketfactory.api.ModifyOrderMessage msg) |
protected void |
handle(com.marketfactory.api.NewOrderMessage msg) |
protected void |
handle(com.marketfactory.api.OrderCanceledMessage msg) |
protected void |
handle(com.marketfactory.api.OrderCancelRejectedMessage msg) |
protected void |
handle(com.marketfactory.api.OrderDoneMessage msg) |
protected void |
handle(com.marketfactory.api.OrderReceivedMessage msg) |
protected void |
handle(com.marketfactory.api.OrderRejectedMessage msg) |
protected void |
handle(com.marketfactory.api.OrderSubmittedMessage msg) |
protected void |
handle(com.marketfactory.api.OrderTimeoutMessage msg) |
protected void |
handle(com.marketfactory.api.QuoteRequestMessage msg) |
protected void |
handle(com.marketfactory.api.RejectOrderMessage msg) |
protected void |
handle(com.marketfactory.api.RejectQuoteRequestMessage msg) |
protected void |
handle(com.marketfactory.api.ReplayDoneMessage msg) |
protected void |
handle(com.marketfactory.api.ReplayMessage msg) |
protected void |
handle(com.marketfactory.api.RequestSnapshotMessage msg) |
protected void |
handle(com.marketfactory.api.RiskResponseMessage msg) |
protected void |
handle(com.marketfactory.api.RuThereMessage msg) |
protected void |
handle(com.marketfactory.api.SubmitOrderMessage msg) |
protected void |
handle(com.marketfactory.api.SubscribeMessage msg) |
protected void |
handle(com.marketfactory.api.SubscriptionEventMessage msg) |
protected void |
handle(com.marketfactory.api.TestMessage msg) |
protected void |
handle(com.marketfactory.api.TradeCaptureAckMessage msg) |
protected void |
handle(com.marketfactory.api.TradeCaptureMessage msg) |
protected void |
handle(com.marketfactory.api.TradeLimitDataMessage msg) |
protected void |
handle(com.marketfactory.api.UnsubscribeAllMessage msg) |
protected void |
handle(com.marketfactory.api.UnsubscribeMessage msg) |
protected void |
handle(com.marketfactory.api.VersionMessage msg) |
protected void |
init(java.lang.String _username,
java.lang.String _password,
java.lang.String _hostname1,
int _port1,
java.lang.String _hostname2,
int _port2) |
boolean |
isConnected() |
boolean |
isRunning() |
boolean |
isStopRequested() |
APIResult |
join()
Block until the client has exited the dispatch loop.
|
protected APIResult |
lockUser(java.lang.String clRequestID,
java.lang.String username,
boolean locked)
Admin interface: Lock / unlock user accounts.
|
void |
log(java.lang.String message)
Logs a debug message into the Whisperer server _log file.
|
void |
log(java.lang.String message,
LogLevel level) |
Pair<APIResult,java.lang.Long> |
modifyOrder(java.lang.String clOrdID,
java.lang.String clNewID,
MFFloat amount,
MFFloat price)
Submit modification without minAmount (kept for backward compatibility).
|
protected Pair<APIResult,java.lang.Long> |
modifyOrder(java.lang.String clOrdID,
java.lang.String clNewID,
MFFloat amount,
MFFloat minAmount,
MFFloat price)
Submit modification to an existing order.
|
protected void |
onBatchComplete(int batchDefID,
MFClientBase client) |
protected void |
onConnect(MFClientBase client) |
protected void |
onDateRollover(DateRollover dateRollover,
MFClientBase client) |
protected void |
onDisconnect(MFClientBase client) |
protected void |
onDropCopy(DropCopy dropCopy,
MFClientBase client) |
protected void |
onEventReport(EventReport eventReport,
MFClientBase client) |
protected void |
onHeartbeat(Heartbeat heartbeat,
MFClientBase client) |
protected void |
onJsonFromServer(com.marketfactory.api.JsonFromServer msg,
MFClientBase client) |
protected void |
onLockResponse(LockResponse lockResponse,
MFClientBase client) |
protected void |
onMarketData(MarketView marketData,
MFClientBase client) |
protected void |
onMassQuoteAck(MassQuoteAck msg,
MFClientBase client) |
protected void |
onNewOrder(NewOrder msg,
MFClientBase client) |
protected void |
onOrderCanceled(OrderCanceled orderCanceled,
MFClientBase client) |
protected void |
onOrderCancelRejected(OrderCancelRejected orderCancelRejected,
MFClientBase client) |
protected void |
onOrderDone(OrderDone orderDone,
MFClientBase client) |
protected void |
onOrderReceived(OrderReceived orderReceived,
MFClientBase client) |
protected void |
onOrderRejected(OrderRejected orderRejected,
MFClientBase client) |
protected void |
onOrderSubmitted(OrderSubmitted orderSubmitted,
MFClientBase client) |
protected void |
onOrderTimeout(OrderTimeout msg,
MFClientBase client) |
protected void |
onQuoteRequest(QuoteRequest msg,
MFClientBase client) |
protected void |
onReplayDone(ReplayDone replayDone,
MFClientBase client) |
protected void |
onRiskResponse(RiskResponse riskResponse,
MFClientBase client) |
protected void |
onStart(MFClientBase client) |
protected void |
onStop(MFClientBase client) |
protected void |
onSubscriptionEvent(SubscriptionEvent subscriptionEvent,
MFClientBase client) |
protected void |
onTradeCapture(TradeCapture tradeCapture,
MFClientBase client) |
protected void |
onTradeCaptureAck(TradeCaptureAck msg,
MFClientBase client) |
APIResult |
processEvents(MFHandler _handler)
Process all pending events in the reactor, and return as soon as
reads/writes have been flushed.
|
protected Pair<APIResult,java.lang.Integer> |
registerMarketComb(int feedID,
int[] marketIds)
Register for a given list of markets on a given feed.
|
APIResult |
replay(int feedID,
int fromSequenceID,
int toSequenceID)
Request replay of order flow events in the range [fromSequenceID, toSequenceID=-1].
|
protected APIResult |
requestSnapshot(int feedID,
int marketID)
Request a market data snapshot for the feed and market ID.
|
protected void |
resetAdminMembers() |
protected APIResult |
run(java.lang.Object _handler,
boolean loop) |
protected APIResult |
send(IMessage msg) |
void |
setDebug(boolean debug)
Deprecated.
MF devs only - set the mode using a JVM arg -
Options.MF_DEV_LOG_DEBUG_MESSAGES_JVM_ARG |
protected APIResult |
setRisk(java.lang.String clRequestID,
boolean doReplace,
MFClientBase.RiskUsage... usages) |
protected APIResult |
setRisk(java.lang.String clRequestID,
MFClientBase.RiskLimit... limits)
Admin interface: publish incremental set of limits.
|
protected APIResult |
setRisk(java.lang.String clRequestID,
MFClientBase.RiskLimit[] limits,
MFClientBase.RiskUsage[] usages,
boolean isSnapshot)
Admin interface: publish incremental/snapshot set of limits and usage.
|
protected APIResult |
setRisk(java.lang.String clRequestID,
MFClientBase.RiskLimit[] limits,
MFClientBase.RiskUsage[] usages,
boolean isSnapshot,
boolean doReplace) |
protected APIResult |
setRisk(java.lang.String clRequestID,
MFClientBase.RiskUsage... usages)
Admin interface: publish incremental set of risk usage.
|
void |
setStickySubscriptions(boolean sticky)
Enable/Disable sticky subscriptions.
|
void |
setStickySubscriptions(boolean sticky,
boolean clearSubscriptionsOnStop) |
void |
setUseHeartbeat(boolean use) |
APIResult |
stop()
Request to stop the event dispatch loop.
|
protected Pair<APIResult,java.lang.Long> |
submitOrder(java.lang.String clOrdID,
int feedID,
int marketID,
Side side,
MFFloat amount,
MFFloat price,
MFFloat stopPrice,
MFFloat maxShowAmt,
MFFloat minAmount,
OrderType ordType,
TimeInForce tif)
Submit an order.
|
Pair<APIResult,java.lang.Long> |
submitOrder(java.lang.String clOrdID,
int feedID,
int marketID,
Side side,
MFFloat amount,
MFFloat price,
MFFloat stopPrice,
MFFloat maxShowAmt,
MFFloat minAmount,
OrderType ordType,
TimeInForce tif,
java.lang.String modelID,
java.util.ArrayList<KeyValue> parameters)
Submit an order.
|
protected Pair<APIResult,java.lang.Long> |
submitOrder(java.lang.String clOrdID,
int feedID,
int marketID,
Side side,
MFFloat amount,
MFFloat price,
MFFloat stopPrice,
MFFloat maxShowAmt,
OrderType ordType,
TimeInForce tif)
Submit an order without minAmount (kept for backward compatibility).
|
protected Pair<APIResult,java.lang.Long> |
submitOrder(java.lang.String clOrdID,
int feedID,
int marketID,
Side side,
MFFloat amount,
MFFloat price,
OrderType ordType,
TimeInForce tif)
Submit an order.
|
protected Pair<APIResult,java.lang.Long> |
submitOrder(java.lang.String clOrdID,
int feedID,
int marketID,
Side side,
MFFloat amount,
MFFloat price,
OrderType ordType,
TimeInForce tif,
MFClientBase.OrderArgs args)
Submit an order.
|
protected APIResult |
subscribeAllMD()
Subscribe to all the market data feeds.
|
protected APIResult |
subscribeMD(int feedID,
int marketID)
Subscribe to market data updates for a specific feed.
|
protected APIResult |
subscribeMD(int feedID,
int marketID,
java.lang.String clSubID)
Subscribe to market data updates for a specific feed.
|
protected APIResult |
subscribeOF(int feedID)
Subscribe to trading for a specific feed.
|
protected APIResult |
subscribeOF(int feedID,
java.lang.String clSubID)
Subscribe to trading for a specific feed.
|
protected APIResult |
subscribePricing(int feedID,
java.lang.String clSubID) |
protected APIResult |
subscribeTrading(int feedID,
java.lang.String clSubID) |
void |
test(APITest test)
Internal testing function.
|
protected APIResult |
unregisterMarketComb(int batchDefID)
Unregister for a given list of markets on a given feed using the id
provided in onBatchEvent callback.
|
protected APIResult |
unsubscribeAll()
Unsubscribe all market data and trading subscriptions.
|
protected APIResult |
unsubscribeMD(int feedID,
int marketID)
Unsubscribe to market data updates for a specific feed.
|
protected APIResult |
unsubscribeMD(int feedID,
int marketID,
java.lang.String clSubID)
Unsubscribe to market data updates for a specific feed.
|
protected APIResult |
unsubscribeOF(int feedID)
Unsubscribe to trading for a specific feed.
|
protected APIResult |
unsubscribeOF(int feedID,
java.lang.String clSubID)
Unsubscribe to trading for a specific feed.
|
protected APIResult |
unsubscribePricing(int feedID,
java.lang.String clSubID) |
protected APIResult |
unsubscribeTrading(int feedID,
java.lang.String clSubID) |
protected java.util.Map<java.lang.String,java.lang.String[]> _userGroupChains
protected MFClientBase.RiskLimit[] _riskLimits
protected MFClientBase.RiskUsage[] _riskUsages
protected long _riskTimestamp
protected java.util.List<com.marketfactory.api.TradeLimitDataMessage> _tradeLimitDataQueue
public static final int FEED_NULL
public static final int FEED_ALL
public static final int MARKET_ALL
public static final long SETTL_DATE_SUM
public static final long SETTL_DATE_CASH
protected void init(java.lang.String _username,
java.lang.String _password,
java.lang.String _hostname1,
int _port1,
java.lang.String _hostname2,
int _port2)
public void setUseHeartbeat(boolean use)
public void setDebug(boolean debug)
Options.MF_DEV_LOG_DEBUG_MESSAGES_JVM_ARGdebug - debug mode true or false.public void enableDebugMetrics(boolean flag)
public void setStickySubscriptions(boolean sticky)
sticky - -- the toggle switchpublic void setStickySubscriptions(boolean sticky,
boolean clearSubscriptionsOnStop)
public boolean isConnected()
public APIResult connect()
protected APIResult connectOne(java.lang.String host, int port)
public APIResult close()
public boolean isRunning()
public APIResult stop()
public boolean isStopRequested()
public APIResult join()
public APIResult processEvents(MFHandler _handler)
_handler - -- the handler to be processedprotected APIResult run(java.lang.Object _handler, boolean loop)
public java.lang.String getSignature()
public int getSequenceID(int feedID)
feedID - -- feed idpublic APIFeed[] getFeeds()
public APIFeed getFeedByName(java.lang.String name)
name - -- the feed namepublic APIFeed getFeedByID(int id)
id - -- the feed idpublic APIMarket getMarketByName(APIFeed feed, java.lang.String name)
feed - -- the feedname - -- the market namepublic APIMarket getMarketByID(APIFeed feed, int marketID)
feed - -- the feedmarketID - -- the market idpublic java.lang.String getHostname()
public int getPort()
protected void handle(com.marketfactory.api.ConfigMessage msg)
protected void handle(com.marketfactory.api.ConnectResponseMessage msg)
protected void handle(com.marketfactory.api.ClientDisconnectMessage msg)
protected void handle(com.marketfactory.api.TestMessage msg)
protected void handle(com.marketfactory.api.ImHereMessage msg)
protected void handle(com.marketfactory.api.HeartbeatMessage msg)
public java.util.Queue<MFClientBase.PingTime> getLastPingTimes()
public APIResult replay(int feedID, int fromSequenceID, int toSequenceID)
feedID - -- the feed idfromSequenceID - -- the begin sequence numbertoSequenceID - -- the end sequence numberprotected APIResult subscribeMD(int feedID, int marketID, java.lang.String clSubID)
feedID - -- feed idmarketID - -- market idclSubID - -- client subscription idprotected APIResult subscribeMD(int feedID, int marketID)
feedID - -- feed idmarketID - -- market idprotected APIResult subscribeOF(int feedID, java.lang.String clSubID)
feedID - -- the feed idclSubID - -- the client subscription idprotected APIResult subscribeOF(int feedID)
feedID - -- feed idprotected APIResult subscribeAllMD()
protected APIResult unsubscribeMD(int feedID, int marketID, java.lang.String clSubID)
feedID - -- feed idmarketID - -- market idclSubID - -- client subscription idprotected APIResult unsubscribeMD(int feedID, int marketID)
feedID - -- the feed idmarketID - -- the market idprotected APIResult unsubscribeOF(int feedID, java.lang.String clSubID)
feedID - -- the feed idclSubID - -- the client subscription idprotected APIResult unsubscribeOF(int feedID)
feedID - -- the feed idprotected APIResult unsubscribeAll()
protected void handle(com.marketfactory.api.SubscriptionEventMessage msg)
protected Pair<APIResult,java.lang.Integer> registerMarketComb(int feedID, int[] marketIds)
feedID - -- the feed idmarketIds - -- the list of market idsprotected APIResult unregisterMarketComb(int batchDefID)
batchDefID - -- the batch idprotected void handle(com.marketfactory.api.MktDataMessage msg)
protected APIResult requestSnapshot(int feedID, int marketID)
feedID - -- the feed idmarketID - -- the market idprotected void handle(com.marketfactory.api.RequestSnapshotMessage msg)
protected void handle(com.marketfactory.api.BatchesCompletedMessage msg)
protected void handle(com.marketfactory.api.LastSequenceIDMessage msg)
protected Pair<APIResult,java.lang.Long> submitOrder(java.lang.String clOrdID, int feedID, int marketID, Side side, MFFloat amount, MFFloat price, OrderType ordType, TimeInForce tif)
clOrdID - -- client order idfeedID - -- feed idmarketID - -- marketIDside - -- buy or sellamount - -- order sizeprice - -- pxordType - -- order typetif - -- time in forceprotected Pair<APIResult,java.lang.Long> submitOrder(java.lang.String clOrdID, int feedID, int marketID, Side side, MFFloat amount, MFFloat price, MFFloat stopPrice, MFFloat maxShowAmt, OrderType ordType, TimeInForce tif)
clOrdID - -- client order idfeedID - -- feed idmarketID - -- marketIDside - -- buy or sellamount - -- order sizeprice - -- pxstopPrice - -- stop pxmaxShowAmt - -- max show amountordType - -- order typetif - -- time in forceprotected Pair<APIResult,java.lang.Long> submitOrder(java.lang.String clOrdID, int feedID, int marketID, Side side, MFFloat amount, MFFloat price, MFFloat stopPrice, MFFloat maxShowAmt, MFFloat minAmount, OrderType ordType, TimeInForce tif)
clOrdID - -- client order idfeedID - -- feed idmarketID - -- marketIDside - -- buy or sellamount - -- order sizeprice - -- pxstopPrice - -- stop pxmaxShowAmt - -- max show amountminAmount - -- minimum amountordType - -- order typetif - -- time in forceprotected Pair<APIResult,java.lang.Long> submitOrder(java.lang.String clOrdID, int feedID, int marketID, Side side, MFFloat amount, MFFloat price, OrderType ordType, TimeInForce tif, MFClientBase.OrderArgs args)
clOrdID - -- client order idfeedID - -- feed idmarketID - -- marketIDside - -- buy or sellamount - -- order sizeprice - -- pxordType - -- order typetif - -- time in forceargs - -- additional order parameterspublic Pair<APIResult,java.lang.Long> submitOrder(java.lang.String clOrdID, int feedID, int marketID, Side side, MFFloat amount, MFFloat price, MFFloat stopPrice, MFFloat maxShowAmt, MFFloat minAmount, OrderType ordType, TimeInForce tif, java.lang.String modelID, java.util.ArrayList<KeyValue> parameters)
clOrdID - -- client order idfeedID - -- feed idmarketID - -- marketIDside - -- buy or sellamount - -- order sizeprice - -- pxstopPrice - -- stop pxmaxShowAmt - -- max show amountminAmount - -- min amountordType - -- order typetif - -- time in forcemodelID - -- modelparameters - -- additional parameterspublic Pair<APIResult,java.lang.Long> modifyOrder(java.lang.String clOrdID, java.lang.String clNewID, MFFloat amount, MFFloat price)
clOrdID - -- client order id to be modifiedclNewID - -- the new client order idamount - -- new amountprice - -- new priceprotected Pair<APIResult,java.lang.Long> modifyOrder(java.lang.String clOrdID, java.lang.String clNewID, MFFloat amount, MFFloat minAmount, MFFloat price)
clOrdID - -- the client order id to be modifiedclNewID - -- the new client order idamount - -- the amountminAmount - -- the minimum amountprice - -- pxprotected APIResult cancelOrder(java.lang.String cxlID, java.lang.String clOrdID)
cxlID - -- the cancel idclOrdID - -- the client order id to be cancelledprotected APIResult cancelOrder(java.lang.String cxlID, long orderID)
cxlID - -- the cancel idorderID - -- the order idprotected APIResult cancelOrder(java.lang.String cxlID, long orderID, java.lang.String clOrdID)
protected APIResult cancelAll(int feedID, java.lang.String cxlID)
feedID - -- the feed idcxlID - -- the cancel idprotected APIResult cancelAll(java.lang.String cxlID)
cxlID - -- the cancel idprotected void onStart(MFClientBase client)
protected void onStop(MFClientBase client)
protected void onDisconnect(MFClientBase client)
protected void onConnect(MFClientBase client)
protected void onHeartbeat(Heartbeat heartbeat, MFClientBase client)
protected void onSubscriptionEvent(SubscriptionEvent subscriptionEvent, MFClientBase client)
protected void onMarketData(MarketView marketData, MFClientBase client)
protected void onEventReport(EventReport eventReport, MFClientBase client)
protected void onDateRollover(DateRollover dateRollover, MFClientBase client)
protected void onBatchComplete(int batchDefID,
MFClientBase client)
protected void onOrderReceived(OrderReceived orderReceived, MFClientBase client)
protected void onOrderRejected(OrderRejected orderRejected, MFClientBase client)
protected void onOrderSubmitted(OrderSubmitted orderSubmitted, MFClientBase client)
protected void onOrderCanceled(OrderCanceled orderCanceled, MFClientBase client)
protected void onOrderCancelRejected(OrderCancelRejected orderCancelRejected, MFClientBase client)
protected void onDropCopy(DropCopy dropCopy, MFClientBase client)
protected void onTradeCapture(TradeCapture tradeCapture, MFClientBase client)
protected void onOrderDone(OrderDone orderDone, MFClientBase client)
protected void onReplayDone(ReplayDone replayDone, MFClientBase client)
protected void onLockResponse(LockResponse lockResponse, MFClientBase client)
protected void onRiskResponse(RiskResponse riskResponse, MFClientBase client)
protected void onQuoteRequest(QuoteRequest msg, MFClientBase client)
protected void onMassQuoteAck(MassQuoteAck msg, MFClientBase client)
protected void onNewOrder(NewOrder msg, MFClientBase client)
protected void onOrderTimeout(OrderTimeout msg, MFClientBase client)
protected void onTradeCaptureAck(TradeCaptureAck msg, MFClientBase client)
protected void onJsonFromServer(com.marketfactory.api.JsonFromServer msg,
MFClientBase client)
protected void handle(com.marketfactory.api.RiskResponseMessage msg)
protected void handle(com.marketfactory.api.LockResponseMessage msg)
protected void handle(com.marketfactory.api.OrderReceivedMessage msg)
protected void handle(com.marketfactory.api.OrderSubmittedMessage msg)
protected void handle(com.marketfactory.api.OrderRejectedMessage msg)
protected void handle(com.marketfactory.api.OrderCanceledMessage msg)
protected void handle(com.marketfactory.api.OrderCancelRejectedMessage msg)
protected void handle(com.marketfactory.api.DropCopyMessage msg)
protected void handle(com.marketfactory.api.TradeCaptureMessage msg)
protected void handle(com.marketfactory.api.OrderDoneMessage msg)
protected void handle(com.marketfactory.api.QuoteRequestMessage msg)
protected void handle(com.marketfactory.api.MassQuoteAckMessage msg)
protected void handle(com.marketfactory.api.NewOrderMessage msg)
protected void handle(com.marketfactory.api.OrderTimeoutMessage msg)
protected void handle(com.marketfactory.api.TradeCaptureAckMessage msg)
protected void handle(com.marketfactory.api.EventReportMessage msg)
protected void handle(com.marketfactory.api.ReplayDoneMessage msg)
protected void handle(com.marketfactory.api.DateRolloverMessage msg)
protected void handle(com.marketfactory.api.JsonFromServer msg)
public void log(java.lang.String message)
message - -- what to logpublic void log(java.lang.String message,
LogLevel level)
public void test(APITest test)
test - -- the test to sendprotected void handle(com.marketfactory.api.RuThereMessage msg)
protected void handle(com.marketfactory.api.VersionMessage msg)
protected void handle(com.marketfactory.api.InsertLogMessage msg)
protected void handle(com.marketfactory.api.ClientConnectMessage msg)
protected void handle(com.marketfactory.api.ReplayMessage msg)
protected void handle(com.marketfactory.api.BatchRegisterMessage msg)
protected void handle(com.marketfactory.api.BatchUnregisterMessage msg)
protected void handle(com.marketfactory.api.SubscribeMessage msg)
protected void handle(com.marketfactory.api.UnsubscribeMessage msg)
protected void handle(com.marketfactory.api.UnsubscribeAllMessage msg)
protected void handle(com.marketfactory.api.SubmitOrderMessage msg)
protected void handle(com.marketfactory.api.CancelOrderMessage msg)
protected void handle(com.marketfactory.api.CancelAllOrderMessage msg)
protected void handle(com.marketfactory.api.ModifyOrderMessage msg)
protected void handle(com.marketfactory.api.LockUserMessage msg)
protected void handle(com.marketfactory.api.RejectQuoteRequestMessage msg)
protected void handle(com.marketfactory.api.CancelQuoteMessage msg)
protected void handle(com.marketfactory.api.MassQuoteMessage msg)
protected void handle(com.marketfactory.api.RejectOrderMessage msg)
protected void handle(com.marketfactory.api.AcceptOrderMessage msg)
protected void handle(com.marketfactory.api.JsonFromClient msg)
protected void resetAdminMembers()
protected void handle(com.marketfactory.api.TradeLimitDataMessage msg)
protected APIResult allowClientsToConnect()
protected APIResult lockUser(java.lang.String clRequestID, java.lang.String username, boolean locked)
clRequestID - -- the client request idusername - -- the user to be lockedlocked - -- to lock?protected APIResult setRisk(java.lang.String clRequestID, MFClientBase.RiskLimit[] limits, MFClientBase.RiskUsage[] usages, boolean isSnapshot)
clRequestID - -- client request idlimits - -- variable collection of limitsusages - -- variable collection of usagesisSnapshot - -- snapshot flagprotected APIResult setRisk(java.lang.String clRequestID, MFClientBase.RiskLimit[] limits, MFClientBase.RiskUsage[] usages, boolean isSnapshot, boolean doReplace)
protected APIResult setRisk(java.lang.String clRequestID, MFClientBase.RiskLimit... limits)
clRequestID - -- client request idlimits - -- variable collection of limitsprotected APIResult setRisk(java.lang.String clRequestID, MFClientBase.RiskUsage... usages)
clRequestID - -- client request idusages - -- variable collection of usagesprotected APIResult setRisk(java.lang.String clRequestID, boolean doReplace, MFClientBase.RiskUsage... usages)
protected MFClientBase.RiskLimit[] getRiskLimits()
protected MFClientBase.RiskUsage[] getRiskUsage()
protected MFClientBase.RiskMarketPosition[] getRiskMarketPositions()
protected long getRiskTimestamp()
protected java.util.Map<java.lang.String,java.lang.String[]> getUserGroupChains()
protected APIResult subscribePricing(int feedID, java.lang.String clSubID)
protected APIResult subscribeTrading(int feedID, java.lang.String clSubID)
protected APIResult unsubscribePricing(int feedID, java.lang.String clSubID)
protected APIResult unsubscribeTrading(int feedID, java.lang.String clSubID)