Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 5, 2017
1 parent 3825914 commit 1b31e23
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,19 +737,6 @@ def amount_to_lots(self, symbol, amount):
def fee_to_precision(self, symbol, fee):
return ('{:.' + str(self.markets[symbol]['precision']['price']) + 'f}').format(float(fee))

# setMarkets (markets) {
# let values = Object.values (markets).map (market => deepExtend ({
# 'limits': this.limits,
# 'precision': this.precision,
# }, this.fees['trading'], market))
# this.markets = deepExtend (this.markets, indexBy (values, 'symbol'))
# this.marketsById = indexBy (markets, 'id')
# this.markets_by_id = this.marketsById
# this.symbols = Object.keys (this.markets).sort ()
# this.ids = Object.keys (this.markets_by_id).sort ()
# return this.markets
# }

def set_markets(self, markets):
values = list(markets.values()) if type(markets) is dict else markets
for i in range(0, len(values)):
Expand Down

0 comments on commit 1b31e23

Please sign in to comment.