@Override public List<MarginAssetsQueryResult> queryAssets() throws PositionException { List<MarginAssetsQueryResult> assetsQueryResults = new ArrayList<MarginAssetsQueryResult>(); List<MarginCashAccountView> totalCashAssets = assetsPositionQueryDao.queryAccountInfo(); for (MarginCashAccountView assetsPositionQueryView : totalCashAssets) { try { MarginAccountPositionInfoResult marginAccountPositionInfo = marginAccountPositionInfoQueryImpl.query( assetsPositionQueryView.getPortfolioId(), assetsPositionQueryView.getCashAccountId(), TradeLevelConsts.ORDER); MarginAssetsQueryResult result = getMarginAsset(assetsPositionQueryView, marginAccountPositionInfo); assetsQueryResults.add(result); } catch (Exception e) { logger.error("查询头寸信息出现异常:{}", e.getMessage()); } } return assetsQueryResults; }