System.out.println("getMarketDetails - offerListNym returns null");
return null;
}
for (int j = 0; j < offerListNym.GetOfferDataNymCount(); j++) {
OfferDataNym offerDataNym = offerListNym.GetOfferDataNym(j);
if (offerDataNym == null) {
continue;
}
String[] nymDataRow = new String[3];
//offerDataNym.getSelling()
if(Utility.VerifyStringVal(marketData.getAsset_type_id())
&& Utility.VerifyStringVal(marketData.getCurrency_type_id())
&& Utility.VerifyStringVal(marketData.getScale())
&& Utility.VerifyStringVal(offerDataNym.getAsset_type_id())
&& Utility.VerifyStringVal(offerDataNym.getScale())
&& Utility.VerifyStringVal(offerDataNym.getCurrency_type_id())
&& marketData.getAsset_type_id().equals(offerDataNym.getAsset_type_id())
&& marketData.getCurrency_type_id().equals(offerDataNym.getCurrency_type_id())
&& marketData.getScale().equals(offerDataNym.getScale())
){
nymDataRow[0] = offerDataNym.getTransaction_id();
nymDataRow[1] = offerDataNym.getSelling() == true ? "Ask" : "Bid";
nymDataRow[2] = offerDataNym.getAsset_acct_id();
nymGridData.put(offerDataNym.getTransaction_id(), nymDataRow);
}
}
}
marketDetails.setMarketAsk(askGridData);