-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept strings for action, priceType and expiration #90
Conversation
No, you can rip out the enums.
You can update the wiki to add the use of the capabilities. There are also some unit tests you can run. |
@guillaumedebavelaere updated with unit tests passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, can you add in the wiki a sample code on how to fetch the capabilities?
order.setLimitPrice(20.0); | ||
order.setExpiration(TradeItOrderExpiration.GOOD_FOR_DAY); | ||
order.setPriceType(TradeItOrderPriceType.LIMIT); | ||
order.setExpiration(equityCapabilities.getActions().get(0).getValue()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you forgot to set an action...
8691f53
to
806014e
Compare
… and expiration type
806014e
to
d58bd9c
Compare
public enum TradeItOrderAction { | ||
BUY("buy"), | ||
SELL("sell"), | ||
BUY_TO_COVER("buyTocover"), | ||
BUY_TO_COVER("buyToCover"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like it was a typo in the value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@guillaumedebavelaere I'll update the wiki when this gets merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
public enum TradeItOrderAction { | ||
BUY("buy"), | ||
SELL("sell"), | ||
BUY_TO_COVER("buyTocover"), | ||
BUY_TO_COVER("buyToCover"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Partners should be using the order capabilities to set
action
,priceType
andexpiration
for an order object as part of the FV1 migration.TODO:
Hurr. I Android developer now.