Skip to content

Commit

Permalink
Merge branch 'gemini_fetch_my_trades' of https://github.com/rbn920/ccxt
Browse files Browse the repository at this point in the history
… into rbn920-gemini_fetch_my_trades
  • Loading branch information
kroitor committed Jan 28, 2018
2 parents 94be556 + 34b3287 commit 67810d0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/ccxt/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ def fetch_balance(self, params={}):
result[currency] = account
return self.parse_balance(result)

def fetch_my_trades(self, symbol=None, since=None, limit=None, params={}):
if not symbol:
raise ExchangeError(self.id + ' fetchMyTrades requires a symbol argument')
self.load_markets()
market = self.market(symbol)
request = {
'symbol': market['id'],
}
if limit:
request['limit'] = limit
response = self.privatePostMytrades(self.extend(request, params))
return self.parse_trades(response, market, since, limit)

def create_order(self, symbol, type, side, amount, price=None, params={}):
self.load_markets()
if type == 'market':
Expand Down

0 comments on commit 67810d0

Please sign in to comment.