[docs]classStateValues:arr:from_dtype(state_values_dtype)[:]def__init__(self,arr:np.ndarray[Any,state_values_dtype]):self.arr=arr@propertydefposition(self)->float64:""" Returns the open position. """returnself.arr[0].position@propertydefbalance(self)->float64:""" Returns the cash balance. """returnself.arr[0].balance@propertydeffee(self)->float64:""" Returns the accumulated fee. """returnself.arr[0].fee@propertydefnum_trades(self)->int64:""" Returns the total number of trades. """returnself.arr[0].num_trades@propertydeftrading_volume(self)->float64:""" Returns the total trading volume. """returnself.arr[0].trading_volume@propertydeftrading_value(self)->float64:""" Returns the total trading value. """returnself.arr[0].trading_value