# Alpaca-to-influxdb

Alpaca-to-influxdb is a lightweight Docker container that ingests one-minute candlestick data for configured stock tickers from the Alpaca Markets API and stores it in your InfluxDB time-series database. It is open source and self-hosted, installable on TrueNAS, Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/2290/alpaca-to-influxdb

## Description

Alpaca to InfluxDB is a lightweight Docker container that ingests one-minute candlestick data for configured stock tickers from the Alpaca Markets API and stores it in your InfluxDB time-series database. It gives self-hosted users a simple way to collect and query historical stock-market data without writing custom ingestion scripts.

## Platform availability

Available on 2 of 10 platforms: Unraid, TrueNAS.

## Health score

78/100 (Good), based on 3 of 4 factors.
- Maintained: 92 (last commit 64 days ago)
- Popular: 90 (31,764 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- TrueNAS: https://apps.truenas.com/catalog/influxdb/
- Official website: https://influxdata.com
- Docker Hub: https://hub.docker.com/r/nixoninnes/alpaca-to-influxdb
- Unraid: https://ca.unraid.net/apps/alpaca-to-influxdb-0gwiau31mfq147?q=alpaca-to-influxdb

## Common questions

### How do I install alpaca-to-influxdb on an Unraid server?

It is a Docker container designed for Unraid. You can find alpaca-to-influxdb for Unraid OS and install it from your server via Community Apps.

### What market data does the container collect?

It collects the 1-minute candles, also called klines, for each configured Alpaca market ticker.

### Do I need to add Alpaca credentials before the first run?

Yes, add your Alpaca API key and secret key in the app settings so it can use your Alpaca account. Missing or wrong keys will stop data from being collected and sent to InfluxDB.

### Is the Alpaca CLI required for setup?

Install Alpaca CLI only if the setup instructions mention it. Without it, any setup step that calls the CLI will fail.

---
Source: Our Local Host (https://ourlocalhost.com/app/2290/alpaca-to-influxdb), the self-hosted and open-source app directory.
