Package org.drip.oms.exchange
Class Venue
java.lang.Object
org.drip.oms.exchange.Venue
public class Venue
extends java.lang.Object
Venue implements Functionality corresponding to a Venue. The References are:
- Chen, J. (2021): Time in Force: Definition, Types, and Examples https://www.investopedia.com/terms/t/timeinforce.asp
- Cont, R., and A. Kukanov (2017): Optimal Order Placement in Limit Order Markets Quantitative Finance 17 (1) 21-39
- Vassilis, P. (2005b): Slow and Fast Markets Journal of Economics and Business 57 (6) 576-593
- Weiss, D. (2006): After the Trade is Made: Processing Securities Transactions Portfolio Publishing London UK
- Wikipedia (2023): Central Limit Order Book https://en.wikipedia.org/wiki/Central_limit_order_book
- Module = Product Core Module
- Library = Transaction Cost Analytics
- Project = Rd Order Specification, Handling, and Management
- Package = Implementation of Venue Order Handling
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description Venue(VenueSettings settings)
Venue Constructor -
Method Summary
Modifier and Type Method Description MontageL1Entry
askMontageL1Entry(java.lang.String ticker)
Retrieve the Ask L1 Montage Entry for the specified Tickerjava.util.Map<java.lang.String,PriceBook>
askTickerPriceBookMap()
Retrieve the Ask Price Book per Tickerjava.util.Set<java.lang.String>
askTickerSet()
Retrieve the Ask Ticker SetMontageL1Entry
bidMontageL1Entry(java.lang.String ticker)
Retrieve the Bid L1 Montage Entry for the specified Tickerjava.util.Map<java.lang.String,PriceBook>
bidTickerPriceBookMap()
Retrieve the Bid Price Book per Tickerjava.util.Set<java.lang.String>
bidTickerSet()
Retrieve the Bid Ticker Setboolean
postAskBlock(java.lang.String ticker, OrderBlock postedBlock)
Post a Block to the Venue Ask Book for the Tickerboolean
postBidBlock(java.lang.String ticker, OrderBlock postedBlock)
Post a Block to the Venue Bid Book for the Tickerdouble
postFee(java.lang.String ticker, double price, double size)
Estimate Liquidity Posting Fee for the specified Ticker at the Venue at the Price/Size.VenueSettings
settings()
Retrieve the Venue Settingsboolean
sweepAskBlock(java.lang.String ticker, OrderBlock sweptBlock, boolean allowPartialSweep)
Sweep a Block to the Venue Ask Book for the Tickerboolean
sweepBidBlock(java.lang.String ticker, OrderBlock sweptBlock, boolean allowPartialSweep)
Sweep a Block to the Venue Bid Book for the Tickerdouble
sweepFee(java.lang.String ticker, double price, double size)
Estimate Liquidity Sweeping Fee for the specified Ticker at the Venue at the Price/Size.OrderBlock
topOfTheAskBook(java.lang.String ticker)
Retrieve the Top-of-the-Ask-Book for the specified TickerOrderBlock
topOfTheBidBook(java.lang.String ticker)
Retrieve the Top-of-the-Bid-Book for the specified TickerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Venue
Venue Constructor- Parameters:
settings
- Venue Settings- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
settings
Retrieve the Venue Settings- Returns:
- The Venue Settings
-
bidTickerPriceBookMap
Retrieve the Bid Price Book per Ticker- Returns:
- Bid Price Book per Ticker
-
askTickerPriceBookMap
Retrieve the Ask Price Book per Ticker- Returns:
- Ask Price Book per Ticker
-
postFee
public double postFee(java.lang.String ticker, double price, double size) throws java.lang.ExceptionEstimate Liquidity Posting Fee for the specified Ticker at the Venue at the Price/Size.- Parameters:
ticker
- Tickerprice
- Pricesize
- Size- Returns:
- Fee for Liquidity Posting
- Throws:
java.lang.Exception
- Thrown if the Liquidity Posting Fee cannot be calculated
-
sweepFee
public double sweepFee(java.lang.String ticker, double price, double size) throws java.lang.ExceptionEstimate Liquidity Sweeping Fee for the specified Ticker at the Venue at the Price/Size.- Parameters:
ticker
- Tickerprice
- Pricesize
- Size- Returns:
- Fee for Liquidity Sweeping
- Throws:
java.lang.Exception
- Thrown if the Liquidity Sweeping Fee cannot be calculated
-
postBidBlock
Post a Block to the Venue Bid Book for the Ticker- Parameters:
ticker
- The TickerpostedBlock
- The Posted Block- Returns:
- TRUE - The Block posted to the Venue Bid Book for the Ticker
-
postAskBlock
Post a Block to the Venue Ask Book for the Ticker- Parameters:
ticker
- The TickerpostedBlock
- The Posted Block- Returns:
- TRUE - The Block posted to the Venue Ask Book for the Ticker
-
sweepBidBlock
public boolean sweepBidBlock(java.lang.String ticker, OrderBlock sweptBlock, boolean allowPartialSweep)Sweep a Block to the Venue Bid Book for the Ticker- Parameters:
ticker
- The TickersweptBlock
- The Swept BlockallowPartialSweep
- TRUE - Partial Sweep is allowed- Returns:
- TRUE - The Block Swept to the Venue Bid Book for the Ticker
-
sweepAskBlock
public boolean sweepAskBlock(java.lang.String ticker, OrderBlock sweptBlock, boolean allowPartialSweep)Sweep a Block to the Venue Ask Book for the Ticker- Parameters:
ticker
- The TickersweptBlock
- The Swept BlockallowPartialSweep
- TRUE - Partial Sweep is allowed- Returns:
- TRUE - The Block Swept to the Venue Ask Book for the Ticker
-
topOfTheBidBook
Retrieve the Top-of-the-Bid-Book for the specified Ticker- Parameters:
ticker
- Ticker- Returns:
- The Top-of-the-Bid-Book
-
topOfTheAskBook
Retrieve the Top-of-the-Ask-Book for the specified Ticker- Parameters:
ticker
- Ticker- Returns:
- The Top-of-the-Ask-Book
-
bidMontageL1Entry
Retrieve the Bid L1 Montage Entry for the specified Ticker- Parameters:
ticker
- Ticker- Returns:
- The Bid L1 Montage Entry
-
askMontageL1Entry
Retrieve the Ask L1 Montage Entry for the specified Ticker- Parameters:
ticker
- Ticker- Returns:
- The Ask L1 Montage Entry
-
bidTickerSet
public java.util.Set<java.lang.String> bidTickerSet()Retrieve the Bid Ticker Set- Returns:
- The Bid Ticker Set
-
askTickerSet
public java.util.Set<java.lang.String> askTickerSet()Retrieve the Ask Ticker Set- Returns:
- The Ask Ticker Set
-