fix alpaca news auth and native worker wiring
This commit is contained in:
parent
e9739f5dc9
commit
7d25608b35
21 changed files with 285 additions and 80 deletions
|
|
@ -27,6 +27,10 @@ NEXT_PUBLIC_NBBO_MAX_AGE_MS=1000
|
|||
# Options ingest
|
||||
OPTIONS_INGEST_ADAPTER=synthetic
|
||||
ALPACA_API_KEY=
|
||||
ALPACA_API_KEY_ID=
|
||||
ALPACA_KEY_ID=
|
||||
ALPACA_API_SECRET_KEY=
|
||||
ALPACA_SECRET_KEY=
|
||||
ALPACA_REST_URL=https://data.alpaca.markets
|
||||
ALPACA_WS_BASE_URL=wss://stream.data.alpaca.markets/v1beta1
|
||||
ALPACA_FEED=indicative
|
||||
|
|
|
|||
|
|
@ -161,8 +161,10 @@ Set the adapter values and credentials in `.env`:
|
|||
|
||||
- `OPTIONS_INGEST_ADAPTER=alpaca`
|
||||
- `EQUITIES_INGEST_ADAPTER=alpaca`
|
||||
- `ALPACA_KEY_ID=...`
|
||||
- `ALPACA_SECRET_KEY=...`
|
||||
- `ALPACA_API_KEY_ID=...`
|
||||
- `ALPACA_API_SECRET_KEY=...`
|
||||
|
||||
The older single-variable `ALPACA_API_KEY` fallback is still accepted for legacy setups, but Alpaca's current market-data auth expects a key ID plus secret key pair.
|
||||
|
||||
### Databento mode
|
||||
|
||||
|
|
@ -284,7 +286,7 @@ Scoped Docker deploys now build only the selected image set and then restart onl
|
|||
- `--web-only`: `docker compose build web`, then `docker compose up -d web`
|
||||
- `--api-only`: `docker compose build api`, then `docker compose up -d api`
|
||||
- `--services-only`: builds and restarts `api`, `compute`, `candles`, `ingest-options`, and `ingest-equities`
|
||||
- `--workers-only`: builds and restarts `compute`, `candles`, `ingest-options`, and `ingest-equities` without touching `web` or `api`
|
||||
- `--workers-only`: builds and restarts `compute`, `candles`, `ingest-options`, `ingest-equities`, and `ingest-news` without touching `web` or `api`
|
||||
- `--fast`: when no explicit scope flag is given, treats the deploy as `--services-only` and skips the public API route suite for quicker completion. It still runs remote service health checks.
|
||||
|
||||
Use `--no-build` only when the image is already correct and you need Compose to recreate or restart containers, such as after changing server-side environment values that do not affect a Next.js build-time variable. Do not use `--no-build` for dependency changes, application source changes, or `NEXT_PUBLIC_*` changes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue