run_query: Function to run a raw GraphQL query on the API interface

Description Usage Arguments Value Examples

View source: R/source.R

Description

Function to run a raw GraphQL query on the API interface

Usage

1
run_query(query, id = get_public_id(), key = get_api_key())

Arguments

query

The graphQL query to run on the API as a string in single quotes

id

The public id of the Numerai application

key

The Numerai API key

Value

The parsed json content returned from the request

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
## Run Custom GraphQL code from R
custom_query <- "query queryname {
rounds (number:82) {
closeTime
}
}"
run_query(query=custom_query)$data

## End(Not run)

Rnumerai documentation built on Oct. 9, 2021, 1:07 a.m.