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 is native.

  • base_asset_issuer: Issuer of base asset, not required if type is native.

  • counter_asset_type: Type of counter asset.

  • counter_asset_code: Code of counter asset, not required if type is native.

  • counter_asset_issuer: Issuer of counter asset, not required if type is native.

  • 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.

Link to this function all_for_order_book(selling_asset_type, buying_asset_type, params \\ []) View Source
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.