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

[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.

## symbol {#symbol}

```ts
symbol: ISymbolInstrument;
```

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

## new_sym {#new_sym}

```ts
new_sym(
    tickerid: string,
    period: string,
    currencyCode?: string,
    unitId?: string,
    subsessionId?: string,
  ): ISymbolInstrument;
```

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

| Parameter | Type | Required |
| --- | --- | --- |
| `tickerid` | `string` | Yes |
| `period` | `string` | Yes |
| `currencyCode` | `string` | No |
| `unitId` | `string` | No |
| `subsessionId` | `string` | No |

## select_sym {#select_sym}

```ts
select_sym(i: number): void;
```

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

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

## new_var {#new_var}

```ts
new_var(value?: number): IPineSeries;
```

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

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

## new_unlimited_var {#new_unlimited_var}

```ts
new_unlimited_var(value?: number): IPineSeries;
```

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

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

## new_ctx {#new_ctx}

```ts
new_ctx(): IContext;
```

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

## is_main_symbol {#is_main_symbol}

```ts
is_main_symbol(symbol: ISymbolInstrument | undefined): boolean;
```

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

| Parameter | Type | Required |
| --- | --- | --- |
| `symbol` | `ISymbolInstrument &#124; undefined` | Yes |

## Related types

- [ISymbolInstrument](https://docs.lumencharts.com/charting-library/api/ISymbolInstrument)
- [IPineSeries](https://docs.lumencharts.com/charting-library/api/IPineSeries)

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