Documentation
How the current runs.
Everything the workspace does, the math behind it, and the limits of what it can tell you. NurrentAgent is a paper strategy workspace: it simulates options strategies on virtual capital and sends no orders.
Start here
An agent is three things you define: a position to open (one of three options strategy presets), the entry conditions for opening it, and a risk budget it must fit inside. Each time the agent evaluates a candle of market data it writes a decision record: what it saw, the result of every rule and every guard, and what it did or why it did nothing.
The core is rule-driven and deterministic. The same configuration on the same data always produces the same decisions. There is no language model in the loop and nothing is random.
- Paper only. Positions are simulated on virtual capital with modeled option premiums. No order is sent to a venue and nothing is signed.
- No wallet needed. Every tool works without connecting a wallet. Connecting one is optional and read-only.
- Saved in this browser. There is no account. Your agents, decisions and datasets are stored in this browser only.
The quickest way in: open the workspace, add the three example agents, and press Run evaluation.
Build an agent
The Studio has seven steps on one page. A panel beside the form shows the payoff at expiry and what the risk guards say about the position as you type.
- Objective. Protect, Earn or Explore. Each maps to one preset.
- Position. Reference price, size, strike, premium, contract multiplier and expiry. Use live SOL/USD sets the reference from the onchain price; Estimate premium fills the premium from the pricing model.
- Entry conditions. Price above a level, price below a level, realized volatility inside a range. All must pass.
- Risk budget. Virtual capital, maximum allocation, premium budget, maximum open positions, drawdown pause threshold and maximum data age.
- Pricing model and costs. How premiums are set at entry, and the fees and slippage you assume.
- Market data. The synthetic example series, a dataset you stored, or live SOL/USDC candles.
- Name and save.
You can edit, duplicate, pause, resume and delete an agent at any time. Editing keeps the paper account and its history, with one exception: changing the data source starts a new run of the account, because the candles are different.
How typed numbers become a position
You type the position against a reference price. When the agent opens a paper position at some later price, the strike keeps its ratio to the price (a put typed at 93 against a reference of 100 opens 7% below the entry price), the quantity and contracts stay as typed, and the premium comes from the pricing mode you chose: Black-Scholes from realized volatility, or your typed premium kept at the same ratio.
The three presets
Protective Put · Protect
Intended objective. Limit how much a holding can lose by expiry while keeping its upside, in exchange for a premium paid up front.
Position construction. A virtual holding of the underlying plus a long put. The put covers contracts x multiplier units; when that equals the holding, the whole holding is hedged below the strike.
Main risks. The premium is paid whether or not the put is needed, and paying it again every cycle adds up. Above the strike the position loses the premium against simply holding. The floor applies at expiry only: before expiry the position can be worth less, and units not covered by the put have no floor.
At expiry. At or above the strike the put expires worthless and the holding keeps its gain or loss, less the premium. Below the strike the put pays strike minus price on every covered unit, so the covered holding is worth the strike.
Data and modeling assumptions. The premium is a model value or a figure you type, not a quote. Settlement is at one expiry price with no early exercise. Fees and slippage are the modeled costs you set.
Covered Call · Earn
Intended objective. Collect an option premium on a holding you already carry, and accept an obligation in return.
Position construction. A virtual holding of the underlying plus a short call on no more units than the holding. This preset refuses any call that the holding does not cover.
Main risks. The premium is the only income and it is not a yield: it is payment for giving up every gain above the strike on the covered units. The holding keeps its full downside; the premium only offsets a small part of a fall. A sharp rally leaves the position far behind simply holding.
At expiry. Below the strike the call expires worthless and the premium is kept. Above the strike the call is assigned: covered units are given up at the strike, so the gain stops there.
Data and modeling assumptions. The premium is a model value or a figure you type, not a quote. Assignment happens only at expiry. Fees and slippage are the modeled costs you set.
Long Straddle · Explore
Intended objective. Take a position on how far the price moves by expiry, in either direction, without choosing the direction.
Position construction. A long call and a long put with the same strike, the same expiry and the same size. No underlying is held.
Main risks. Two premiums are paid. If the price finishes near the strike, most or all of both is lost, and that is the most likely single outcome when volatility turns out lower than the premiums implied. Time works against the position every day.
At expiry. One leg finishes in the money by the distance between price and strike; the other expires worthless. The position profits only when that distance is larger than both premiums plus costs.
Data and modeling assumptions. Both premiums are model values or figures you type, not quotes. Settlement is at one expiry price with no early exercise. Fees are the modeled costs you set.
No preset guarantees a yield or protection in all conditions. A premium received is payment for an obligation; a premium paid can be lost in full.
Payoff math
Payoff is what the option legs are worth at expiry. Profit or loss is what the whole position makes after premiums and costs. The app keeps the two apart everywhere and never labels one as the other.
units = contracts x multiplier
Protective put
P&L = quantity x (S - S0) + units x max(K - S, 0) - units x premium - costs
Covered call (units may not exceed quantity)
P&L = quantity x (S - S0) - units x max(S - K, 0) + units x premium - costs
Long straddle (one strike K and one expiry for both legs)
P&L = units x max(S - K, 0) + units x max(K - S, 0)
- units x (call premium + put premium) - costs
S0 reference (entry) price S price at expiry K strikeModeled costs
- A fee per option contract, charged when a leg is opened (a straddle pays it on both legs).
- A fee in basis points on the underlying notional, when it is bought and when it is sold.
- Slippage in basis points on each underlying fill.
At expiry, units covered by an option that finishes in the money change hands at the strike, so a fully hedged floor and a fully covered cap stay exactly flat after costs. All three costs are assumptions you set. No venue fee schedule is used.
Break-evens are solved exactly, not read off the chart. “Largest loss” and “largest profit” are arithmetic on the payoff shape at expiry within the model, not statements about a real position.
Rules, guards and decisions
Every evaluation runs the same four concerns in the same order. They are separate pieces of code and none can stand in for another.
- Data validation. Is there a candle, are its values consistent, is it fresh, and is there enough history for the volatility estimate?
- Position upkeep. Positions that have reached expiry are settled at intrinsic value.
- Strategy rules. Your entry conditions.
- Risk guards. Drawdown below the pause threshold, open positions below the maximum, premium within the budget, position within the maximum allocation, sufficient virtual buying power.
Then, and only if everything passed, the paper executor books the fills at the candle close.
Missing data is never a pass
A check whose input is missing reports unavailable. An evaluation with an unavailable required input ends as DATA_ERROR: the agent does not act on data it does not have.
Outcomes
| Outcome | Meaning |
|---|---|
OPEN | Every rule and guard passed; a paper position was opened. |
HOLD | Positions are open and nothing new was opened (the maximum is reached, or a rule did not pass). |
EXPIRE | A position reached expiry and settled. Entry is considered again on the next candle. |
SKIP | No position is open and an entry condition was not met. |
BLOCKED | A risk guard refused the entry, or the drawdown pause is in effect. |
DATA_ERROR | The data was missing, inconsistent, stale or too short. Nothing was done. |
CLOSE is not used. This release holds every paper position to expiry and has no early exit, so the app does not emit an outcome it cannot back.
What a decision record contains
Agent ID and name, the timestamp of the evaluation, the data source with the candle and data timestamps, the price, the data age and the realized volatility, the result of every data check, strategy rule and risk guard, the action or the reason for inaction, the execution mode, the paper account after the decision, and the model assumptions in force.
The drawdown pause
Equity is virtual cash plus open positions marked to model. When equity falls to the threshold below its peak, the agent stops opening positions until you resume it; resuming measures the drawdown from the current equity. Positions already open are not closed.
These are operational stop conditions, not a loss limit. They decide whether a new position may open. Prices can move further than any threshold between two evaluations, and an open position runs to its expiry. Nothing here guarantees a maximum realized loss.
Running evaluations
Run evaluation evaluates exactly one candle and records one decision.
- Replay sources (the synthetic series, a stored dataset): each evaluation takes the next candle and judges it at its own close, using only earlier candles. A replay starts where the volatility estimate has its history, and ends when the data ends.
- Live source (SOL/USDC): each evaluation takes the newest closed candle and compares its age with the real clock. Data older than your limit is refused as stale.
A candle is never evaluated twice for the same agent. The engine refuses it, and the storage layer refuses a second record with the same key, so two open tabs cannot double-record.
The optional loop
You can switch on Evaluate automatically for an agent. That starts a timer in your browser tab that evaluates the agent at most once per candle.
- The app must stay open. The loop stops when the tab closes, the computer sleeps or the connection drops.
- It is not a hosted service. No server runs agents for you, and nothing happens while your browser is closed.
- If the data provider is unavailable the agent waits and retries; one DATA_ERROR is recorded per outage.
- With the live source, candles that closed while the app was shut are not evaluated afterwards.
Strategy Lab
The Lab holds three tools that answer different questions. They are labeled separately and never borrow each other’s names.
| Tool | Question | Uses |
|---|---|---|
| Expiry payoff calculator | What does this position make at expiry at each price? | Typed numbers only. No price history. |
| Historical test | What would these rules have decided on past prices? | A price series and modeled premiums. |
| Forward paper evaluation | What does the agent decide on the next candle? | On each agent’s page, one candle at a time. |
Historical tests
A test walks the agent’s own evaluation step over a series, one candle at a time. Step i reads candles 0 to i and nothing later, so there is no look-ahead: rewriting the future of a series does not change any earlier decision (this is covered by a unit test).
A test needs the volatility warm-up plus one full option cycle of candles. If the series is shorter, the Lab says exactly how many candles are required and how many it has, and runs nothing. A drawdown pause in a test lasts to the end of the test, because nobody is there to resume the agent.
Results on the synthetic series are marked as examples. A historical test is a test of rules with modeled premiums. It is not a record of trades and does not predict results.
Data and CSV import
Sources
- SOL/USDC candles. Hourly and daily candles of the Orca pool on Solana mainnet, read through the GeckoTerminal public API by this app’s server. Up to 1000 candles per request.
- SOL/USD reference price. The Pyth price account on Solana mainnet, read over RPC. The account is refused unless its owner program, layout, verification level and feed id match.
- Your CSV files. Imported, validated and stored in this browser.
- The synthetic example series. 2160 hourly candles generated by the app from a fixed seed. It has no relation to any market.
There is no options market data. Premiums are modeled or typed. When a provider is unavailable the app says so and does nothing in its place: one source is never substituted for another. Check the live sources on the status page.
CSV schema
timestamp,open,high,low,close,volume 2026-01-01T00:00:00Z,100,101.2,99.4,100.8,48211 2026-01-01T01:00:00Z,100.8,101.9,100.1,101.5,39120
timestamp: the candle’s open time. ISO 8601 (2026-01-31T14:00:00Z,2026-01-31 14:00,2026-01-31), Unix seconds or Unix milliseconds. Text without a zone is read as UTC.open,high,low,close: prices above zero.volume: zero or more.- A header row is required. Column order and letter case are free; extra columns are ignored with a note. Up to 200,000 rows.
Validation
- Dates must exist and be readable; rows must be in time order. A file that is entirely newest-first is reversed, and the import says so.
- Duplicated timestamps are an error.
- Every value must be a number. An empty cell is an error, never filled in.
- High must be at or above open, close and low; low must be at or below them.
- Missing intervals are counted and reported. They stay missing: no candle is ever invented or interpolated.
A file with any error is refused whole, with the line number of each problem.
Model assumptions
Wherever a modeled premium or a marked-to-model value appears, these are the assumptions behind it.
| Pricing model | European Black-Scholes, no dividends, no early exercise. |
| Volatility estimator | Close-to-close realized volatility over the chosen window (sample standard deviation of log returns), annualized, then multiplied by the volatility factor you set. |
| Interest rate | One constant annual risk-free rate, continuously compounded, set by you. |
| Time convention | ACT/365 on a 24/7 market: one year is 365 days, time to expiry is counted to the millisecond. |
| Fees and slippage | A flat fee per option contract, a fee in basis points on each underlying trade and slippage in basis points on each underlying fill. All three are your assumptions; no venue fee schedule is used. |
| Fills | Paper fills are booked at the close of the evaluated candle. Settlement is at the close of the first evaluated candle at or after expiry, at intrinsic value. |
| Marking | Between entry and expiry, open positions are valued with the same model at the current realized volatility. Closing costs are not included in a mark. |
Limits of the model
- Modeled premiums are not quotes. Real option markets price a volatility smile, skew, funding and event risk that this model ignores.
- Realized volatility looks backward. It can be far from what a market would charge for the next period.
- There is no bid/ask spread, depth or early exercise in the model. Paper fills happen at the candle close.
- Strikes are continuous in the model. A real venue lists discrete strikes and expiries.
- With a live source, the estimate uses the candles the provider returned. A provider can revise or omit candles.
Where your data lives
Everything you create is stored in this browser, in an IndexedDB database named nurrentagent:
- agent configurations;
- each agent’s paper account (virtual cash, open positions, replay position);
- decision records;
- datasets you imported or stored;
- app settings.
There is no account and no server database. Nothing is uploaded. That also means nothing syncs: your agents do not appear in another browser or on another device, and clearing this site’s data deletes them. Export what you want to keep.
If the browser refuses IndexedDB (some private windows do), the workspace says so at the top of every page and keeps working in memory until the tab closes.
The code reaches storage through one repository interface, so a server database can be added later without changing the pages or the engine.
Wallet and Solana
Wallet connection uses the Wallet Standard, the interface Solana wallets register themselves with. Any compatible wallet installed in your browser appears in the list; there is no wallet-specific code.
- Connecting shares your public address with this page. The page shows the address, the network and the SOL balance (read from Solana mainnet by this app’s server).
- The app never asks for a seed phrase or a private key.
- The app never requests a signature or a transaction. Paper evaluations do not use the wallet at all.
- A connected wallet does not turn on live trading. There is no live trading to turn on.
RPC reads use a public mainnet endpoint unless the operator sets SOLANA_RPC_URL on the server. The endpoint is never sent to the browser.
Execution limits
Live execution is not available. Sending an options order needs a venue that lists options on Solana, with instruments, quotes and settlement that this code has been tested against. No such integration exists in this build.
The code has a typed venue-adapter boundary for the day one does: an interface for listing instruments, quoting, and preparing an order for the owner’s wallet to review and sign. Today the only adapter answers “unavailable” to every call. It names no venue, no program address, no token and no liquidity, and the app does not present another product, such as perpetual futures, as options.
Rules and risk guards are software rules running in this app. No onchain program enforces them.
A successful paper evaluation is a simulation. It says nothing about whether a real order would have filled, at what price, or at all.
Export formats
- Agent configurations (JSON):
{ format: "nurrentagent.agent", version: 1, agents: [...] }. Import validates the structure and every rule, including covered-call coverage. Imported agents get new IDs and a fresh paper account. - Decisions (JSON or CSV): the full record as JSON, or one row per decision as CSV with outcome, reason, inputs, failed checks and the account after the decision.
- Historical test results (JSON), with the decisions (CSV) and the equity series (CSV).
- Payoff curves (CSV) and price series (CSV, in the import schema).
Text cells in CSV exports are quoted when needed, and a cell that begins with a formula character is prefixed so a spreadsheet does not execute it.