Melaya — Build AI agents for any job. Agentic platform for research, ops, outreach, reporting — and the only one where agents can actually trade.

// USE CASE · TRADER

Brief every trade with a quant crew,click send when you agree.

You are one trader, six screens, and the next setup is ten minutes from the open. Reading the funding tape, pulling the macro calendar, and stress-testing position size before you click is real work, and skipping any of it is how a clean week ends Friday in the red. Melaya gives you a six-persona quant crew that runs the pre-trade research pass, sizes with fractional Kelly, devil-advocates the thesis, and stages every order for your click. The audit log is your trade journal.

See the pipelines ↓
01
// What breaks today

The status quo costs more than the agent does.

Three pains every sales and BD team hits weekly. Each one is what your reps actually complain about, not what a feature page would call them.

  1. 01

    Pre-trade prep eats two hours a morning across funding rates, open interest, FRED calendar, and last week's journal, and the setup is already half gone when you finally size.

  2. 02

    Position sizing drifts to gut feel after three winning days, then one 4 percent loss on a single name eats the month because Kelly never got a second look.

  3. 03

    Post-trade review never happens on a busy week, so the same overfit setup gets re-entered next Monday and you cannot say what changed.

02
// Pipelines you can build

Compose. Approve. Replay.

Every pipeline below is a shape you wire on the canvas using the crew and tools further down. Not a feature we ship for you, a pattern you configure.

P01

Run the morning setup brief

QuantAnalyst pulls funding, OI, and the FRED 30 day calendar, MacroEconomist context is held in Static context so the regime call stays consistent, ReportWriter compresses to one page. Brief lands in the trader's inbox before the open.

P02

Verify the backtest on this regime

QuantAnalyst kicks off a fresh melaya_backtest_start on the current six month window, then pulls the sweep results to check parameter sensitivity. Cross-run memory carries the last sweep so the trader sees what drifted week over week.

P03

Stress test the position size

ChiefRiskOfficer runs parametric and historical VaR plus CVaR, replays Flash Crash, COVID, and FTX scenarios, and prints the exact circuit-breaker level. HITL gate blocks the order stage until the trader acknowledges the worst case in dollars.

P04

Skeptic review before the click

QuantSkeptic applies Deflated Sharpe for multiple-testing correction, names one failure mode, and returns APPROVED, CONDITIONAL, or REJECTED. The rag_retrieve tool pulls the contradicting paper or the last losing trade on the same setup.

P05

Stage the order for one-click send

PortfolioManager shows the Kelly fraction with the formula and the dollar size, ExecutionSpecialist picks the order type and prints fill-rate and slippage in basis points. The order routes through melaya_exec_sim_place_order first, then waits behind pause_for_human for the live click.

P06

Post-trade review on the calendar

After the trade closes, ReportWriter pulls the fill log, ExecutionSpecialist compares realized to expected slippage, QuantSkeptic flags whether the thesis or the execution failed. Replay reproduces every step so next Monday's setup starts honest.

03
// The crew

Quant Firm crew

Real personas from the quant_firm crew. Each ships with a tuned system prompt and a default tool allowlist. Swap models per persona on the canvas.

Quant Analyst

QuantAnalyst

Scores the signal with Sharpe and its standard error, runs parameter sensitivity, and applies Bonferroni or Benjamini-Hochberg correction before any thesis ships.

Execution Specialist

ExecutionSpecialist

Decomposes slippage into spread, market impact, and adverse selection in basis points, with fill-rate estimates per order type and latency band.

Portfolio Manager

PortfolioManager

Sizes the trade with fractional Kelly at 0.25x to 0.5x, runs Ledoit-Wolf shrinkage on the correlation matrix, and shows the math on every recommendation.

Chief Risk Officer

ChiefRiskOfficer

Calculates parametric and historical VaR plus CVaR, runs Lehman, Flash Crash, COVID, and FTX stress scenarios, and sets exact circuit-breaker thresholds.

Quant Skeptic

QuantSkeptic

Applies the Deflated Sharpe Ratio for multiple-testing correction, blocks any thesis without walk-forward validation, and returns APPROVED, CONDITIONAL, or REJECTED with the exact conditions.

Report Writer

ReportWriter

Compresses the five specialist sections into one decisive pre-trade brief with ACTION, CONFIDENCE, and recommended params on page one.

04
// Scoped tools

Only the actions you grant.

Every tool below is a real shared tool from the Melaya bundle. Allowlist per agent; HITL-gate the writes; revoke any of them in one click.

shared/tools/melaya/

Pull funding, open interest, liquidations, OHLCV, and the order book for the setup the trader is about to take. Read only, no HITL needed because nothing writes.

melaya_funding_rates_latestmelaya_open_interest_latestmelaya_cex_liquidations_latestmelaya_ohlcvmelaya_orderbookmelaya_tickersmelaya_market_snapshot
shared/tools/melaya_strat/

Run a fresh backtest or pull a parameter sweep so QuantAnalyst can verify the thesis on this regime before sizing. Read and start jobs only, no live execution path from this bundle.

melaya_backtest_startmelaya_backtest_resultsmelaya_backtest_tradesmelaya_backtest_sweep_resultsmelaya_backtest_funding_range
shared/tools/melaya_exec/

Stage the live order the trader will click and route the paper version through the sim account first. melaya_place_order, melaya_cancel_order, and melaya_set_leverage are HITL by default for this crew.

melaya_place_ordermelaya_cancel_ordermelaya_get_positionsmelaya_get_account_balancemelaya_set_leveragemelaya_exec_sim_place_order
shared/tools/coinglass_tools/

Cross check perp positioning across venues with funding, OI, liquidations, and the long-short ratio. ExecutionSpecialist uses this to size the adverse selection cost. Read only.

cg_funding_ratecg_open_interestcg_liquidationscg_long_short_ratio
shared/tools/finance/

Pull equities, FX, and macro context for the discretionary trader running futures or single names alongside perps. Read only, no HITL needed.

alphavantage_stock_pricealphavantage_stock_historyalphavantage_stock_indicatorsfx_ratealphavantage_macro_dataalphavantage_sector_performance
shared/tools/fred_tools/

Reach FRED for rates, DXY, inflation prints, and the 30 day release calendar that moves position sizing. Read only, every chart cites its series id.

fred_series_observationsfred_series_searchfred_release_datesfred_series_info
shared/tools/sec_edgar_tools/

Pull 10 K, 10 Q, 8 K, and Form 4 data straight from EDGAR for the equity trader who refuses to size before reading the filing. Read only.

edgar_ticker_to_cikedgar_recent_filingsedgar_full_text_searchedgar_insider_form4edgar_company_facts
shared/tools/knowledge/

Build the per workflow store from your trade journal, win and loss postmortems, playbook, and research papers. Powers all three knowledge layers. Indexing is HITL gated when new corpora are added.

build_knowledge_from_textbuild_knowledge_from_filebuild_knowledge
shared/tools/core/

General research, structured fetch, and a Slack drop for the post-trade review. pause_for_human is the explicit approval node any workflow can call before order_send.

web_searchweb_fetchhttp_requestcalculateslack_post_textpause_for_human
05
// Three knowledge layers

The crew reads what you give it.

Every pipeline ships with three layers of knowledge access. Mix and match per agent on the canvas. No shared vector space with another tenant, no surprise reads, no opaque retrieval.

L1

Static context

includeContext

Per-pipeline documents appended to specific agents' input on every run. The ICP brief, playbook, pricing sheet, or won-deal email corpus. Whatever needs to be there before the agent thinks. You pick which personas get which docs.

L2

RAG retrieval tool

rag_retrieve

A scoped tool granted per-agent. When the agent decides it needs more depth, it queries the workflow's vector store on demand. Same knowledge base as Static context, accessed only when the model asks for it.

L3

Cross-run memory

pipeline_memory

Pipeline-level state that carries from one run to the next. Yesterday's research is in scope for today's follow-up. The crew remembers what it already prospected, what got approved, what was sent. The audit log is the second-order knowledge base.

07
// FAQ

Questions we get every week.

Will the crew place trades on its own?

No. The trader workflow ships with HITL on every melaya_place_order, melaya_set_leverage, and melaya_cancel_all_orders call. The crew prepares the pre-trade brief and stages the order, you click to send. You can lift the gate per template once a setup has earned the trust.

Can the agents reason over my notes, backtests, and prior trades?

Three ways. Static context attaches your playbook, risk limits, and instrument sheet to specific personas on every run. The rag_retrieve tool lets QuantAnalyst and QuantSkeptic pull from prior backtests, journal entries, and research papers on demand. Cross-run memory means last week's setup and its outcome are in scope for today's review.

Is this a TradingView alternative for a discretionary trader?

It sits next to TradingView. Keep TradingView for charts and alerts. Melaya runs the pre-trade research pass, the Kelly sizing, the stress test, and the post-trade review around the click you still make yourself. The chart stays where it is, the brief shows up before you size.

How is this different from 3Commas, Coinrule, or Hummingbot?

3Commas, Coinrule, and Hummingbot are bot runners that send orders on rules you wrote. Melaya is a reasoning crew that briefs and stress-tests the trade you are about to place by hand. The HITL gate keeps you in the driver seat instead of waking up to a bot blow-up.

Is this overkill for a one-person discretionary desk?

No. The default workflow runs in a 4-node canvas: pull the setup, score it with QuantAnalyst, devil-advocate it with QuantSkeptic, stage for your click. One person at one screen, the rest of the crew runs as a co-pilot, not a team you have to manage. Skip the personas you do not need per template.

How do we keep the brief from sounding like AI?

QuantAnalyst cites the IC value, the sample size, and the time period on every claim. QuantSkeptic surfaces one named failure mode per thesis with the Deflated Sharpe number. Reviewers can require a citation on every line as a HITL pre-check.

Which models can I run the crew on?

Any. Claude on QuantSkeptic where adversarial reasoning earns the cost, GPT on ReportWriter for the one-page brief, a local Ollama on QuantAnalyst when the backtest data cannot leave your laptop. Each persona picks its own model.

Can I audit exactly what the crew did and why?

Every run logs every prompt, every tool call, every model output, and every approval. Replay any pre-trade brief to see which funding-rate pull, which SEC filing paragraph, and which paper drove the call. The audit log is the trade journal.

Build active traders & discretionary desks pipelines on Melaya.

Sandbox tier is free with no card. Join the waitlist and we will email you the moment a slot opens.

← Back to every use case
Join the community