Skip to content

Commit

Permalink
Features:
Browse files Browse the repository at this point in the history
Bug Fixes/Re-organization:

	- Market DTC Order Annotated Shell (1, 2)
	- Market DTC Order Annotated Constructor (3, 4)
	- Standard Market DTC Order Builder (5, 6)
	- Standard Market DTC Order Buy (7, 8)
	- Standard Market DTC Order Sell (9, 10)
	- Market Open Order Annotated Shell (11, 12)
	- Market Open Order Annotated Constructor (13, 14)
	- Standard Market Open Order Builder (15, 16)
	- Standard Market Open Order Buy (17, 18)
	- Standard Market Open Order Sell (19, 20)
	- Market Close Order Annotated Shell (21, 22)
	- Market Close Order Annotated Constructor (23, 24)
	- Standard Market Close Order Builder (25, 26)
	- Standard Market Close Order Buy (27, 28)
	- Standard Market Close Order Sell (29, 30)
	- Market GTC Order Annotated Shell (31, 32)
	- Market GTC Order Annotated Constructor (33, 34)
	- Standard Market GTC Order Builder (35, 36)
	- Standard Market GTC Order Buy (37, 38)
	- Standard Market GTC Order Sell (39, 40)
	- Limit AON Order Annotated Shell (41, 42)
	- Limit AON Order Annotated Constructor (43, 44)
	- Standard Limit AON Order Builder (45, 46)
	- Standard Limit AON Order Buy (47, 48)
	- Standard Limit AON Order Sell (49, 50)
	- Limit FOK Order Annotated Shell (51, 52)
	- Limit FOK Order Annotated Constructor (53, 54)
	- Standard Limit FOK Order Builder (55, 56)
	- Standard Limit FOK Order Buy (57, 58)
	- Standard Limit FOK Order Sell (59, 60)


Samples:

IdeaDRIP:
  • Loading branch information
Lakshmik committed Nov 27, 2023
1 parent 73e50f6 commit 9099db2
Show file tree
Hide file tree
Showing 9 changed files with 1,689 additions and 256 deletions.
40 changes: 40 additions & 0 deletions ReleaseNotes/01_10_2023.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

Features:

Bug Fixes/Re-organization:

- Market DTC Order Annotated Shell (1, 2)
- Market DTC Order Annotated Constructor (3, 4)
- Standard Market DTC Order Builder (5, 6)
- Standard Market DTC Order Buy (7, 8)
- Standard Market DTC Order Sell (9, 10)
- Market Open Order Annotated Shell (11, 12)
- Market Open Order Annotated Constructor (13, 14)
- Standard Market Open Order Builder (15, 16)
- Standard Market Open Order Buy (17, 18)
- Standard Market Open Order Sell (19, 20)
- Market Close Order Annotated Shell (21, 22)
- Market Close Order Annotated Constructor (23, 24)
- Standard Market Close Order Builder (25, 26)
- Standard Market Close Order Buy (27, 28)
- Standard Market Close Order Sell (29, 30)
- Market GTC Order Annotated Shell (31, 32)
- Market GTC Order Annotated Constructor (33, 34)
- Standard Market GTC Order Builder (35, 36)
- Standard Market GTC Order Buy (37, 38)
- Standard Market GTC Order Sell (39, 40)
- Limit AON Order Annotated Shell (41, 42)
- Limit AON Order Annotated Constructor (43, 44)
- Standard Limit AON Order Builder (45, 46)
- Standard Limit AON Order Buy (47, 48)
- Standard Limit AON Order Sell (49, 50)
- Limit FOK Order Annotated Shell (51, 52)
- Limit FOK Order Annotated Constructor (53, 54)
- Standard Limit FOK Order Builder (55, 56)
- Standard Limit FOK Order Buy (57, 58)
- Standard Limit FOK Order Sell (59, 60)


Samples:

IdeaDRIP:
180 changes: 0 additions & 180 deletions src/main/java/org/drip/oms/order/Limit.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,96 +216,6 @@ public static final Limit Buy (
return null;
}

/**
* Construct an Instance of Buy Fill-or-Kill Limit Order
*
* @param issuer Order Issuer
* @param securityIdentifier Security Identifier
* @param side Order Side
* @param size Order Size
* @param timeInForce Time-in-Force Settings
* @param thresholdPrice Threshold Price
*
* @return Instance of Buy Limit Order
*/

public static final Limit BuyFillOrKill (
final OrderIssuer issuer,
final String securityIdentifier,
final String side,
final double size,
final TimeInForce timeInForce,
final double thresholdPrice)
{
try
{
return new Limit (
issuer,
securityIdentifier,
StringUtil.GUID(),
new Date(),
Order.BUY,
size,
timeInForce,
OrderFillWholeSettings.FillOrKill(),
thresholdPrice
);
}
catch (Exception e)
{
e.printStackTrace();
}

return null;
}

/**
* Construct an Instance of Buy All-or-None Limit Order
*
* @param issuer Order Issuer
* @param securityIdentifier Security Identifier
* @param side Order Side
* @param size Order Size
* @param timeInForce Time-in-Force Settings
* @param fulfillTryLimit Fulfill Try Limit
* @param thresholdPrice Threshold Price
*
* @return Instance of Buy All-or-None Limit Order
*/

public static final Limit BuyAllOrNone (
final OrderIssuer issuer,
final String securityIdentifier,
final String side,
final double size,
final TimeInForce timeInForce,
final int fulfillTryLimit,
final double thresholdPrice)
{
try
{
return new Limit (
issuer,
securityIdentifier,
StringUtil.GUID(),
new Date(),
Order.BUY,
size,
timeInForce,
OrderFillWholeSettings.AllOrNone (
fulfillTryLimit
),
thresholdPrice
);
}
catch (Exception e)
{
e.printStackTrace();
}

return null;
}

/**
* Construct an Instance of Sell Limit Order
*
Expand Down Expand Up @@ -351,96 +261,6 @@ public static final Limit Sell (
return null;
}

/**
* Construct an Instance of Sell Fill-or-Kill Limit Order
*
* @param issuer Order Issuer
* @param securityIdentifier Security Identifier
* @param side Order Side
* @param size Order Size
* @param timeInForce Time-in-Force Settings
* @param thresholdPrice Threshold Price
*
* @return Instance of Sell Limit Order
*/

public static final Limit SellKillOrFill (
final OrderIssuer issuer,
final String securityIdentifier,
final String side,
final double size,
final TimeInForce timeInForce,
final double thresholdPrice)
{
try
{
return new Limit (
issuer,
securityIdentifier,
StringUtil.GUID(),
new Date(),
Order.SELL,
size,
timeInForce,
OrderFillWholeSettings.FillOrKill(),
thresholdPrice
);
}
catch (Exception e)
{
e.printStackTrace();
}

return null;
}

/**
* Construct an Instance of Sell All-or-None Limit Order
*
* @param issuer Order Issuer
* @param securityIdentifier Security Identifier
* @param side Order Side
* @param size Order Size
* @param timeInForce Time-in-Force Settings
* @param fulfillTryLimit Fulfill Try Limit
* @param thresholdPrice Threshold Price
*
* @return Instance of Sell All-or-None Limit Order
*/

public static final Limit SellAllOrNone (
final OrderIssuer issuer,
final String securityIdentifier,
final String side,
final double size,
final TimeInForce timeInForce,
final int fulfillTryLimit,
final double thresholdPrice)
{
try
{
return new Limit (
issuer,
securityIdentifier,
StringUtil.GUID(),
new Date(),
Order.SELL,
size,
timeInForce,
OrderFillWholeSettings.AllOrNone (
fulfillTryLimit
),
thresholdPrice
);
}
catch (Exception e)
{
e.printStackTrace();
}

return null;
}

/**
* Limit Order Constructor
*
Expand Down
Loading

0 comments on commit 9099db2

Please sign in to comment.