# DEX

`DEX` entity represents DEXes operating on the Casper Network.

### Properties

The `DEX` entity has the following properties:

| Property | Type     | Description    |
| -------- | -------- | -------------- |
| `id`     | `int`    | DEX identifier |
| `name`   | `string` | DEX name       |

**Example**

```json
{
  "id": 1,
  "name": "CSPR.trade"
}
```

### Optional properties

None

### Relations

The `DEX` entity has the following relations with other entities:

| Entity                                                                                            | Mapping property | Description                                          |
| ------------------------------------------------------------------------------------------------- | ---------------- | ---------------------------------------------------- |
| [`Fungible token rate`](https://docs.cspr.cloud/rest-api/fungible-token-rate)                     | `dex_id`         | Fungible token rates are tracked for different DEXes |
| [`Fungible token daily rate`](https://docs.cspr.cloud/rest-api/fungible-token-daily-rate)         | `dex_ids`        | DEX identifiers used in the aggregation              |
| [`Fungible token DEX rate`](https://docs.cspr.cloud/rest-api/fungible-token-dex-rate)             | `dex_id`         | DEX rates are tracked for token pairs                |
| [`Fungible token daily DEX rate`](https://docs.cspr.cloud/rest-api/fungible-token-daily-dex-rate) | `dex_id`         | Daily DEX rates are tracked for token pairs          |

## Endpoints

The `DEX` entity has the following endpoints:

* [Get DEXes](https://docs.cspr.cloud/rest-api/dex/get-dexes)
