MCPcopy Create free account
hub / github.com/AsyncAlgoTrading/aat / query_exchanges

Method query_exchanges

aat/query.py:66–68  ·  view source on GitHub ↗

get list of exchanges and their available instruments

(self)

Source from the content-addressed store, hash-verified

64 return self._instruments[exchange] if exchange else reduce(operator.concat, self._instruments.values())
65
66 def query_exchanges(self) -> List[Dict]:
67 '''get list of exchanges and their available instruments'''
68 return [{'exchange': name, 'instruments': self.query_instruments(name)} for name, ex in self._exchanges.items()]
69
70 def _paginate(self, instrument: Instrument, lst: list, lst_sub: list, page: int = 1) -> list:
71 '''paginate a data request'''

Callers 1

get_dataMethod · 0.80

Calls 1

query_instrumentsMethod · 0.95

Tested by

no test coverage detected