Available languages: [Python](https://databento.com/docs/api-reference-data/helpers/security-master-get-last-params.python.md) · [Rust](https://databento.com/docs/api-reference-data/helpers/security-master-get-last-params.rust.md) · [HTTP](https://databento.com/docs/api-reference-data/helpers/security-master-get-last-params.http.md)

Source: https://databento.com/docs/api-reference-data/helpers/security-master-get-last-params


### GetRangeParams

The parameter struct and builder for [ReferenceClient::security_master::get_last](https://databento.com/docs/api-reference-data/security-master/security-master-get-last.md).

The builder can be instantiated with the associated function `builder()`, and the struct is created from the builder with the `build()` method.
For every field, there is an identically named setter method on the builder.

#### API method

```rust
pub struct GetLastParams {
    pub symbols: Symbols,
    pub stype_in: SType,
    pub countries: Vec<Country>,
    pub security_types: Vec<SecurityType>,
    pub allocate_isins: bool,
}
```

#### Fields

| Parameter | Type | Description |
| `symbols` | Symbols | The symbols to filter for. Takes up to 2,000 symbols per request. If more than 1 symbol is specified, the data is merged and sorted by time. If `'ALL_SYMBOLS'` or `None` then will select **all** symbols by default. |
| `stype_in` | SType | The [symbology type](https://databento.com/docs/api-reference-data/basics/symbology.md) of input `symbols`. |
| `countries` | Vec\ | The listing countries to filter for. Takes any number of country codes per request as two letter ISO 3166-1 alpha-2 strings. If not specified then will select **all** countries by default. See [CNTRY](https://databento.com/docs/conventions/reference-data-enums.md#cntry) enum. |
| `security_types` | Vec\ | The security types to filter for. If not specified then will select **all** security types by default. See [SECTYPE](https://databento.com/docs/conventions/reference-data-enums.md#sectype) enum. |
| `allocate_isins` | bool | Whether the request should allocate any new ISINs for plans that are ISIN-limited. If `false`, the request will drop any rows that would create new allocations. Defaults to `true`. |

#### Example usage

```rust
use databento::{
    ReferenceClient,
    dbn::SType,
    reference::{Country, security::GetLastParams},
};

assert_eq!(
    GetLastParams::builder()
        .symbols("AAPL")
        .countries([Country::Us])
        .build(),
    GetLastParams {
        symbols: "AAPL".into(),
        stype_in: SType::RawSymbol,
        countries: vec![Country::Us],
        security_types: vec![],
        allocate_isins: true
    }
);
```
