|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.quoting.QuotingPolicy
edu.cuny.cat.market.quoting.DoubleSidedQuotingPolicy
public class DoubleSidedQuotingPolicy
A quoting policy that sets the market quotes based on the boundary matched and unmatched ask and bid in the auction's shout engine. It is named so because it uses both the competitive side and the opposite side to determine a market quote.
Field Summary |
---|
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy |
---|
auctioneer |
Constructor Summary | |
---|---|
DoubleSidedQuotingPolicy()
|
Method Summary | |
---|---|
double |
askQuote(ShoutEngine shoutEngine)
gets the ask quote as the minimum of the lowest unmatched ask and the lowest matched bid. |
double |
bidQuote(ShoutEngine shoutEngine)
gets the bid quote as the maximum of the highest matched ask and the highest unmatched bid. |
Methods inherited from class edu.cuny.cat.market.quoting.QuotingPolicy |
---|
midQuote |
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy |
---|
eventOccurred, getAuctioneer, initialize, reset, setAuctioneer, setup, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleSidedQuotingPolicy()
Method Detail |
---|
public double askQuote(ShoutEngine shoutEngine)
QuoteBeatingAcceptingPolicy
, an ask beating it will be
accepted.
askQuote
in class QuotingPolicy
shoutEngine
- the shout engine processing shouts
public double bidQuote(ShoutEngine shoutEngine)
QuoteBeatingAcceptingPolicy
, a bid beating it will be
accepted.
bidQuote
in class QuotingPolicy
shoutEngine
- the shout engine processing shouts
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |