Is there a comprehensive guide which shows how to build search functions in python. For example, I need to program a loan search function in the form below but with other search parameters and output. How do I identify how to add other search parameters and which output fields are available:
df = rd.discovery.search(
        view = rd.discovery.Views.LOAN_INSTRUMENTS,
        top = 5,
        filter = "Currency  in ('USD')",
        select = "PermID,Currency"
    )