From 22249506e653bf57c1c0802f441d23c6868d4d13 Mon Sep 17 00:00:00 2001 From: AvishaiW Date: Sun, 25 Mar 2018 22:53:01 +0300 Subject: [PATCH] BUG: #214 #287 added arguments to the _reduce_ function in tha Asset class --- catalyst/assets/_assets.pyx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/catalyst/assets/_assets.pyx b/catalyst/assets/_assets.pyx index f80fbf4a..22a637fe 100644 --- a/catalyst/assets/_assets.pyx +++ b/catalyst/assets/_assets.pyx @@ -630,23 +630,28 @@ cdef class TradingPair(Asset): and whose second element is a tuple of all the attributes that should be serialized/deserialized during pickling. """ - #TODO: make sure that all fields set there + # added arguments for catalyst return (self.__class__, (self.symbol, self.exchange, self.start_date, self.asset_name, self.sid, self.leverage, + self.end_daily, + self.end_minute, self.end_date, + self.exchange_symbol, self.first_traded, self.auto_close_date, self.exchange_full, self.min_trade_size, self.max_trade_size, + self.maker, + self.taker, self.lot, self.decimals, - self.taker, - self.maker)) + self.trading_state, + self.data_source)) def make_asset_array(int size, Asset asset): cdef np.ndarray out = np.empty([size], dtype=object)