@export_as_api
def instruments(id_or_symbols):
 if isinstance(id_or_symbols, six.string_types):
  return get_data_proxy().instrument(id_or_symbols)
 return map(get_data_proxy().instrument, id_or_symbols)

@ export_as_api def instruments ( id_or_symbols ) : if isinstance ( id_or_symbols , six . string_types ) : return get_data_proxy ( ) . instrument ( id_or_symbols ) return map ( get_data_proxy ( ) . instrument , id_or_symbols )
convert a string or a list of strings as order_book_id to instrument object(s) .