Ingest and normalize market data into OHLCV vectors with HNSW indexing
Install
npx skills add https://github.com/ruvnet/ruflo --skill market-ingestSKILL.md
Market Ingest
Fetch market data for a symbol, normalize to OHLCV vectors, and store with HNSW indexing for fast pattern search.
When to use
When you need to ingest raw market data (price and volume) for a symbol and prepare it for pattern detection and similarity search. This is the first step before running pattern detection or comparison.
Steps
- Fetch data -- retrieve OHLCV data for the symbol from the configured data source (REST API, CSV file, or manual input)
- Normalize -- convert raw prices to relative values:
- Open:
(open - prev_close) / prev_close - High:
(high - open) / open - Low:
(low - open) / open - Close:
(close - open) / open - Volume: Z-score against rolling mean/std
- Open:
- Vectorize -- encode each candle as a 64-dimension padded vector (5 normalized OHLCV values + padding). For semantic embeddings of pattern descriptions, use
mcp__plugin_ruflo-core_ruflo__embeddings_generate(NOTembeddings_embed— that tool name does not exist). - Store -- call
mcp__plugin_ruflo-core_ruflo__memory_store --namespace market-datato persist normalized OHLCV data with symbol+date keys. Thememory_*tool family routes by namespace; theagentdb_hierarchical-*family routes by tier (working|episodic|semantic) and ignores namespace strings, so usememory_*here. - Index -- call
mcp__plugin_ruflo-core_ruflo__ruvllm_hnsw_addto add vectors to the HNSW index for nearest-neighbor search. - Report -- summarize: candles ingested, date range, price range, average volume
CLI alternative
npx @claude-flow/cli@latest memory store --namespace market-data --key "symbol-SYMBOL-DATE" --value "OHLCV_JSON"
Related skills
azure-kustomicrosoft605KQuery and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetry, and time series analysis. WHEN: KQL queries, Kusto database queries, Azure Data Explorer, ADX clusters, log analytics, time series data, IoT telemetry, anomaly detection.supabase-postgres-best-practicessupabase421KPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg_restore) or imporprisma-database-setupprisma321KGuides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changing databases, or troubleshooting connection issues. Triggers on "configure postgres", "connect to mysql", "setup mongodb", "sqlite setup".prisma-client-apiprisma320KPrisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".
