get list of exchanges and their available instruments
(self)
| 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''' |
no test coverage detected