From ba9f99a23f79e650ae5b4c153a771dad16ad2103 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 20 Apr 2022 19:07:22 +0100 Subject: [PATCH] Add function for getting only some account details --- handler/markets.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/handler/markets.py b/handler/markets.py index 09c4718..ecc0c13 100644 --- a/handler/markets.py +++ b/handler/markets.py @@ -199,6 +199,12 @@ class Markets(util.Base): currency_account_info_map[currency]["bank"] = bank.split("_")[0] 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): """ Distribute account details for ads.