Object

When Horizon returns information about an offer, it uses the following format:

- ATTRIBUTE -

  • id string

    A unique identifier for this offer.

  • paging_tokennumber

    A cursor value for use in paginationarrow-up-right.

  • seller string

    The account ID of the account making this offer.

  • selling asset code

    The asset this offer wants to sell.

  • buying asset code

    The asset this offer wants to buy.

  • amount string

    The amount of selling that the account making this offer is willing to sell.

  • price_r object

    A precise representation of the buy and sell price of the assets on offer.Hide child attributes

    • nnumber

      The numerator.

    • dnumber

      The denominator.

  • price string

    How many units of buying it takes to get 1 unit of selling. A number representing the decimal form of price_r.

  • last_modified_ledger integer

    The sequence number of the last ledger in which this offer was modified.

  • last_modified_time string

    An ISO 8601 formatted string of last modification time.

  • sponsor string (optional)

    The account id of the sponsor who is paying the reserves for this offer.

Last updated

Was this helpful?