single_market | R Documentation |
Wrapper function to get data for a specific market.
single_market(id)
id |
Numerical code pertaining to the market. You can find a market's numerical code by consulting its URL or by first calling the all markets API. |
A tibble
containing bid and ask data for a
specific 'PredictIt' market.
## Only run this example in interactive R sessions if (interactive()) { markets <- all_markets() id <- markets$id[1] single_market(id) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.