open-index/open-npm huggingface dataset:
npm package: @stockalert/sdk
Description: Official JavaScript/TypeScript SDK for StockAlert.pro API
Author: StockAlert.pro
Latest version: 2.1.2

# StockAlert.pro JavaScript/TypeScript SDK

Official SDK for the StockAlert.pro API.

## Installation

```bash
npm install @stockalert/sdk
```

## Quick Start

```typescript
import { StockAlert } from '@stockalert/sdk';

const client = new StockAlert({
  apiKey: 'sk_your_api_key'
});

// Create alert
const alert = await client.alerts.create({
  symbol: 'AAPL',
  condition: 'price_above',
  threshold: 200
});
```

## Documentation

Full documentation: [https://stockalert.pro/api/docs](https://stockalert.pro/api/docs)

## License

MIT
npm package: @stockfind/twelve-data
Description: TypeScript SDK for the Twelve Data financial API
Author: Ru Chern CHONG
Latest version: 0.2.0

# @stockfind/twelve-data

TypeScript SDK for the [Twelve Data](https://twelvedata.com) financial API.   

## Planned Features

- Full coverage of 60+ REST endpoints (market data, fundamentals, analysis, technical indicators, etc.)
- Real-time price streaming via WebSocket
- Fully typed request/response interfaces
- Zero runtime dependencies (native `fetch`)
- Namespaced API design (`td.marketData.*`, `td.fundamentals.*`, `td.technicalIndicators.*`)

## Research

Design docs and API reference are stored as a Claude Code skill in `.claude/skills/twelve-data-sdk/`.
npm package: @stockholm-transit/departures
Description: API for Storstockholms Lokaltrafiks' departures
Author: Rafael Belliard
Latest version: 1.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# 🇸🇪 Storstockholms Lokaltrafiks (SL) Departures 🚆

- With this API, you can get real-time information regarding bus, metro, commuter train and local train.
- Trafiklab documentation is available [here](https://www.trafiklab.se/api/trafiklab-apis/sl/departures-4/).

## Usage

```javascript
import * as departures from '@stockholm-transit/departures';
import { DepartureParameters } from '@stockholm-transit/departures';

departures.init({ apiKey: process.env.STOCKHOLM_DEPARTURES_API_KEY });

const params: DepartureParameters = { siteId: '9001' };
departures.query(params).then((data) => res.send(data.ResponseData));
```

## Functions

### init

```javascript
(config: StockholmBaseConfig) => void
```

### query

```javascript
(params: DepartureParameters) => Promise<DepartureResponse | undefined>
```

## Types

### StockholmBaseConfig

| Parameter | Type   | Required | Description        |
| --------- | ------ | -------- | ------------------ |
| apiKey    | string | true     | Trafiklab API key. |

- Read how to generate Trafiklab API keys [here](https://www.trafiklab.se/docs/using-trafiklab/getting-api-keys/).

### DepartureParameters

| Parameter  | Type    | Required | Description                                        | Default |
| ---------- | ------- | -------- | -------------------------------------------------- | ------- |
| siteId     | string  | true     | Unique identification number for the place.        |         |
| timeWindow | boolean | false    | Pick up departures within the desired time window. | `60`    |

## Building

Run `npx nx build @stockholm-transit/departures` to build the library.

## Running unit tests

Run `npx nx test @stockholm-transit/departures` to execute the unit tests via [Jest](https://jestjs.io).

## Related APIs

- [Location lookup](https://www.npmjs.com/package/@stockholm-transit/locations)
- [Service alerts](https://www.npmjs.com/package/@stockholm-transit/service-alerts)
npm package: @stockholm-transit/locations
Description: API for Storstockholms Lokaltrafiks' locations
Author: Rafael Belliard
Latest version: 1.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# 🇸🇪 Storstockholms Lokaltrafiks (SL) Location lookup API 🚆

- With this API, you can get information about a place by submitting parts of the place name. You can choose to search only for stop areas or stops, addresses and locations.
- Trafiklab documentation is available [here](https://www.trafiklab.se/api/trafiklab-apis/sl/stop-lookup/).

## Usage

```javascript
import * as locations from '@stockholm-transit/locations';
import { LocationParameters } from '@stockholm-transit/locations';

locations.init({ apiKey: process.env.STOCKHOLM_LOCATIONS_API_KEY });

const params: LocationParameters = { q: 'Stockholm', maxResults: 10 };
locations.query(params).then((data) => res.send(data.ResponseData));
```

## Functions

### init

```javascript
(config: StockholmBaseConfig) => void
```

### query

```javascript
(params: LocationParameters) => Promise<LocationResponse | undefined>
```

## Types

### StockholmBaseConfig

| Parameter | Type   | Required | Description        |
| --------- | ------ | -------- | ------------------ |
| apiKey    | string | true     | Trafiklab API key. |

- Read how to generate Trafiklab API keys [here](https://www.trafiklab.se/docs/using-trafiklab/getting-api-keys/).

### LocationParameters

| Parameter    | Type                                            | Required | Description                              | Default |
| ------------ | ----------------------------------------------- | -------- | ---------------------------------------- | ------- |
| q            | string                                          | true     | The search string. (Max. 20 characters). |         |
| stationsOnly | boolean                                         | false    | If `true` only stops are returned.       | `true`  |
| maxResults   | number                                          | false    | Maximum number of results from 0-50.     | `10`    |
| type         | [LocationParameterType](#LocationParameterType) | false    | Type filter for places.                  | `"ALL"` |

### LocationParameterType

- `"S"`: Search for stations only.
- `"P"`: Search for only POI (points of interest).
- `"A"`: Search only for addresses.
- `"SP"`: Search for stations and POI.
- `"SA"`: Search only for stations and Addresses.
- `"AP"`: Search only for addresses and POI.
- `"ALL"`: Search for addresses, stations and POI.

## Building

Run `npx nx build @stockholm-transit/locations` to build the library.

## Running unit tests

Run `npx nx test @stockholm-transit/locations` to execute the unit tests via [Jest](https://jestjs.io).

## Related APIs

- [Departures](https://www.npmjs.com/package/@stockholm-transit/departures)
- [Service alerts](https://www.npmjs.com/package/@stockholm-transit/service-alerts)
npm package: @stockholm-transit/service-alerts
Description: API for Storstockholms Lokaltrafiks' service alerts
Author: Rafael Belliard
Latest version: 1.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# 🇸🇪 Storstockholms Lokaltrafiks (SL) Service alerts API 🚆

- With this API, you can get information about current and planned disturbances in SL traffic. With the API, you can ask questions about disturbances on, for example, a certain line or a certain type of traffic. The answer consists of disturbance messages with certain meta-information.
- Trafiklab documentation is available [here](https://www.trafiklab.se/api/trafiklab-apis/sl/service-alerts-2/).

## Usage

```javascript
import * as serviceAlerts from '@stockholm-transit/service-alerts';
import { ServiceAlertParameters } from '@stockholm-transit/service-alerts';

serviceAlerts.init({ apiKey: process.env.STOCKHOLM_SERVICE_ALERTS_API_KEY });

const params: ServiceAlertParameters = { siteId: '9001' };
serviceAlerts.query(params).then((data) => res.send(data.ResponseData));
```

## Functions

### init

```javascript
(config: StockholmBaseConfig) => void
```

### query

```javascript
(params: ServiceAlertParameters) => Promise<ServiceAlertResponse | undefined>
```

## Types

### StockholmBaseConfig

| Parameter | Type   | Required | Description        |
| --------- | ------ | -------- | ------------------ |
| apiKey    | string | true     | Trafiklab API key. |

- Read how to generate Trafiklab API keys [here](https://www.trafiklab.se/docs/using-trafiklab/getting-api-keys/).

### ServiceAlertParameters

| Parameter     | Type                            | Required | Description                                    | Default |
| ------------- | ------------------------------- | -------- | ---------------------------------------------- | ------- |
| transportMode | [TransportMode](#TransportMode) | false    | Current traffic types. Comma-separated string. |         |
| lineNumber    | string                          | false    | Max 10 lines. Comma-separated string.          |         |
| siteId        | string                          | true     | Unique identification number for the place.    |         |
| fromDate      | string                          | false    | Start date for the current validity period.    |         |
| toDate        | string                          | false    | End date for the current validity period.      |         |

### TransportMode

- `"BUS"`
- `"METRO"` (Tunnelbana)
- `"TRAIN"` (Pendeltåg)
- `"TRAM"`
- `"SHIP"`

## Building

Run `npx nx build @stockholm-transit/service-alerts` to build the library.

## Running unit tests

Run `npx nx test @stockholm-transit/service-alerts` to execute the unit tests via [Jest](https://jestjs.io).

## Related APIs

- [Location lookup](https://www.npmjs.com/package/@stockholm-transit/locations)
- [Service alerts](https://www.npmjs.com/package/@stockholm-transit/service-alerts)
npm package: @stockholm-transit/shared
Description: Shared library for @stockholm-transit/*
Author: Rafael Belliard
Latest version: 1.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @stockholm-transit/shared

## Building

Run `npx nx build @stockholm-transit/shared` to build the library.

## Running unit tests

Run `npx nx test @stockholm-transit/shared` to execute the unit tests via [Jest](https://jestjs.io).