MCPcopy Create free account
hub / github.com/ccxt/ccxt / parse_transactions

Method parse_transactions

python/ccxt/base/exchange.py:5341–5349  ·  view source on GitHub ↗
(self, transactions: List[Any], currency: Currency = None, since: Int = None, limit: Int = None, params={})

Source from the content-addressed store, hash-verified

5339 return self.parse_trades_helper(True, trades, market, since, limit, params)
5340
5341 def parse_transactions(self, transactions: List[Any], currency: Currency = None, since: Int = None, limit: Int = None, params={}):
5342 transactions = self.to_array(transactions)
5343 result = []
5344 for i in range(0, len(transactions)):
5345 transaction = self.extend(self.parse_transaction(transactions[i], currency), params)
5346 result.append(transaction)
5347 result = self.sort_by(result, 'timestamp')
5348 code = currency['code'] if (currency is not None) else None
5349 return self.filter_by_currency_since_limit(result, code, since, limit)
5350
5351 def parse_transfers(self, transfers: List[Any], currency: Currency = None, since: Int = None, limit: Int = None, params={}):
5352 transfers = self.to_array(transfers)

Callers 15

fetch_depositsMethod · 0.80
fetch_withdrawalsMethod · 0.80
fetch_depositsMethod · 0.80
fetch_withdrawalsMethod · 0.80
fetch_depositsMethod · 0.80
fetch_withdrawalsMethod · 0.80
fetch_transactionsMethod · 0.80
fetch_depositsMethod · 0.80

Calls 7

to_arrayMethod · 0.95
extendMethod · 0.95
parse_transactionMethod · 0.95
sort_byMethod · 0.95
rangeFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected