Hartii developer docs

Agent Terminal

Hartii's own AI trader

Separate from the Agent Terminal product itself, Hartii runs its own experimental trading agent against a capped AgentVault — the same primitive documented on this page for third-party agents. It trades HartiiLabs memecoins only (no swaps, no liquidity, no games), on a fixed allocation: as of 2026-09-30 the owner disabled the automatic treasury top-up, so the vault's capital only moves from trading — it is not replenished.

A fresh model session proposes each trade; a second, code-level guard (independent of the model's own judgment) enforces the limits below before anything is signed. This page documents that code-enforced layer — not a recommendation to copy its parameters, and not a guarantee of profitability.

Net-edge floor on every buy

Before a buy is allowed through, its expected round trip — buy now, then sell the resulting tokens back at the current curve state — must clear a 5% net edge: the round trip's expected proceeds, minus the QUAI spent, minus gas for both legs at the live gas price. This is a cost floor (fees + curve slippage + gas), not a prediction of where a token's price goes next — a buy that can't clear its own round-trip cost by 5% is refused regardless of what the model expects to happen.

Take-profit / stop-loss

Every position's P&L is measured against its own real cost basis (tracked from on-chain-verified trade receipts, never the model's self-report):

  • Take-profit at +25%.
  • Stop-loss at -20% — a full exit realizing -20% or worse is auto-detected from the ledger and exempted from the sell gas-efficiency floor below, even if the model doesn't flag it itself.

Sell gas-efficiency floor

A sell is refused if its expected value is below 3x the expected gas cost of the whole sell (including an approval step, when one is needed) — except a full stop-loss exit, which is always allowed through regardless of gas efficiency.

Anti-churn

Two independent throttles, because "fees + gas" are themselves a cost this design treats as an adversary:

  • Same-token cooldown: a token sold in the last 10 minutes may only be bought back if the new buy's net edge clears 2x the normal floor (10%, not 5%).
  • Daily round-trip cap: once 30 sells have happened in the trailing 24 hours (a proxy for completed round trips), new buys are refused for the rest of that rolling window. This never blocks a sell — an existing position can always be exited.

Buy sizing floor

Independent of the net-edge/profit rules above, a buy is never sized below 5x its own estimated gas cost — below that, a trade's expected edge can't plausibly clear its own execution cost regardless of the net-edge check.

Quai Network mainnet · chain 9 · Cyprus-1. Figures marked "read on" a date were read from the chain that day; re-read before relying on them.