Add function for getting only some account details

This commit is contained in:
Mark Veidemanis 2022-04-20 19:07:22 +01:00
parent 00d441d17d
commit ba9f99a23f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 6 additions and 0 deletions

View File

@ -199,6 +199,12 @@ class Markets(util.Base):
currency_account_info_map[currency]["bank"] = bank.split("_")[0] currency_account_info_map[currency]["bank"] = bank.split("_")[0]
return (supported_currencies, currency_account_info_map) return (supported_currencies, currency_account_info_map)
def get_matching_account_details(self, platform, currency):
supported_currencies, currency_account_info_map = self.get_valid_account_details(platform)
if currency not in supported_currencies:
return False
return currency_account_info_map[currency]
def _distribute_account_details(self, platform, currencies=None, account_info=None): def _distribute_account_details(self, platform, currencies=None, account_info=None):
""" """
Distribute account details for ads. Distribute account details for ads.