Workspace quick start¶
One walkthrough per workspace in this release, each with a link to its presets.
Standard: enter/exit on price or indicator conditions¶
- Choose Open Standard workspace, or open a Standard preset from the Strategy Library.
- Add a price or indicator entry condition and choose its timeframe.
- Set an explicit exit, such as a take-profit, and review sizing.
- Backtest the configuration, then review it in paper mode before choosing live.
Add behavior: add trading hours to limit new entries to a session. Keep the entry rule and exit intact. Review the complete scoped behavior list, including fields inside collapsed Advanced sections.
A preset is a starting point, not a restriction. Check the implementation table for the exchange, market and mode; live account checks happen in the app.
Presets: Strategy Library.
Grid: trade a price range¶
Backtest, simulated paper and live modes are available. Live mode: Untested; check the implementation table for your exchange and market before trading live. Spot grids are long only. Perpetual (linear) grids run Long, Short or Neutral, one side at a time and never flipped, in backtest and simulated paper. Live perpetual Grid is labelled Untested and stays available on every venue that can place reduce-only orders; elsewhere live perpetual Grid is refused, and backtest and paper still work. Hedging and automatic flipping are not supported. Public data and market rules remain untested per venue and market. Classic Grid does not enable StepGrid.
- Choose Open Grid workspace. Set the spot market, lower and upper prices, number of cells, spacing and capital. Choose whether to wait for buys with quote only or acquire starting base; review the preview's acquisition cost before creating a run.
- Review price/quantity increments, minimum order sizes, fees, slippage, order budgets and optional whole-grid stop. Apply public metadata only after checking the specific market. The illustrative example is not applied automatically.
- Preview levels, per-cell net results, the start plan and warnings. Backtest supplied closed candles or a public date range, then inspect fills, cells, orders, reservations, inventory, fees, equity and incomplete reasons. A candle must trade through a level; touching it is not a fill.
- For simulated paper mode, create or open a run, feed candles manually or follow a public source. Opening a report does not change its owner or turn the current editor draft into the stored run configuration. Import/export changes the draft, not an existing run.
- Stopping source following only detaches data updates; it does not stop the grid. Stop grid requires an explicit choice: Cancel only cancels orders and keeps base inventory; Cancel and sell cancels orders and market-sells owned base only after every order is resolved. Neither choice guarantees a complete liquidation if execution fails.
Inspect recovery and incomplete-inventory warnings before interpreting results. Resume recovery does not change the run owner. Unsupported live or futures modes cannot be enabled by switching the viewing workspace.
0.13.1 (unreleased)
Grid gets Perpetual (linear) markets with leverage, cross or isolated margin and a long, short or neutral bias, more stop triggers, a gate-closed action and auto-recenter. See Grid perpetuals and recenter and the 0.13.1 release notes.
Presets: Strategy Library.
Ladder: buy dips in steps¶
Backtest, simulated paper and live modes are available. Live mode: Untested; check the implementation table for your exchange and market before trading live. Verification: offline backtest/paper controller and mocked-CCXT live path; no real account tested. Spot long and linear perpetual long/short/both (both runs a long and a short on the same pair only where hedge mode is detected). Inverse perps and dated futures are not modeled.
- Choose Open Ladder workspace. A first order is followed by bigger adds as the price moves against you; the whole basket closes together at a take profit above the fee-aware average, or at a stop. Spot is long only; perpetuals can run long, short, or both (both needs an account in hedge mode). It never flips, and an add it cannot afford is refused whole.
- Optionally press Load generic spot example (synthetic, not advice) or Load generic perpetual example. Check every value. No daily loss limit. Ladder v1 does not stop for the day after realized losses; protection is the basket stop loss, the optional time stop and Stop run.
- Fill the goal fields (market, direction, base order, safety adds, capital). Open Advanced: step scale and anchor, editable step table, trailing and stop exits, restart, slippage (every value is kept while this is closed). Tick Edit rows by hand only when you want to edit the step table yourself; otherwise press Replace rows with the formula table.
- Under Public data — no keys or private account calls, choose an Enabled exchange, press Load every public market of this type, then Get fee and market-rule suggestions for this symbol. Suggestions are not applied until you press Apply on each value.
- Read the behavior list under What this ladder does. Choose a mode: Backtest (test on candles), Paper (simulated, persisted) or Live (real orders).
- For a backtest, paste Explicit candles JSON (and optional Perp funding JSON) and press Backtest explicit candles, or set a public range and press Backtest public range.
- For paper, press Create paper run. After creating one, press Follow the selected exchange's public candles from now on (keyless; restart-safe from the run's persisted last candle) or Advance paper run with the explicit candles. While following, you can Poll public data now or Stop following public data (data only — baskets and exits stay as they are).
- For live, choose the Exchange account, tick I understand this run places real orders with real money on the chosen account., and press Start live run. Live places real market orders through the shared live path, following closed public candles. Paper results do not carry over. Check the Verification column: live is available without an account test. Availability vs verification: spot long and linear-perp long, short, and both live paths are verified by mocked contracts only (short and both via the live contract suite). No venue is account-tested.
- On a running report, open baskets show Steps of cycle tables with per-step order detail (requested notional/qty, filled, avg price, fees, reserved, outstanding, unfilled terminated, status). Stop choices are explicit. Keep open baskets (exits stay on) stops new cycles and adds; take profit and stop keep running. Close baskets cancels working orders, then closes the open quantity (reduce-only on perps). Press Stop run after choosing. Resume new cycles re-enables new cycles and adds. There is no separate pause-adds-only control.
How a basket works:
- Adds arm only after the previous add is final. An unaffordable add is rejected whole and further adds pause; take profit and stop stay live.
- The whole basket closes together at the fee-aware average break-even take profit, optional stop, or time stop.
- Paper and backtests model forced liquidation as one combined basket at the average price (same side). Hedge long and short legs stay separate.
- Live perps treat the exchange position as truth for liquidation.
- Paper can follow keyless public candles; a restart resumes from the persisted cursor and does not feed a candle twice.
Start can be immediate or a Signal start. A condition on another timeframe reads that timeframe's closed candles, and a backtest loads them for you. An optional Exit gate closes the open cycle while it holds. The run's Gate status shows whether each gate is stalled and its last candle per timeframe. See the 0.13.0 release notes for the gate limits.
Not in this release: a daily loss limit, and a separate pause-adds-only state.
Presets: Strategy Library.
Ladder Pyramid: add to a winning trade¶
Backtest, simulated paper and live modes are available. Live mode: Untested; check the implementation table for your exchange and market before trading live. Verification: offline backtest/paper and mocked-CCXT live path; no real account tested. Spot long and linear quote-settled perpetual (BASE/QUOTE:QUOTE) long or short; both runs only where hedge mode is detected. Inverse perpetuals and dated futures are refused. It never flips.
- Choose Open Ladder Pyramid workspace. The workspace title is Ladder Pyramid: add on favorable moves. Optionally press Load generic spot example (synthetic, not advice) and check every value.
- Under Basics, set Market, Market type (spot is long only; linear_perp is long, short or both), Direction, Allocation (it must cover the full worst-case cycle), First order, Favorable step (the % move in your favor before the first add), Size multiplier (each add is that multiple of the previous one; preset 0.5), Max adds, Take profit (% beyond the fee-aware average break-even), Restart after close and Taker fee. For a linear perpetual, also set Leverage, Maintenance margin rate and Max exposure per cycle.
- Open Advanced: trailing/stop exits, restart, cooldown, slippage, step anchors (values kept while closed) for Measure adds from (previous_add or initial_fill), Max adds per candle (default 1, from 1 to 50: how many favorable adds one candle may fire; each further add in that candle still needs the previous add to have filled and the price to be past its own level), the whole-basket exit (fixed or trailing take profit, optional stop loss, optional time stop, and Raise stop to break-even after add k), cooldown and slippage.
- Optionally open Outcome sizing (optional) — next cycle base from completed results only. It changes the next cycle's first order from completed results only, never from open profit or loss.
- Read Capital / preview (notional, entry capital, max cycle capital, cycles) and What this configuration does. Nothing is placed or saved.
- Under Run it, choose backtest, paper or live. For a backtest, paste Candles JSON (and optional Funding JSON) and press Backtest. For paper, fill Run name, Starting balance (quote) and Timeframe, press Create paper run, then advance it with Feed candles JSON and Feed.
- For live, choose Exchange account (live), tick I understand this run places real orders with real money., and press Start live run. The button is marked untested. Live sends market orders through the shared live path. Live is checked against mocked exchange contracts, not on an account; no venue is account-tested.
- On a run report, choose Close open baskets on stop or Leave open, then press Stop. Resume resumes the run. Each run's mode and state are listed under Runs.
How a pyramid works:
- Adds fire only on moves in your favor: above the anchor for a long, below it for a short. It is never a sign-flipped DCA and never adds against the position.
- The whole basket closes together at the take profit, the stop or the time stop. After add k, the stop can be raised to break-even: it then sits at break-even or tighter, never looser.
- An add the run cannot afford is refused whole, and further adds pause.
- Entry sizes are worked out in base units and floored to the exchange's amount step before the affordability check and the reservation, so the reservation and the ledger match what is sent. Paper and backtests use the same floor when that market's rules are already loaded; without rules the size stays notional / price exactly, and a step is never invented.
- A live entry whose amount is not a whole number of the exchange's steps is refused whole, never resized. An entry the run cannot afford is refused whole, never shrunk.
- A close sends the quantity held, floored to the amount step. On a perpetual it is reduce-only, so it can never open or flip a position. Anything below one step is kept as dust: no order is sent, the report lists a dust event, and the closed ledger row records
dust_baseanddust_cost. Dust is not sold. - On a live perpetual, an empty position read, or a read that only has rows for other symbols, is unknown, not gone. Apathia only books a position as gone when the exchange returns an explicit row for this symbol.
- Direction both runs a long and a short on the same pair. Hedge mode is used only when Apathia detects it on the account, and only for a long and a short on the same pair. Live reads the account when the run starts, paper reads the linked account, and a backtest uses the account's last detected value. Otherwise hedge is off: an opposite entry on that pair is skipped, never flipped. A long and a short on different pairs always run together.
Start can be immediate or a Signal start. A condition on another timeframe reads that timeframe's closed candles, and a backtest loads them for you. An optional Exit gate closes the open cycle while it holds. The run's Gate status shows whether each gate is stalled and its last candle per timeframe. See the 0.13.0 release notes for the gate limits.
Presets: Strategy Library.
Ladder StepGain: buy in numbered steps, each with its own exit¶
Backtest, simulated paper and live modes are available. Live mode: Untested; check the implementation table for your exchange and market before trading live. Verification: offline backtest/paper and mocked-CCXT live path; no real account tested. Spot long and linear quote-settled perpetual (BASE/QUOTE:QUOTE) long or short; both runs only where hedge mode is detected. Inverse perpetuals and dated futures are refused. It never flips.
- Choose Open Ladder StepGain workspace. The workspace title is Ladder StepGain: named steps with per-lot exits. Optionally press Load generic spot example (synthetic, not advice) and check every value.
- Under Basics, set Market, Market type (spot is long only; linear_perp is long, short or both), Direction, Allocation (it must cover the full worst-case cycle), Base order, Default lot take profit, Restart after close and Taker fee. For a linear perpetual, also set Leverage, Maintenance margin rate and Max exposure per cycle.
- Open Advanced: trailing/stop exits, restart, cooldown, slippage, step anchors (values kept while closed). The Steps table numbers the steps from 1. Each row has a size multiplier (size ×, applied to the base order), an anchor (first fill, previous step fill or indicator), a pct move from that anchor and an optional step condition. Step 1 normally anchors to the first fill. After you delete step 1, the new step 1 keeps its anchor. If that anchor cannot be used on step 1 (previous step fill), it stays selected with the warning Step 1 can't use the previous step's fill. Choose another anchor. Export, backtest, paper, live and preview are refused until it is changed; the server also refuses it. An old saved config loads as saved with the warning shown, and nothing is rewritten. Later steps need a pct, a step condition, or both; the indicator anchor always needs a pct. Each row has a Remove button, disabled when only one row is left. Use Add step or Reset to simple 3-step default. The default per-lot exit (fixed or trailing take profit, optional stop loss measured from the average or the initial fill, optional time stop), cooldown and slippage are here too.
- Optionally open Outcome sizing (optional) — next cycle base from completed results only. It changes the next cycle's base order from completed results only, never from open profit or loss.
- Read Capital / preview (notional, entry capital, max cycle capital, cycles) and What this configuration does. Nothing is placed or saved.
- Under Run it, choose backtest, paper or live. For a backtest, paste Candles JSON (and optional Funding JSON) and press Backtest. For paper, fill Run name, Starting balance (quote) and Timeframe, press Create paper run, then advance it with Feed candles JSON and Feed.
- For live, choose Exchange account (live), tick I understand this run places real orders with real money., and press Start live run. The button is marked untested. Live sends market orders through the shared live path. Live is checked against mocked exchange contracts, not on an account; no venue is account-tested.
- On a run report, choose Close open lots on stop or Leave open, then press Stop. Resume resumes the run. Each run's mode and state are listed under Runs.
How steps and lots work:
- Steps fire in order, at most one per candle. Each filled step is its own lot with its own take profit, stop and time stop, and a closed lot never reopens its step.
- A step the run cannot afford is refused whole, and further steps pause.
- Entry sizes are worked out in base units and floored to the exchange's amount step before the affordability check and the reservation, so the reservation and the ledger match what is sent. Paper and backtests use the same floor when that market's rules are already loaded; without rules the size stays notional / price exactly, and a step is never invented.
- A live entry whose amount is not a whole number of the exchange's steps is refused whole, never resized. An entry the run cannot afford is refused whole, never shrunk.
- A close sends the quantity held, floored to the amount step. On a perpetual it is reduce-only, so it can never open or flip a position. Anything below one step is kept as dust: no order is sent, the report lists a dust event, and the closed ledger row records
dust_baseanddust_cost. Dust is not sold. - On a live perpetual, an empty position read, or a read that only has rows for other symbols, is unknown, not gone. Apathia only books a position as gone when the exchange returns an explicit row for this symbol.
- Direction both runs a long and a short on the same pair. Hedge mode is used only when Apathia detects it on the account, and only for a long and a short on the same pair. Live reads the account when the run starts, paper reads the linked account, and a backtest uses the account's last detected value. Otherwise hedge is off: an opposite entry on that pair is skipped, never flipped. A long and a short on different pairs always run together.
Start can be immediate or a Signal start. A condition on another timeframe reads that timeframe's closed candles, and a backtest loads them for you. An optional Exit gate closes the open cycle while it holds. The run's Gate status shows whether each gate is stalled and its last candle per timeframe. See the 0.13.0 release notes for the gate limits.
Presets: Strategy Library.
Portfolio: hold a mix at target weights¶
Backtest, simulated paper and live modes are available. Live mode: Untested; check the implementation table for your exchange and market before trading live. Verification: offline app/planner; live order path by mocked CCXT contract tests (mocked contract only); public venue data and per-asset market rules Untested per market. Portfolio is a spot holding strategy. It does not offer Perpetual markets, leverage, or margin modes. Fixed-weight spot on one venue. Every asset is a BASE/QUOTE spot market quoted in one valuation and funding currency.
- Choose Open Portfolio workspace. Fill Run name, Valuation and funding currency, Starting capital and Cash target. Load generic example (synthetic, not market advice) fills a sample; check every value before using it.
- Under Assets and target weights, use Add asset for 1 to 20 spot markets and set each Target weight (%). Weights including cash must sum to 100%. The line under the table shows the current sum.
- Under When to rebalance, tick When any weight drifts from its target by (absolute percentage points; 5 is the preset), On a calendar (every day, week or N hours, with time and time zone), or both. At least one is required. Then choose the Policy: Sell overweight, then buy underweight, or Buy only from free cash (never sells).
- Open Advanced to set each asset's Quantity step, Minimum quantity and Minimum order value, plus Taker fee, Market-order slippage, Maximum mark age and Skip a plan when stale assets exceed (preset 20%). Values are kept while Advanced is closed. Suggest from public data shows suggestions for one row; nothing is applied until you press Apply on each value. These rules are not verified per market.
- Read What this portfolio does. Enter prices and press Preview initial plan. Nothing is placed or saved.
- To backtest, paste observations and flows JSON and press Backtest these observations. Or choose an Enabled exchange, a Public backtest candle, a start and an end, and press Backtest public closes. Public closes are aligned by time. A missing close is not filled in, and the result is marked incomplete.
- For simulated paper, set Mode to Paper (simulated fills, you feed observations) and press Create persisted paper run. Paper does not follow a public price source. Advance it with Advance this paper run with the JSON above.
- For live, set Mode to Live (real market orders on your exchange account), choose the Exchange account, tick I previewed the initial plan and want live orders sent, and press Start live run. The start checks the API key, that live trading is enabled, that every asset is an active spot market, and that free quote covers Starting capital. If it doesn't, the run is refused, not shrunk. Live sends market orders, starting with the initial buy plan. Marks come from the exchange price feed. The run only counts and sells what its own fills bought; other holdings on the account are left alone. Account mode is never changed.
- Stop new plans (cancels working orders, keeps holdings) stops a run; Resume restarts it. Load this run's config into the editor copies the run's config; editing it does not change the run. To change targets, stop the run and create a new one.
How a rebalance works:
- Sells go first. Buys start only after every sell has finished, so actual proceeds fund them.
- Each buy is placed whole or rejected whole, never shrunk. A change below the step or minimums stays as reported drift.
- A plan is never recomputed. A trigger while a plan is still working is deferred. Missed calendar times are skipped, not caught up.
- An asset whose mark is older than Maximum mark age is valued at its last good mark and flagged stale. It keeps its target weight (no renormalizing) and is not traded in that plan. If stale assets hold more of the portfolio's value than Skip a plan when stale assets exceed (preset 20%), the whole plan is skipped with an alert.
- An unavailable or delisted asset keeps its weight frozen and is never sold automatically.
- Contributions and withdrawals are external flows. Profit and time-weighted return exclude them. A withdrawal larger than free cash is rejected whole.
Not in this release: editing targets on a running run, limit or sliced child orders (children are market orders), and a daily loss limit. Fees charged in a third currency, such as BNB, are not converted.
Presets: Strategy Library.
Funding Carry: earn funding payments¶
Backtest, simulated paper and live modes are available. Live mode: Untested; check the implementation table for your exchange and market before trading live. Verification: offline app/controller; live order path by mocked CCXT contract tests (mocked contract only); public venue data availability Untested per market; no venue is account-tested. Public data availability remains untested per venue and market; generic engine support is not a venue eligibility verdict. Inverse contracts and cross-venue baskets are unsupported. Live never flips a leg; closes are reduce-only.
- Choose Open Funding Carry workspace.
- Enter the goal, capital, matched spot and linear perpetual markets, sizing and costs. Review margin and self-rebalance, evidence and model settings in Advanced, then the full backend behavior list. The generic example is illustrative only; it is never applied automatically.
- For public market suggestions, explicitly apply each metadata value you intend to use. Changing symbols invalidates suggestions. Importing or exporting configuration changes the editor, not an existing run.
- Backtest supplied inputs or a public date range. Inspect marked equity separately from the closed cash result, funding, fees, reserved margin, dust, liquidations, data coverage and assumptions. Incomplete history is not complete evidence.
- For simulated paper mode, set Mode to Paper, create or open a run, feed inputs manually or follow a public source. Stored run configuration is immutable; copy it to the editor for a new run. Stopping source following only detaches it; resuming recovery does not override entry rules.
- For live, set Mode to Live (real market orders on your exchange account), choose the Exchange account, tick I reviewed the configuration and want live orders sent, and press Start live run. Live is checked against mocked exchange contracts, not tested on each real account. Orders are paired spot buy + short perpetual on the shared path; never flip; reduce-only close; refuse whole, not shrink.
A submitted report is not the current edited draft. On a source failure, read the stored report's stale state and incomplete reasons before interpreting results. To stop an open paper or live run, press Stop and close (resting orders are cancelled and reconciled, then both legs are closed: the perpetual reduce-only, the spot capped at what the run holds; nothing new is opened) or Stop and keep positions (resting orders are cancelled and new entries and top-ups are blocked; the emergency and maintenance-buffer checks keep running on every mark update and can still close the pair). Each asks for confirmation and then shows the stop state the backend reports. The app has no restore screen. Backup/export includes Carry runs; do not infer that editing configuration changes their exposure.
Finding a pair¶
The Pair scanner ranks spot and linear perpetual pairs on up to 4 enabled venues. It is a picker only: Scan never starts a run, never places an order, and never borrows. Defaults are a Minimum 24h volume (USD, both legs) of $1,000,000, history from the top 10 symbols per venue, at most 4 venues, and results cached for 5 minutes. Use this pair fills the single-pair form and never starts a run; a run still starts from a saved strategy.
Account on a venue is optional. Picking one is a read-only borrow-rate lookup on reverse rows. Otherwise the row shows Borrow rate unknown: net APR excludes borrow interest, and breakeven leaves borrow out. Reverse and cross-exchange rows can be shown and can fill the form; they are labelled Reverse Carry (short spot, long perp): Untested or Different exchanges per leg: Untested. The start button stays disabled with a reason such as Starting a Reverse Carry run is not available in this release. Use this pair still fills the form for later; a start for reverse runs is deferred.
Self-rebalance¶
Self-rebalance keeps the spot and short legs matched by moving isolated margin both ways, so the run does not need a cash reserve. It is on by default for new runs. A configuration that does not include the setting is treated as off everywhere: when it is checked, described, shown in a report, or used to create a run. It keeps the earlier reserve behaviour. If a reserve field is also missing, the error says: no "rebalance" field, so self-rebalance is off and the reserve fields are required; send "rebalance": "on" to rebalance without a reserve.
When it is on, the reserve defaults to 0. You can still set a reserve; it is used only when self-rebalance is off or blocked, not to top up the short on an up-move.
Settings and defaults
- Leverage: 2×, adjustable from 1× to 20×. 1.5× is labelled Safest. 3× and above are labelled Aggressive — needs minute checks; backtested only with a custom 50% / 1.25x band.
- Rebalance band: Standard (default) rebalances up when the short's margin buffer falls to 50% of its target, and down when the short holds 1.5× its target margin. Tight is 65% / 1.25×. Wide is 35% / 2.0×. Custom lets you set both numbers.
- Emergency close: if the buffer falls to 25% of its target and the rebalance cannot restore it, the pair is closed.
- Emergency close cushion (% of price): a per-run setting, set when the run starts and not saved in the strategy. The default is 3 and the minimum is 1; a value below 1 or that is not a number is refused, not raised to 1. The run report shows the value used.
The emergency close is checked before liquidation in backtest, paper and live. It fires once the mark (the bar's adverse high in a backtest) reaches the liquidation price times (1 − the cushion percent), while the short is still solvent. The existing close at 1.5× maintenance margin still applies; whichever trigger fires first wins. A tick already at or past liquidation is still booked as a liquidation. The kill switch still blocks the emergency close. On live Cross, the exchange's liquidation price is used only while it still describes the current short and is no older than 120 seconds; otherwise the estimate is used alone. The tighter (earlier) trigger wins. Isolated margin and paper always use the estimate. In a backtest, the short's cushion close fills at the higher of the trigger and the perp open, plus slippage and fees. When the open is missing, the previous perp close stands in, so the fill is the higher of the trigger and that previous close. A rejected close retries on a later bar at that bar's price. If that later bar never reaches the trigger, the fill is still the trigger, or the open if it is higher, not the market. A close or liquidation on a bar does not reopen the pair on that same bar or observation. Paper and live fill at the market at that time. Paper and live send one notification per emergency close, including two closes in the same hour; a retried send of the same close is not sent twice. A backtest does not notify.
When the price rises, Apathia always trims the short and sells the same amount of spot, then adds the proceeds as margin to restore the target for the new, smaller size. When the price falls, it withdraws the extra margin and can grow both legs back, but never above the coin count of the first entry. Funding never increases the position size. Anything left stays in the run as free cash and is not used for later up-move top-ups.
After every margin add or remove, Apathia reads the margin back. If it moved the wrong way, only part of the way, or not at all, rebalancing stops for that run, an alert is sent, and the run is labelled Self-rebalance stopped for this run after a margin check failed — emergency close only, or Self-rebalance stopped for this run after a spot-to-perp transfer was rejected — emergency close only if a spot-to-perp transfer was rejected. That stopped label is shown even if the account's margin mode was not detected. The emergency close is checked before liquidation and still runs on every check, even while a margin change's outcome is not yet known. No new margin call is sent while one is unknown. If the emergency close closes the pair during that wait, the open call is kept and read back later, recorded as resolved by the emergency close, with one close reason and no rebalancing-stopped alert. Until that leftover call is resolved, no new pair opens; the emergency close, exits and recovery keep running. Paper and a backtest then re-enter on their own once the leftover call is resolved or the unknown timeout passes; they are not paused and do not need a resume. The run report lists each leftover call next to the in-flight rebalance details, as a warning: Entries blocked until margin call … resolves (times out at …). The emergency close, exits and recovery keep running. The time shown is local. On paper, and on a live run on an exchange with no expiry, the timeout is the time the call was sent plus the unknown timeout. When the warning has no timeout: if the call is still waiting on the exchange's own expiry (30 s on Hyperliquid), it says waiting for the exchange's 30 s expiry; if that expiry has already passed, it says decided at the next check. When the list is empty, nothing is shown, including on older runs, which report an empty list. The list clears once the call is resolved. Every margin change is recorded in data collection.
If the account's margin mode cannot be read, the run still rebalances, behind the same read-back check, and is labelled Margin mode not detected: rebalancing untested (read-back guard and emergency floor stay on). A portfolio margin account is labelled Portfolio margin account: self-rebalance unsupported — emergency close only. There is no rebalancing; only the emergency close stays active.
On exchanges where an internal spot-to-perp transfer is not available in Apathia and the wallets are not shared, self-rebalance is labelled No spot-to-perp transfer on this exchange: emergency close only. It is grayed out in the editor and refused by the backend; only the emergency close stays on. Delta, Delta Exchange India and WooFi Pro use a shared wallet, so no transfer is needed and self-rebalance stays available, labelled untested. If a spot-to-perp transfer fails after the trim, the short has been trimmed and spot sold, self-rebalance stops for the run, and the emergency close stays on. If an up-move cannot restore the target from the trim, the step is rejected whole, the emergency close stays on, an alert is raised in the run report, and a notification is sent (both repeated hourly while the condition lasts).
Self-rebalance by exchange¶
Each row is an exchange that can run a Funding Carry perpetual leg in this build, with the label the run shows. The table comes from this release's export. Untested means real runs confirm it through data collection, not that self-rebalance is unavailable.
In this build, self-rebalance is labelled No spot-to-perp transfer on this exchange: emergency close only and applies to weex and zebpay. Those exchanges cannot move spot sale proceeds into the perp wallet, so self-rebalance is grayed out and refused; only the emergency close stays on.
| Exchange | Add margin | Remove margin | Spot-to-perp transfer | Label |
|---|---|---|---|---|
| alpaca | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| apex | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| aster | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| backpack | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bequant | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| bigone | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| binance | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| binancecoinm | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| binanceus | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| binanceusdm | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| bingx | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| bit2c | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitbank | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitbns | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitfinex | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitflyer | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitget | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| bithumb | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitopro | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitrue | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitso | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitstamp | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitteam | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bittrade | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bitvavo | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| blockchaincom | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| blofin | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| btcbox | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| btcmarkets | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| btcturk | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| btse | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bullish | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bybit | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bybiteu | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bybitid | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| bydfi | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| cex | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coinbase | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coinbaseexchange | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coinbaseinternational | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coincheck | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coinmate | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coinone | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coinsph | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| coinspot | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| cryptocom | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| cryptomus | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| deepcoin | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| delta | untested | untested | not needed | Self-rebalance on (untested on this exchange) |
| delta_india | untested | untested | not needed | Self-rebalance on (untested on this exchange) |
| deribit | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| derive | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| digifinex | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| dydx | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| extended | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| fmfwio | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| foxbit | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| gate | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| gateeu | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| gemini | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| grvt | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| hashkey | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| hibachi | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| hitbtc | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| hollaex | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| htx | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| hyperliquid | mocked contract | mocked contract | mocked contract | Self-rebalance on (mocked contract, not yet run on an account) |
| independentreserve | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| indodax | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| kraken | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| krakenfutures | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| kucoin | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| kucoinfutures | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| latoken | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| lbank | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| lighter | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| luno | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| mercado | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| mexc | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| modetrade | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| mudrex | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| myokx | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| nado | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| ndax | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| okx | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| okxus | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| onetrading | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| p2b | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| pacifica | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| paradex | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| paymium | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| phemex | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| poloniex | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| revolutx | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| tokocrypto | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| toobit | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| upbit | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| weex | untested | untested | unsupported | No spot-to-perp transfer on this exchange: emergency close only |
| whitebit | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| woo | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| woofipro | untested | untested | not needed | Self-rebalance on (untested on this exchange) |
| xt | untested | untested | untested | Self-rebalance on (untested on this exchange) |
| zaif | unsupported | unsupported | unsupported | No isolated-margin endpoint on this exchange: emergency close only |
| zebpay | untested | untested | unsupported | No spot-to-perp transfer on this exchange: emergency close only |
Paper trading and a backtest run the full two-way version. Live notes are on Live trading.
Presets: Strategy Library.
Cross is a labelled option next to Isolated on Funding Carry, Ladder (Basket, StepGain and Pyramid), and Standard perpetual runs. Isolated stays the default where the venue offers it. A run with no mode set uses the venue's default (default_margin_mode), which is cross on a cross-only venue; a Ladder run picks it when it starts. Carry's perp leg on cross joins the same account-wide cross pool as Standard trades and Ladder runs, and can use the account's free balance; isolated Carry still never uses free cash. Funding Carry's Cross label reads Cross margin: the short shares one pool with every cross position on this account and market type, and can use the account's free balance. Carry only does an emergency close: no top-ups, no self-rebalance. Self-rebalance with cross is refused.
Before trading live¶
Check implementation support for your exchange, market and mode. Account access and margin are checked separately in the app.
Back to Which workspace? or Getting started.