# OpenFinApi

Canonical page: https://www.adaptabletools.com/docs/reference/openfinapi

The OpenFin plugin: notifications, and starting or stopping live data.

```ts title="TypeScript"
export interface OpenFinApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [getCurrentLiveOpenFinReport()](https://www.adaptabletools.com/docs/reference/openfinapi.md#getcurrentliveopenfinreport) | [`OpenFinReport`](https://www.adaptabletools.com/docs/reference/openfinreport.md)` \| undefined` | Retrieves the OpenFin currently sending live data to Excel |
| [getOpenFinState()](https://www.adaptabletools.com/docs/reference/openfinapi.md#getopenfinstate) | [`OpenFinState`](https://www.adaptabletools.com/docs/reference/openfinstate.md)` \| undefined` | Retrieves the OpenFin section of System State |
| [getOpenFinThrottleTime()](https://www.adaptabletools.com/docs/reference/openfinapi.md#getopenfinthrottletime) | `number \| undefined` | Retrieves the Throttle time for live updates |
| [getPluginOptions()](https://www.adaptabletools.com/docs/reference/openfinapi.md#getpluginoptions) | [`OpenFinPluginOptions`](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md) | Retrieves the OpenFinPlugOptions provided in OpenFin Plugin |
| [isOpenFinAvailable()](https://www.adaptabletools.com/docs/reference/openfinapi.md#isopenfinavailable) | `boolean` | Whether OpenFin is available |
| [isOpenFinRunning()](https://www.adaptabletools.com/docs/reference/openfinapi.md#isopenfinrunning) | `boolean` | Whether OpenFin is currently running |
| [showNotification(notification)](https://www.adaptabletools.com/docs/reference/openfinapi.md#shownotification) | `void` | Shows a notification in OpenFin |
| [showNotificationForAlert(alert)](https://www.adaptabletools.com/docs/reference/openfinapi.md#shownotificationforalert) | `void` | Displays Alert as an OpenFin Notification |
| [startLiveData(OpenFinReport)](https://www.adaptabletools.com/docs/reference/openfinapi.md#startlivedata) | `void` | Runs Report in Excel as Live Report (so updates as AdapTable ticks) |
| [stopLiveData()](https://www.adaptabletools.com/docs/reference/openfinapi.md#stoplivedata) | `void` | Stops live data; data will no longer be sent from AdapTable to Excel |

## Method Details

### getCurrentLiveOpenFinReport

Retrieves the OpenFin currently sending live data to Excel

```ts title="TypeScript"
getCurrentLiveOpenFinReport(): OpenFinReport | undefined;
```

###### Returns

 The OpenFin currently sending live data to Excel

[`OpenFinReport`](https://www.adaptabletools.com/docs/reference/openfinreport.md)` | undefined`

### getOpenFinState

Retrieves the OpenFin section of System State

```ts title="TypeScript"
getOpenFinState(): OpenFinState | undefined;
```

###### Returns

 The OpenFin section of System State

[`OpenFinState`](https://www.adaptabletools.com/docs/reference/openfinstate.md)` | undefined`

### getOpenFinThrottleTime

Retrieves the Throttle time for live updates

```ts title="TypeScript"
getOpenFinThrottleTime(): number | undefined;
```

###### Returns

 The Throttle time for live updates

`number | undefined`

### getPluginOptions

Retrieves the OpenFinPlugOptions provided in OpenFin Plugin

```ts title="TypeScript"
getPluginOptions(): OpenFinPluginOptions;
```

###### Returns

 The OpenFinPlugOptions provided in OpenFin Plugin

[`OpenFinPluginOptions`](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md)

### isOpenFinAvailable

Whether OpenFin is available

```ts title="TypeScript"
isOpenFinAvailable(): boolean;
```

###### Returns

 `true` when OpenFin is available

`boolean`

### isOpenFinRunning

Whether OpenFin is currently running

```ts title="TypeScript"
isOpenFinRunning(): boolean;
```

###### Returns

 `true` when OpenFin is currently running

`boolean`

### showNotification

Shows a notification in OpenFin

```ts title="TypeScript"
showNotification(notification: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| notification | `any` | OpenFin notification to show |

###### Returns

`void`

### showNotificationForAlert

Displays Alert as an OpenFin Notification

```ts title="TypeScript"
showNotificationForAlert(alert: AdaptableAlert): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| alert | [`AdaptableAlert`](https://www.adaptabletools.com/docs/reference/adaptablealert.md) | Alert to display |

###### Returns

`void`

### startLiveData

Runs Report in Excel as Live Report (so updates as AdapTable ticks)

```ts title="TypeScript"
startLiveData(OpenFinReport: OpenFinReport): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| OpenFinReport | [`OpenFinReport`](https://www.adaptabletools.com/docs/reference/openfinreport.md) | Report to Run |

###### Returns

`void`

### stopLiveData

Stops live data; data will no longer be sent from AdapTable to Excel

```ts title="TypeScript"
stopLiveData(): void;
```

###### Returns

`void`
