<!-- Public documentation export; not library implementation source. -->
# IPineSeries

[Integration guide](https://docs.lumencharts.com/charting-library/reference/compatibility) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## get {#get}

```ts
get(n?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n` | `number` | No |

## set {#set}

```ts
set(value: number): void;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `value` | `number` | Yes |

## indexOf {#indexof}

```ts
indexOf(time: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `time` | `number` | Yes |

## adopt {#adopt}

```ts
adopt(source: IPineSeries, destination: IPineSeries, mode: 0 | 1): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `destination` | `IPineSeries` | Yes |
| `mode` | `0 &#124; 1` | Yes |

---
Documentation page: https://docs.lumencharts.com/charting-library/api/IPineSeries
