public Num getPricePerAsset() {
        return pricePerAsset;
    }
@Test
    public void testReturnBarSeriesCloseOnNaN() {
        MockBarSeries series = new MockBarSeries(DoubleNum::valueOf, 100, 95, 100, 80, 85, 130);
        Trade trade = new Trade(1, TradeType.BUY, NaN);
        assertNumEquals(DoubleNum.valueOf(95), trade.getPricePerAsset(series));
    }