create_query | R Documentation |
A function to create a structured query with logical operations and nested conditions formatted for the Yahoo Finance API.
create_query(filters = list("eq", list("region", "us")),
top_operator = "and")
filters |
list. Each element is a sublist that defines a filtering condition with the following structure:
|
top_operator |
string. Top-level logical operator to combine all filters (i.e., "and", "or"). |
A nested list representing the structured query with logical operations and nested conditions formatted for the Yahoo Finance API.
filters <- list(
list("eq", list("region", "us")),
list("btwn", list("intradaymarketcap", 2000000000, 10000000000)),
list("btwn", list("intradaymarketcap", 10000000000, 100000000000)),
list("gt", list("intradaymarketcap", 100000000000)),
list("gt", list("dayvolume", 5000000))
)
query <- create_query(filters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.