Add tests for fee extraction methods

This commit is contained in:
Matthias
2020-04-30 20:05:27 +02:00
parent 2e4dc6c253
commit e74ed0ba7b
2 changed files with 22 additions and 0 deletions

View File

@@ -1087,6 +1087,8 @@ class Exchange:
@staticmethod
def extract_cost_curr_rate(order: Dict) -> Tuple[float, str, float]:
"""
Extract tuple of cost, currency, rate.
Requires order_has_fee to run first!
:param order: Order or trade (one trade) dict
:return: Tuple with cost, currency, rate of the given fee dict
"""