Merge pull request #1213 from freqtrade/fix_mac_install

Fix mac install documentation
This commit is contained in:
Matthias
2018-09-27 12:39:42 +02:00
committed by GitHub
4 changed files with 8 additions and 3 deletions

View File

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