def list_markets(self): try: ret = list_items(self.api_market_management.markets_get) except ApiException as e: if e.status == 400 and json.loads( e.body)["message"] == "exchange not exist": logger.warning("No exchange under tenant:%s", self.email) else: raise else: return ret
def list_announcements(self, project_id): return list_items(self.api_announcement_management.announcements_project_id_get, project_id=project_id)
def list_market_on_line(self, project_id): return list_items( self.api_project_center.project_center_projects_id_markets_get, project_id=project_id)
def list_projects(self): return list_items(self.api_project.projects_get)
def list_contacts(self, exchange_id, status): return list_items(self.api_contacts.contacts_projects_exchange_id_get, exchange_id=exchange_id, status=status)
def list_applying_projects(self): return list_items(self.api_sponsors_project.projects_get)
def get_trades(self, order_id, pair): return list_items(self.api_entrust.trades_get, order_id=order_id, trading_pair=pair)
def list_sponsors(self): return list_items(self.api_sponsors_management.sponsors_get)
def list_announcements_by_exchange_id(self, exchange_id): return list_items(self.api_announcement_management. announcements_exchanges_list_exchange_id_get, exchange_id=exchange_id)
def list_announcements_all_exchanges(self): return list_items( self.api_announcement_management.announcements_exchanges_get)
def list_exchanges(self): return list_items(self.api_exchange_management.exchanges_get)
def list_tags(self): return list_items(self.api_website_management.exchange_tags_get)
def get_coins_config_list(self): return list_items(self.api_asset_management.asset_mgmt_coins_get)
def list_projects(self): return list_items(self.api_project.projects_get, sort_key="volume", limit=1000)
def list_market_by_coin_id(self, coin_id): return list_items(self.api_project_management.get_project_market_list, coin_id=coin_id)
def list_exchanges_without_contact_by_project_id(self, project_id): return list_items(self.api_project_management.projects_id_exchanges_get, id=project_id)
def list_projects(self, open=True): return list_items(self.api_project.projects_get, open=open)
def list_applications(self): return list_items(self.api_project.applications_get, order_rule="appliedAt")
def list_ventures(self): return list_items(self.api_venture_management.accounts_ventures_get)
def get_orders(self, status=None): return list_items(self.api_entrust.entrusts_get, status=status)
def list_projects_by_account_id(self, account_id): return list_items(self.api_project.projects_account_id_get, id=account_id)
def list_exchange_by_project_id(self, project_id): return list_items( self.api_project_management.get_project_exchange_list, id=project_id)
def list_banners(self): return list_items(self.api_content_management.banners_get)
def list_orders(self): return list_items(self.api_asset_management.orders_get)
def list_contacts(self, project_id, sponsor): return list_items(self.api_project_management.projects_id_contacts_get, id=project_id, sponsor=sponsor)
def list_announcements(self): return list_items( self.api_exchange_announcement.announcements_exchanges_get)
def list_exchanges(self): return list_items(self.api_exchange.exchanges_exchanges_get)