-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1152 from Marketcetera/MATP-1157
MATP-1157 Implement Trade Suggestions
- Loading branch information
Showing
122 changed files
with
2,127 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ hs_err_pid* | |
|
||
# Maven files | ||
target | ||
target-ide | ||
|
||
# Eclipse files | ||
.classpath | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
15 changes: 15 additions & 0 deletions
15
admin/admin-api/src/main/java/org/marketcetera/admin/HasCurrentUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.marketcetera.admin; | ||
|
||
/* $License$ */ | ||
|
||
/** | ||
* Tagging interface that provides the current user, whatever that means in a given context. | ||
* | ||
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> | ||
* @version $Id$ | ||
* @since $Release$ | ||
*/ | ||
public interface HasCurrentUser | ||
extends HasUser | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
74 changes: 74 additions & 0 deletions
74
core/src/main/java/org/marketcetera/trade/AbstractSuggestion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package org.marketcetera.trade; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/* $License$ */ | ||
|
||
/** | ||
* Provides common behavior for <code>Suggestion</code> implementations. | ||
* | ||
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> | ||
* @version $Id$ | ||
* @since $Release$ | ||
*/ | ||
public abstract class AbstractSuggestion | ||
implements Suggestion | ||
{ | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.Suggestion#getIdentifier() | ||
*/ | ||
@Override | ||
public String getIdentifier() | ||
{ | ||
return identifier; | ||
} | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.Suggestion#setIdentifier(java.lang.String) | ||
*/ | ||
@Override | ||
public void setIdentifier(String inIdentifier) | ||
{ | ||
identifier = inIdentifier; | ||
} | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.Suggestion#getScore() | ||
*/ | ||
@Override | ||
public BigDecimal getScore() | ||
{ | ||
return score; | ||
} | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.Suggestion#setScore(java.math.BigDecimal) | ||
*/ | ||
@Override | ||
public void setScore(BigDecimal inScore) | ||
{ | ||
score = inScore; | ||
} | ||
/** | ||
* Create a new AbstractSuggestion instance. | ||
*/ | ||
protected AbstractSuggestion() {} | ||
/** | ||
* Create a new AbstractSuggestion instance. | ||
* | ||
* @param inIdentifier a <code>String<code> value | ||
* @param inScore a <code>BigDecimal</code> value | ||
*/ | ||
protected AbstractSuggestion(String inIdentifier, | ||
BigDecimal inScore) | ||
{ | ||
setIdentifier(inIdentifier); | ||
setScore(inScore); | ||
} | ||
/** | ||
* identifier value | ||
*/ | ||
private String identifier; | ||
/** | ||
* score value | ||
*/ | ||
private BigDecimal score; | ||
private static final long serialVersionUID = 7713915144622410613L; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
core/src/main/java/org/marketcetera/trade/OrderCancelSuggestion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.marketcetera.trade; | ||
|
||
/* $License$ */ | ||
|
||
/** | ||
* Contains a suggestion for a cancel order. | ||
* | ||
* <p>Instances of this type can be created via {@link Factory#createOrderCancelSuggestion()} | ||
* | ||
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> | ||
* @version $Id$ | ||
* @since $Release$ | ||
*/ | ||
public interface OrderCancelSuggestion | ||
extends Suggestion,HasOrderCancel | ||
{ | ||
/** | ||
* Set the cancel order value. | ||
* | ||
* @param inOrderCancel the suggested order. | ||
*/ | ||
void setOrderCancel(OrderCancel inOrderCancel); | ||
} |
78 changes: 78 additions & 0 deletions
78
core/src/main/java/org/marketcetera/trade/OrderCancelSuggestionImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package org.marketcetera.trade; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/* $License$ */ | ||
|
||
/** | ||
* Provides an {@link OrderCancelSuggestion} implementation. | ||
* | ||
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> | ||
* @version $Id$ | ||
* @since $Release$ | ||
*/ | ||
public class OrderCancelSuggestionImpl | ||
extends AbstractSuggestion | ||
implements OrderCancelSuggestion | ||
{ | ||
/** | ||
* Create a new OrderCancelSuggestionImpl instance. | ||
*/ | ||
public OrderCancelSuggestionImpl() {} | ||
/** | ||
* Create a new OrderCancelSuggestionImpl instance. | ||
* | ||
* @param inOrderCancel an <code>OrderCancel</code> value | ||
*/ | ||
public OrderCancelSuggestionImpl(OrderCancel inOrderCancel) | ||
{ | ||
setOrderCancel(inOrderCancel); | ||
} | ||
/** | ||
* Create a new OrderCancelSuggestionImpl instance. | ||
* | ||
* @param inIdentifier a <code>String</code> value | ||
* @param inScore a <code>BigDecimal</code> value | ||
* @param inOrderCancel an <code>OrderCancel</code> value | ||
*/ | ||
public OrderCancelSuggestionImpl(String inIdentifier, | ||
BigDecimal inScore, | ||
OrderCancel inOrderCancel) | ||
{ | ||
super(inIdentifier, | ||
inScore); | ||
setOrderCancel(inOrderCancel); | ||
} | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.HasOrderCancel#getOrderCancel() | ||
*/ | ||
@Override | ||
public OrderCancel getOrderCancel() | ||
{ | ||
return orderCancel; | ||
} | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.OrderCancelSuggestion#setOrderCancel(org.marketcetera.trade.OrderCancel) | ||
*/ | ||
@Override | ||
public void setOrderCancel(OrderCancel inOrderCancel) | ||
{ | ||
orderCancel = inOrderCancel; | ||
} | ||
/* (non-Javadoc) | ||
* @see java.lang.Object#toString() | ||
*/ | ||
@Override | ||
public String toString() | ||
{ | ||
StringBuilder builder = new StringBuilder(); | ||
builder.append("OrderCancelSuggestionImpl [identifier=").append(getIdentifier()).append(", score=") | ||
.append(getScore()).append(", orderCancel=").append(orderCancel).append("]"); | ||
return builder.toString(); | ||
} | ||
/** | ||
* order Cancel value | ||
*/ | ||
private OrderCancel orderCancel; | ||
private static final long serialVersionUID = 2069691082438028206L; | ||
} |
78 changes: 78 additions & 0 deletions
78
core/src/main/java/org/marketcetera/trade/OrderReplaceSuggestionImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package org.marketcetera.trade; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/* $License$ */ | ||
|
||
/** | ||
* Provides an {@link OrderReplaceSuggestion} implementation. | ||
* | ||
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> | ||
* @version $Id$ | ||
* @since $Release$ | ||
*/ | ||
public class OrderReplaceSuggestionImpl | ||
extends AbstractSuggestion | ||
implements OrderReplaceSuggestion | ||
{ | ||
/** | ||
* Create a new OrderReplaceSuggestionImpl instance. | ||
*/ | ||
public OrderReplaceSuggestionImpl() {} | ||
/** | ||
* Create a new OrderReplaceSuggestionImpl instance. | ||
* | ||
* @param inOrderReplace an <code>OrderReplace</code> value | ||
*/ | ||
public OrderReplaceSuggestionImpl(OrderReplace inOrderReplace) | ||
{ | ||
setOrderReplace(inOrderReplace); | ||
} | ||
/** | ||
* Create a new OrderReplaceSuggestionImpl instance. | ||
* | ||
* @param inIdentifier a <code>String</code> value | ||
* @param inScore a <code>BigDecimal</code> value | ||
* @param inOrderReplace an <code>OrderReplace</code> value | ||
*/ | ||
public OrderReplaceSuggestionImpl(String inIdentifier, | ||
BigDecimal inScore, | ||
OrderReplace inOrderReplace) | ||
{ | ||
super(inIdentifier, | ||
inScore); | ||
setOrderReplace(inOrderReplace); | ||
} | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.HasOrderReplace#getOrderReplace() | ||
*/ | ||
@Override | ||
public OrderReplace getOrderReplace() | ||
{ | ||
return orderReplace; | ||
} | ||
/* (non-Javadoc) | ||
* @see org.marketcetera.trade.OrderReplaceSuggestion#setOrderReplace(org.marketcetera.trade.OrderReplace) | ||
*/ | ||
@Override | ||
public void setOrderReplace(OrderReplace inOrderReplace) | ||
{ | ||
orderReplace = inOrderReplace; | ||
} | ||
/* (non-Javadoc) | ||
* @see java.lang.Object#toString() | ||
*/ | ||
@Override | ||
public String toString() | ||
{ | ||
StringBuilder builder = new StringBuilder(); | ||
builder.append("OrderReplaceSuggestionImpl [identifier=").append(getIdentifier()).append(", score=") | ||
.append(getScore()).append(", orderReplace=").append(orderReplace).append("]"); | ||
return builder.toString(); | ||
} | ||
/** | ||
* order replace value | ||
*/ | ||
private OrderReplace orderReplace; | ||
private static final long serialVersionUID = 2069691082438028206L; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target-ide/ |
Oops, something went wrong.