collect: Runs multiple calls against an endpoint to create a larger...

Description Usage Arguments Value Note Examples

View source: R/collect.R

Description

Get the first n records, most recent n records or records from a range.

Usage

1
2
collect(endpoint, n = 11, order = "asc", data.table = TRUE,
  verbose = FALSE)

Arguments

endpoint

character - one of: payments, operations, effects, trades, transactions, ledgers.

n

numeric - the number of *pages* of records to return. Default is 1, maximum is currently 3600 due to the rate limit for the Horizon API. Each "page" will return 200 records.

order

character - optional, "asc" or "desc"

data.table

boolean - if TRUE, a data.table is returned. If FALSE or NULL, a list is returned.

verbose

boolean - if TRUE, the results and number of rows returned will be printed to the console.

Value

data.table

Note

https://www.stellar.org/developers/horizon/reference/paging.html

Examples

1
collect(endpoint = "ledgers", n = 3)

stellaRbase documentation built on April 11, 2018, 5:03 p.m.