# The whole market

`GET /forwards/market` · Lithos client API · Difficulty Forwards

Source: https://lithosprotocol.org/docs/api/get-df-market

Both sides of the order book and every unsettled position, by status, with their total notional. Counts are lower bounds when `truncated` is true.

## Responses

### 200: The order book's sides and the open positions

`DFMarket`

- `height` (integer · int32, required)
- `currentEpoch` (integer · int32, required)
- `longs` (object, required): Open offers whose maker is long, so a taker goes short.
  - `offers` (integer, required)
  - `notional` (string, required): LIT base units across those offers.
- `shorts` (object, required): Open offers whose maker is short, so a taker goes long.
  - `offers` (integer, required)
  - `notional` (string, required): LIT base units across those offers.
- `positions` (integer, required): Unsettled positions.
- `openInterest` (string, required): Notional of every unsettled position, in LIT base units.
- `waiting` (integer, required)
- `inWindow` (integer, required)
- `settleable` (integer, required)
- `refundable` (integer, required)
- `epochsFunded` (integer · int64): Epochs the accumulator's balance pays a recording for, at 5 LIT each.
- `truncated` (boolean, required): Whether a scan stopped at 2,000 boxes, so the counts are lower bounds.

### 503: Node or index unavailable. Retry.

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### default: Error

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

## Example request

```bash
curl -X GET "http://localhost:9000/forwards/market"
```

## Example response

```json
{
  "height": 0,
  "currentEpoch": 0,
  "longs": {
    "offers": 0,
    "notional": "string"
  },
  "shorts": {
    "offers": 0,
    "notional": "string"
  },
  "positions": 0,
  "openInterest": "string",
  "waiting": 0,
  "inWindow": 0,
  "settleable": 0,
  "refundable": 0,
  "epochsFunded": 0,
  "truncated": true
}
```
