> ## Documentation Index
> Fetch the complete documentation index at: https://developers.stellar.org/llms.txt
> Use this file to discover all available pages before exploring further.

# The Order Book Object

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

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

**bids** `object`

The prices and amounts for the buyside of the asset pair.

**bids properties**

**price\_r** `object`

A precise representation of the bid price of the asset pair.

**price\_r properties**

**n** `number`

The numerator.

**d** `number`

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.

**asks properties**

**price\_r** `object`

A precise representation of the ask price of the asset pair.

**price\_r properties**

**n** `number`

The numerator.

**d** `number`

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.

**base properties**

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

**counter properties**

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

The [latest ledger](https://developers.stellar.org/docs/data/apis/horizon/api-reference/structure/consistency.md) known to Horizon is included as an HTTP header in the response.

```json Example theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "bids": [
    {
      "price_r": {
        "n": 6014600,
        "d": 102275119
      },
      "price": "0.0588080",
      "amount": "0.1722469"
    },
    {
      "price_r": {
        "n": 1250000,
        "d": 21831117
      },
      "price": "0.0572577",
      "amount": "0.2991796"
    }
  ],
  "asks": [
    {
      "price_r": {
        "n": 118163,
        "d": 2000000
      },
      "price": "0.0590815",
      "amount": "8057.2710223"
    },
    {
      "price_r": {
        "n": 60627,
        "d": 1000000
      },
      "price": "0.0606270",
      "amount": "10000.0000000"
    }
  ],
  "base": {
    "asset_type": "native"
  },
  "counter": {
    "asset_type": "credit_alphanum4",
    "asset_code": "USD",
    "asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
  }
}
```
