public void onQuoteUpdate( MamdaSubscription sub, MamdaQuoteListener listener, MamaMsg msg, MamdaQuoteUpdate update, MamdaQuoteRecap recap) { Console.WriteLine("Quote (" + msg.getString (MamdaCommonFields.ISSUE_SYMBOL) + ":" + recap.getQuoteCount() + "): " + update.getBidPrice() + " " + update.getBidSize() + " X " + update.getAskSize() + " " + update.getAskPrice() + " (seq#: " + update.getEventSeqNum() + "; time: " + update.getEventTime() + "; qual: " + update.getQuoteQual() + ")"); }
public void onQuoteUpdate( MamdaSubscription subscription, MamdaQuoteListener listener, MamaMsg msg, MamdaQuoteUpdate update, MamdaQuoteRecap recap) { string format = "Quote ({0}:{1}): {2} {3} X {4} {5} (seq#: {6}; time: {7}; qual: {8})"; Console.WriteLine(format, subscription.getSymbol(), recap.getQuoteCount(), update.getBidPrice(), update.getBidSize(), update.getAskSize(), update.getAskPrice(), update.getEventSeqNum(), update.getEventTime(), update.getQuoteQual()); }
public void onQuoteUpdate( MamdaSubscription sub, MamdaQuoteListener listener, MamaMsg msg, MamdaQuoteUpdate quote, MamdaQuoteRecap recap) { Console.WriteLine( "Underlying quote: " + quote.getBidSize() + "x" + quote.getBidPrice() + " " + quote.getAskPrice() + "x" + quote.getAskSize() + " " + "mid=" + recap.getQuoteMidPrice()); if (myPrintStrikes) { double lowStrike = -1.0; double highStrike = -1.0; Console.WriteLine( " strikes within 15%: " + lowStrike + " " + highStrike); } }
public void onQuoteUpdate( MamdaSubscription subscription, MamdaQuoteListener listener, MamaMsg msg, MamdaQuoteUpdate update, MamdaQuoteRecap recap) { string format = "Quote ({0}:{1}): {2} {3} X {4} {5} (seq#: {6}; time: {7}; qual: {8})"; Console.WriteLine(format, subscription.getSymbol(), recap.getQuoteCount(), update.getBidPrice(), update.getBidSize(), update.getAskSize(), update.getAskPrice(), update.getEventSeqNum(), update.getEventTime(), update.getQuoteQual()); }
public void onQuoteUpdate( MamdaSubscription sub, MamdaQuoteListener listener, MamaMsg msg, MamdaQuoteUpdate update, MamdaQuoteRecap recap) { Console.WriteLine ("Quote (" + msg.getString (MamdaCommonFields.ISSUE_SYMBOL) + ":" + recap.getQuoteCount() + "): " + update.getBidPrice() + " " + update.getBidSize() + " X " + update.getAskSize() + " " + update.getAskPrice() + " (seq#: " + update.getEventSeqNum() + "; time: " + update.getEventTime() + "; qual: " + update.getQuoteQual() + ")"); }
public void onQuoteUpdate( MamdaSubscription sub, MamdaQuoteListener listener, MamaMsg msg, MamdaQuoteUpdate quote, MamdaQuoteRecap recap) { Console.WriteLine( "Underlying quote: " + quote.getBidSize () + "x" + quote.getBidPrice () + " " + quote.getAskPrice () + "x" + quote.getAskSize () + " " + "mid=" + recap.getQuoteMidPrice ()); if (myPrintStrikes) { double lowStrike = -1.0; double highStrike = -1.0; Console.WriteLine( " strikes within 15%: " + lowStrike + " " + highStrike); } }