-
Notifications
You must be signed in to change notification settings - Fork 10
Orders status
guillaumedebavelaere edited this page Oct 19, 2017
·
3 revisions
To get the orders status of an account:
linkedBrokerAccount.refreshOrdersStatus(new TradeItCallback<List<TradeItOrderStatusParcelable>>() {
@Override
public void onSuccess(List<TradeItOrderStatusParcelable> orderStatusDetailsList) {
// successfully fetched orders status
}
@Override
public void onError(TradeItErrorResult error) {
// an error occured
}
});
Cancel an order:
linkedBrokerAccount.cancelOrder(orderNumber, new TradeItCallback<TradeItOrderStatusParcelable>() {
@Override
public void onSuccess(TradeItOrderStatusParcelable orderStatusParcelable) {
//Successfully canceled the order
}
@Override
public void onError(TradeItErrorResult error) {
// Error
}
});