chore: initial import

This commit is contained in:
u1
2026-01-06 12:33:47 +01:00
commit 4ea922eb45
9 changed files with 7239 additions and 0 deletions

17
README.md Normal file
View File

@@ -0,0 +1,17 @@
# trade-ingestor
Worker ingestujący ticki (Drift oracle) i zapisujący do `trade-api` (albo bezpośrednio do Hasury).
## Konfiguracja (najczęstsza)
- `INGEST_VIA=api`
- `INGEST_API_URL=http://trade-api:8787` (base URL; endpoint to `/v1/ingest/tick`)
- token write w pliku (domyślnie) `/app/tokens/alg.json` albo env `INGEST_AUTH_TOKEN`
- RPC: `tokens/heliusN.json` (w k3s montowane jako Secret)
## Docker
```bash
docker build -t trade-ingestor .
docker run --rm trade-ingestor
```