> For the complete documentation index, see [llms.txt](https://docs.sodex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sodex.com/for-developers/api-reference/wealth-api/markets.md).

# Markets

Read the market board, the market-price curve, and a public weekly equal-contribution simulation.

## Market board

`GET /markets`

```bash
curl "https://mainnet-gw.sodex.dev/api/v1/wealth/markets" \
  -H "Accept: application/json"
```

`data.quotes` is the board of listed funds. Ordinary funds take price and change from the market data platform. Bridged funds use the local NAV and APY. The latest price is this system's one-minute sample. It stays at the last sample between updates.

`fundId` and `price` are always present. Other fields are omitted when they do not apply to that row.

| Field                                                         | Type             | Description                                             |
| ------------------------------------------------------------- | ---------------- | ------------------------------------------------------- |
| `fundId`                                                      | string           | Fund identifier.                                        |
| `symbol`                                                      | string, optional | Display symbol.                                         |
| `fundType`                                                    | string, optional | `escrow_vault`, `clob`, or `bridged_vault`.             |
| `currency`                                                    | string, optional | Quote currency.                                         |
| `price`                                                       | string           | Latest sampled price.                                   |
| `prevClose`                                                   | string, optional | Previous close.                                         |
| `changePct`                                                   | string, optional | Change from the previous close.                         |
| `roi24h`, `roi1M`, `roi1Y`, `roi3Y`, `roiYtd`, `roiInception` | string, optional | Return over that window. Present on ordinary-fund rows. |
| `dividendYield`                                               | string, optional | Dividend yield.                                         |
| `apy24h`, `apy7d`, `apy1M`, `apy1Y`                           | string, optional | NAV yield. Present on bridged rows.                     |
| `dayHigh`, `dayLow`, `dayVolume`                              | string, optional | Session high, low, and volume.                          |
| `marketStatus`                                                | string, optional | Session status.                                         |
| `asOf`                                                        | string, optional | Price time.                                             |
| `priceSource`                                                 | string, optional | Where the price came from.                              |
| `priceStatus`                                                 | string, optional | `ready`, `stale`, or `unavailable`.                     |
| `yieldBasis`                                                  | string, optional | Basis of the yield figure.                              |
| `yieldSource`                                                 | string, optional | Where the yield came from.                              |
| `yieldAsOf`                                                   | string, optional | Yield time.                                             |
| `yieldStatus`                                                 | string, optional | `ready`, `stale`, or `unavailable`.                     |

## Price history

`GET /funds/{fundId}/price-history`

Close prices or candles of the underlying. The live price is not appended to the right edge. A window that falls entirely inside a closed market falls back to the latest session that traded.

```bash
curl "https://mainnet-gw.sodex.dev/api/v1/wealth/funds/CXMT/price-history?interval=1d&range=1M&type=line" \
  -H "Accept: application/json"
```

| Name       | Type   | Required | Description                                                                                            |
| ---------- | ------ | -------- | ------------------------------------------------------------------------------------------------------ |
| `fundId`   | string | Yes      | Path. Case-sensitive fund identifier.                                                                  |
| `interval` | string | No       | `1m`, `5m`, `15m`, `1h`, `4h`, or `1d`. Default `1d`.                                                  |
| `range`    | string | No       | `1D`, `1W`, `1M`, `3M`, `1Y`, or `All`. Case-insensitive. Default `1M`.                                |
| `type`     | string | No       | `line`, `candle`, `candles`, or `kline`. Default `line`. `candles` and `kline` select a candle series. |

| Field       | Type    | Description                                                                                                               |
| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------- |
| `fundId`    | string  | Fund identifier.                                                                                                          |
| `symbol`    | string  | Underlying symbol.                                                                                                        |
| `interval`  | string  | Applied interval.                                                                                                         |
| `range`     | string  | Applied range.                                                                                                            |
| `type`      | string  | Applied series type.                                                                                                      |
| `points`    | array   | Line series. Each point has `ts` and `close`.                                                                             |
| `candles`   | array   | Candle series. Each candle has `ts`, `open`, `high`, `low`, and `close`. `volume` is present when the source provides it. |
| `truncated` | boolean | Whether the returned series was truncated.                                                                                |

Read `points` for a line and `candles` for a candle series.

## DCA history

`GET /funds/{fundId}/dca-history`

A public simulation, independent of any wallet's recurring-buy plans. It assumes an equal contribution each week, priced at the close of that week's first completed session, and reports the cumulative return.

```bash
curl "https://mainnet-gw.sodex.dev/api/v1/wealth/funds/CXMT/dca-history?range=1Y" \
  -H "Accept: application/json"
```

| Name     | Type   | Required | Description                                   |
| -------- | ------ | -------- | --------------------------------------------- |
| `fundId` | string | Yes      | Path. Case-sensitive fund identifier.         |
| `range`  | string | No       | `1Y` or `3Y`. Case-insensitive. Default `1Y`. |

| Field        | Type    | Description                                                                     |
| ------------ | ------- | ------------------------------------------------------------------------------- |
| `fundId`     | string  | Fund identifier.                                                                |
| `range`      | string  | Applied range.                                                                  |
| `returnRate` | string  | Cumulative return as a fraction. `"0.05"` means 5%.                             |
| `points`     | array   | Weekly observations, oldest first. Each point has `tradeDate` and `returnRate`. |
| `ready`      | boolean | Whether a stored curve exists.                                                  |

`ready` false and an empty `returnRate` mean no stored curve.
