Return all partially fulfilled trades to buy or sell assets on the ledger.
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)
numeric - optional, a paging token - where to start from. Can also be "now".
numeric - optional, the number of records to return. Default is 10.
character - optional, "asc" or "desc"
boolean - if TRUE, a data.table is returned. If FALSE or NULL, a list is returned.
optional, string - type of base asset
optional, string - code of base asset, not required if type is native
optional, string - issuer of base asset, not required if type is native
optional, string - type of counter asset
optional, string - code of counter asset, not required if type is native
optional, string - issuer of counter asset, not required if type is native
optional, string - filter for by a specific offer id
data.table or list
# NOT RUN {
getTrades(limit = 20)
# }
Run the code above in your browser using DataLab