Skip to content

Commit

Permalink
consistency with subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty00 committed Jan 30, 2018
1 parent afd1604 commit cf6fe1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,13 +1003,13 @@ def market_id(self, symbol):
market = self.market(symbol)
return market['id'] if type(market) is dict else symbol

def calculate_fee(self, symbol, type, side, amount, price, taker_or_maker='taker', params={}):
def calculate_fee(self, symbol, type, side, amount, price, takerOrMaker='taker', params={}):
market = self.markets[symbol]
rate = market[taker_or_maker]
rate = market[takerOrMaker]
cost = float(self.cost_to_precision(symbol, amount * price))
return {
'rate': rate,
'type': taker_or_maker,
'type': takerOrMaker,
'currency': market['quote'],
'cost': float(self.fee_to_precision(symbol, rate * cost)),
}
Expand Down

0 comments on commit cf6fe1e

Please sign in to comment.