single_market: Get bids and asks for a specific 'PredictIt' market

Description Usage Arguments Value Examples

Description

Wrapper function to get data for a specific market.

Usage

1

Arguments

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.

Value

A tibble containing bid and ask data for a specific 'PredictIt' market.

Examples

1
2
3
4
5
6
## Only run this example in interactive R sessions
if (interactive()) {
   markets <- all_markets()
   id <- markets$id[1]
   single_market(id)
}

rpredictit documentation built on March 26, 2020, 8:26 p.m.