getTrades: Returns all trades.

Description Usage Arguments Value Note Examples

View source: R/getTrades.R

Description

Return all partially fulfilled trades to buy or sell assets on the ledger.

Usage

1
2
3
4
getTrades(cursor = NULL, limit = 10, order = "asc", data.table = TRUE,
  base_asset_type = NULL, base_asset_code = NULL,
  base_asset_issuer = NULL, counter_asset_type = NULL,
  counter_asset_code = NULL, counter_asset_issuer = NULL, offer_id = NULL)

Arguments

cursor

numeric - optional, a paging token - where to start from. Can also be "now".

limit

numeric - optional, the number of records to return. Default is 10.

order

character - optional, "asc" or "desc"

data.table

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

base_asset_type

optional, string - type of base asset

base_asset_code

optional, string - code of base asset, not required if type is native

base_asset_issuer

optional, string - issuer of base asset, not required if type is native

counter_asset_type

optional, string - type of counter asset

counter_asset_code

optional, string - code of counter asset, not required if type is native

counter_asset_issuer

optional, string - issuer of counter asset, not required if type is native

offer_id

optional, string - filter for by a specific offer id

Value

data.table or list

Note

https://www.stellar.org/developers/horizon/reference/endpoints/trades.html

Examples

1
getTrades(limit = 20)

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