Stellar v0.3.0 Stellar.Trades View Source
Functions for interacting with Trades
Link to this section Summary
Link to this section Functions
Returns all trades
optional params
can take any of the following.:
base_asset_type
: Type of base asset.base_asset_code
: Code of base asset, not required if type isnative
.base_asset_issuer
: Issuer of base asset, not required if type isnative
.counter_asset_type
: Type of counter asset.counter_asset_code
: Code of counter asset, not required if type isnative
.counter_asset_issuer
: Issuer of counter asset, not required if type isnative
.offer_id
: filter for by a specific offer id.cursor
: A paging token, specifying where to start returning records from.order
: The order in which to return rows, “asc” or “desc”.limit
: Maximum number of records to return.
all_for_order_book(Stellar.asset_type(), Stellar.asset_type(), Keyword.t()) :: {Stellar.status(), map()}
Returns all trades for given order book
optional params
can take any of the following.:
selling_asset_code
: Code of the Asset being sold.selling_asset_issuer
: Account ID of the issuer of the Asset being sold.buying_asset_code
: Code of the Asset being bought.buying_asset_issuer
: Account ID of the issuer of the Asset being bought.limit
: Maximum number of records to return.