BUG: fixed an issue with can_trade()

This commit is contained in:
fredfortier
2017-10-31 19:20:39 -04:00
parent 1c3deb648a
commit 7ad047a432
+14
View File
@@ -559,6 +559,20 @@ cdef class TradingPair(Asset):
end_minute=self.end_minute
)
def is_exchange_open(self, dt_minute):
"""
Parameters
----------
dt_minute: pd.Timestamp (UTC, tz-aware)
The minute to check.
Returns
-------
boolean: whether the asset's exchange is open at the given minute.
"""
#TODO: consider implementing to spot holds
return True
cpdef __reduce__(self):
"""
Function used by pickle to determine how to serialize/deserialize this