do not copy DF if copy is false
This commit is contained in:
@@ -160,7 +160,7 @@ class Exchange(object):
|
|||||||
|
|
||||||
def klines(self, pair: str, copy=True) -> DataFrame:
|
def klines(self, pair: str, copy=True) -> DataFrame:
|
||||||
if pair in self._klines:
|
if pair in self._klines:
|
||||||
return self._klines[pair].copy()
|
return self._klines[pair].copy() if copy else self._klines[pair]
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user