i have set
try {
TradingHistory tradingHistory = RepositoryFactory.getTradingHistoryRepo().findbyStatusSinglemarket();
String Symbol = tradingHistory.getSymbol();
Double OrderQty = tradingHistory.getQty();
String orderTypes = tradingHistory.getType();
String type = tradingHistory.getPrice_type();
System.out.println(Symbol+" | "+OrderQty+" | "+orderTypes);
String IdSet = Integer.toString(tradingHistory.getId());
String clord = "FM-";
String clordid = clord.concat(IdSet);
Double price = Double.valueOf(tradingHistory.getPrice());
if(OrderQty < 100000 && orderTypes.equals("market")){
System.out.println("marketOrder" +Symbol );
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
and i got log
GBPCHF | 22222.22222222 | market
but my log cannot insert to if else. how to insert if else for double value ?
Aucun commentaire:
Enregistrer un commentaire