Skip to contents

In sandbox mode, pa_sports(), pa_odds(), and pa_props() are routed to ParlayAPI's keyless /v1/sandbox/ endpoints, which serve synthetic but structurally identical data. No API key is needed, so examples, tests, and the package vignette all run keyless.

Usage

pa_sandbox(enable = TRUE)

Arguments

enable

Logical, TRUE to route requests to the sandbox.

Value

Invisibly, the previous value of the toggle.

Details

Sandbox data notes:

  • Prices are always returned in American format, whatever odds_format you request.

  • pa_historical() and pa_closing_odds() have no sandbox equivalent and will error in sandbox mode.

Every request function also accepts a sandbox argument that overrides this global toggle for a single call.

Examples

pa_sandbox(TRUE)
pa_sandbox(FALSE)