def parse_ledger_entry_type(self, type):
    types = {'transfer': 'transfer', 'trade': 'trade', 'rebate': 'rebate', 'match': 'trade', 'fee': 'fee', 'settlement': 'trade', 'liquidation': 'trade', 'funding': 'fee', 'margin': 'margin'}
    return self.safe_string(types, type, type)
def parse_ledger_entry_type(self, type):
    types = {'transfer': 'transfer', 'trade': 'trade', 'rebate': 'rebate', 'match': 'trade', 'fee': 'fee', 'settlement': 'trade', 'liquidation': 'trade', 'funding': 'fee', 'margin': 'margin'}
    return self.safe_string(types, type, type)