# Fetch Historical Prime Cash & Prime Debt Exchange Rates

## Get Prime Cash to Underlying exchange rates

This query can be used to fetch the underlying exchange rate between Prime Cash and the underlying currency:

```
{
primeCashMarkets{
  snapshots(orderBy: timestamp, orderDirection:desc){
    market{
      id
    }
    timestamp
    underlyingScalar
    supplyScalar
  }
  }
}
```

## Get Prime Debt to Underlying exchange rates

This query can be used to fetch the underlying exchange rate between Prime Debts and the underlying currency:

```
{
primeCashMarkets{
  snapshots(orderBy: timestamp, orderDirection:desc){
    market{
      id
    }
    timestamp
    underlyingScalar
    debtScalar
  }
  }
}
```
