# Get Price History Check

This query returns a price history check report on a given date.

[![Screenshot 2026-01-13 at 20.52.41.png](https://docs.finmars.com/uploads/images/gallery/2026-01/scaled-1680-/screenshot-2026-01-13-at-20-52-41.png)](https://docs.finmars.com/uploads/images/gallery/2026-01/screenshot-2026-01-13-at-20-52-41.png)

---

### GraphQL Query

```graphql
query GetPriceHistoryCheck {
  price_history_check(
    input: {
      report_date: "2024-05-01"
      pricing_policy: "com.finmars.standard-pricing:standard"
    }
  ) {
    items {
      id
			type
      name
      position_size
      accounting_date
      transaction_currency_id
      transaction_currency_name
      transaction_currency_user_code
      settlement_currency_name
      settlement_currency_user_code
    }
  }
}
```

---

## Input Highlights

### Report Date

```graphql
report_date: "2024-05-01"
```

- Snapshot date
- ISO date format
- Required field

### PL First Date

```graphql
pl_first_date: "2024-01-01"
```

- Snapshot date
- ISO date format
- Required field
- Basically its a "date from"

---

### Report Currency

```graphql
report_currency: "USD"
```

- Output currency
- Must exist in the system

---

### Pricing Policy

```graphql
pricing_policy: "com.finmars.standard-pricing:standard"
```

- Defines valuation rules
- Uses pricing engine configuration
- Required for valuation

---

### Portfolios

```graphql
portfolios: ["Commodity Portfolio"]
```

- List of portfolio user codes
- Supports multiple portfolios

---

### Python Code

```python
import requests

url = "https://<domain_name>/<realm_code>/<space_code>/graphql/"

headers = {
    "Authorization": "Bearer <access_token>",
    "Content-Type": "application/json"
}

payload = {
    "query": """
query GetPriceHistoryCheck {
  price_history_check(
    input: {
      report_date: "2024-05-01"
      pricing_policy: "com.finmars.standard-pricing:standard"
    }
  ) {
    items {
      id
			type
      name
      position_size
      accounting_date
      transaction_currency_id
      transaction_currency_name
      transaction_currency_user_code
      settlement_currency_name
      settlement_currency_user_code
    }
  }
}
    """
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

---

### Notes

- <span style="white-space: pre-wrap;">This is </span>**not**<span style="white-space: pre-wrap;"> a list query.</span>
- No pagination.
- <span style="white-space: pre-wrap;">Uses </span>`<span class="editor-theme-code">input</span>`<span style="white-space: pre-wrap;"> instead of </span>`<span class="editor-theme-code">filters</span>`.
- Report queries execute calculations.