Since arguments are in milliseconds integer throughout ccxt.

Explained here: https://github.com/ccxt/ccxt/issues/5636

fixes #2093
This commit is contained in:
Matthias
2019-08-06 20:09:09 +02:00
parent 6c0c77b3a1
commit a90ced1f38
2 changed files with 9 additions and 1 deletions

View File

@@ -725,7 +725,8 @@ class Exchange(object):
return []
try:
# Allow 5s offset to catch slight time offsets (discovered in #1185)
my_trades = self._api.fetch_my_trades(pair, since.timestamp() - 5)
# since needs to be int in milliseconds
my_trades = self._api.fetch_my_trades(pair, int((since.timestamp() - 5) * 1000))
matched_trades = [trade for trade in my_trades if trade['order'] == order_id]
return matched_trades