Provide the provider to market and money functions
This commit is contained in:
@@ -341,7 +341,7 @@ class Agora(util.Base):
|
||||
return False
|
||||
|
||||
# Get the ads to update
|
||||
to_update = self.markets.get_new_ad_equations(public_ads, assets)
|
||||
to_update = self.markets.get_new_ad_equations("agora", public_ads, assets)
|
||||
self.slow_ad_update(to_update)
|
||||
|
||||
# TODO: make generic and move to markets
|
||||
@@ -359,12 +359,12 @@ class Agora(util.Base):
|
||||
}
|
||||
|
||||
if not assets:
|
||||
assets = self.markets.get_all_assets()
|
||||
assets = self.markets.get_all_assets("agora")
|
||||
# Get all currencies we have ads for, deduplicated
|
||||
if not currencies:
|
||||
currencies = self.markets.get_all_currencies()
|
||||
currencies = self.markets.get_all_currencies("agora")
|
||||
if not providers:
|
||||
providers = self.markets.get_all_providers()
|
||||
providers = self.markets.get_all_providers("agora")
|
||||
# We want to get the ads for each of these currencies and return the result
|
||||
rates = self.money.cg.get_price(ids=["monero", "bitcoin"], vs_currencies=currencies)
|
||||
for asset in assets:
|
||||
|
||||
Reference in New Issue
Block a user