---
title: "Lusid.Instrument.Quote"
slug: "lusidinstrumentquote"
updated: 2024-08-21T10:58:52Z
published: 2024-08-21T10:58:52Z
canonical: "support.lusid.com/lusidinstrumentquote"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.lusid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lusid.Instrument.Quote

| **Type** | **Read/write** | **Author** | **Availability** |
| --- | --- | --- | --- |
| [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | Finbourne | Provided with LUSID |

The `Lusid.Instrument.Quote` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that retrieves [quotes](/v1/docs/how-do-i-upload-a-market-price-or-fx-spot-rate-to-the-quote-store) held in the LUSID Quote Store.

> **Note:** The LUSID user running the query must have sufficient [access control permissions](/v1/docs/creating-policies-to-control-access-to-providers-for-different-luminesce-end-users) to both use the provider *and* read data stored in LUSID. This should automatically be the case if you are the domain owner.

See also: [Lusid.Instrument.Quote.Writer](/v1/docs/lusidinstrumentquotewriter)

## Basic usage

```sql
select * from Lusid.Instrument.Quote where <filter-expression>
```

## Query parameters

`Lusid.Instrument.Quote` has parameters that enable you to filter or refine a query.

To list available parameters, their data types, default values, and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries):

```sql
select FieldName, DataType, ParamDefaultValue, Description from Sys.Field where TableName = 'Lusid.Instrument.Quote' and FieldType = 'Parameter';
```

## Data fields

By default, `Lusid.Instrument.Quote` returns a table of data populated with particular fields (columns). You can return a subset of these fields.

To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries):

```sql
select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Lusid.Instrument.Quote' and FieldType = 'Column';
```

> **Note:** Fields marked 'main' are returned by queries that start select ^ from Lusid.Instrument.Quote...

## Examples

> **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples).

### Example 1: Retrieve the first fifty quotes

```sql
select * from Lusid.Instrument.Quote Limit 50;
```

### Example 2: Retrieve the latest quotes from a particular provider

```sql
select * from Lusid.Instrument.Quote where Provider = 'Lusid' and GetLatestQuoteOnly = True;
```

### Example 3: Retrieve all 'mid' exchange rate quotes for USD/GBP that are greater than 0.7

```sql
select * from Lusid.Instrument.Quote where QuoteType = 'Rate' and InstrumentId = 'USD/GBP' and Field = 'mid' and Value > 0.7;
```
