object

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

- ATTRIBUTE -

  • bids object

    The prices and amounts for the buyside of the asset pair.Hide child attributes

    • price_robject

      A precise representation of the bid price of the asset pair.Hide child attributes

      • nnumber

        The numerator.

      • dnumber

        The denominator.

    • price string

      The bid price of the base asset denominated in the counter asset. A number representing the decimal form of price_r.

    • amount string

      The amount of counter asset that the account making this offer is willing to buy at this price.

  • asks object

    The prices and amounts for the sellside of the asset pair.Hide child attributes

    • price_robject

      A precise representation of the ask price of the asset pair.Hide child attributes

      • nnumber

        The numerator.

      • dnumber

        The denominator.

    • price string

      The ask price of the base asset denominated in the counter asset. A number representing the decimal form of price_r.

    • amount string

      The amount of counter asset that the account making this offer is willing to sell at this price.

  • base object

    Details about the base asset. Hide child attributes

    • asset_type string

      The type for the base asset. Either native, credit_alphanum4, or credit_alphanum12.

    • asset_code string

      The code for the base asset.

    • asset_issuer string

      The Stellar address of the base asset’s issuer.

  • counter object

    Details about the counter asset. Hide child attributes

    • asset_type string

      The type for the counter asset. Either native, credit_alphanum4, or credit_alphanum12.

    • asset_code string

      The code for the counter asset.

    • asset_issuer string

      The Stellar address of the counter asset’s issuer.

Last updated

Was this helpful?