Closed onyxcoyote closed 5 years ago
It's not fully baked yet, but something like this seems to work:
public class OrderService {
public List<Fill> getFillByProductId(FillQuery fillQuery, int resultLimit) {
return exchange.getAsList(FILLS_ENDPOINT + "?product_id=" + fillQuery.getProduct_id()+"&limit="+resultLimit, new ParameterizedTypeReference<Fill[]>(){});
}
public List<Fill> getFillByOrderId(FillQuery fillQuery, int resultLimit) {
return exchange.getAsList(FILLS_ENDPOINT + "?order_id=" + fillQuery.getOrder_id()+"&limit="+resultLimit, new ParameterizedTypeReference<Fill[]>(){});
}
Looks like this issue was addressed in your PR that was merged.
error message: ERROR - GET request Failed for '/fills': {"message":"query must contained either product_id or order_id"}
information on the change https://docs.pro.coinbase.com/#fills