Search in sources :

Example 1 with Bl3pGetOrder

use of org.knowm.xchange.bl3p.dto.trade.Bl3pGetOrder in project XChange by knowm.

the class Bl3pTradeService method getOrder.

@Override
public Collection<Order> getOrder(OrderQueryParams... orderQueryParams) throws IOException {
    Collection<Order> result = new ArrayList<>(orderQueryParams.length);
    for (OrderQueryParams p : orderQueryParams) {
        Bl3pOrderQueryParams bp = (Bl3pOrderQueryParams) p;
        Bl3pGetOrder order = this.bl3p.getOrder(apiKey, signatureCreator, nonceFactory, Bl3pUtils.toPairString(bp.getCurrencyPair()), bp.getOrderId());
        result.add(Bl3pAdapters.adaptGetOrder(bp.getCurrencyPair(), order.getData()));
    }
    return result;
}
Also used : StopOrder(org.knowm.xchange.dto.trade.StopOrder) Bl3pNewOrder(org.knowm.xchange.bl3p.dto.trade.Bl3pNewOrder) Order(org.knowm.xchange.dto.Order) Bl3pGetOrder(org.knowm.xchange.bl3p.dto.trade.Bl3pGetOrder) LimitOrder(org.knowm.xchange.dto.trade.LimitOrder) MarketOrder(org.knowm.xchange.dto.trade.MarketOrder) ArrayList(java.util.ArrayList) Bl3pGetOrder(org.knowm.xchange.bl3p.dto.trade.Bl3pGetOrder) OrderQueryParams(org.knowm.xchange.service.trade.params.orders.OrderQueryParams)

Aggregations

ArrayList (java.util.ArrayList)1 Bl3pGetOrder (org.knowm.xchange.bl3p.dto.trade.Bl3pGetOrder)1 Bl3pNewOrder (org.knowm.xchange.bl3p.dto.trade.Bl3pNewOrder)1 Order (org.knowm.xchange.dto.Order)1 LimitOrder (org.knowm.xchange.dto.trade.LimitOrder)1 MarketOrder (org.knowm.xchange.dto.trade.MarketOrder)1 StopOrder (org.knowm.xchange.dto.trade.StopOrder)1 OrderQueryParams (org.knowm.xchange.service.trade.params.orders.OrderQueryParams)1