Guides
What's new
What changed in each Termless release, newest first, and when the database changed (which decides whether an older version can run on a newer one's data).
What changed in each release, newest first. Each one also says whether the database changed: additions only (new tables or columns) mean an older version still runs on the newer one's data and simply skips what it does not know, so going back is just running the older version. A release folder carries this page as CHANGES.md.
0.7.1#
What the 0.7.0 reviews left as minor, so trading systems can move from candle polling to the candle stream. No database change, so 0.7.0 and 0.6.3 still run on this version's data.
Candle streams
- A minute whose only tick reached the server after the minute closed (or was lost when the account's fan-out fell behind) is no longer missing: a trading symbol's minutes are read at their close even with no tick seen, so higher timeframes built from them are whole, and a tick that turns up late for a closed period has it read again. A bar is sent
closedonce andcorrectedonly when it changed; bars can arrive out of time order, so place each bytime. - Reads that keep failing become
bars_gapevents instead of waiting for good, and a series asked for while the link was down (or the bar work was busy) still gets the periods closed since. - A symbol whose ticks the account could not take (the streamed-symbol cap, a broker refusal) still gets its closed bars, read from the broker every period; its ticks are tried again every 30 s.
- The autumn clock change on a New York + 7 server, or an outage across it: the series follow the repeated hour; a bar the repeat changed is sent as
corrected, one never sent before asclosed, an unchanged one not again (the hour's ticks were ignored, and a few minutes could be closed early and never sent). - One account follows at most 200 symbols and 1,000 series with bars across its streams (
429past either).
Streams
- Names a stream took while the broker link was down are checked when it comes up: a different case becomes the broker's name, an unknown name is dropped (a WebSocket gets an
errorper dropped name, thensubscribedorbarsfor what changed; an SSE stream gets no notice). Before, such a name stayed silent for good. - Under a clock rule a
gapcarriesfrom_utc_mscandto_utc_msc, abars_gapfrom_utcandto_utc, and so do/stats'fromandto.
Server
- A request that panics is answered
500with itsX-Request-Idand the usual security headers. - Reading orders or a position no longer runs in the detached task trades use (a needless task per read).
/statsanswers again at once after the account's clock rule changes (it could keep the answer without UTC for five minutes).- Library: reading the symbol list again mid-connection drops the cached spec of a name that now belongs to another symbol, and a spec read already under way is checked against the new list.
0.7.0#
The second audit round (2026-12-01): fixes, speed, and features every client was building around. The database changed by additions only (accounts.clock; api_keys.max_daily_loss, max_drawdown_pct, limits_since; the table key_highs), so 0.6.3 still runs on this version's data.
Changes a client may notice
/quotesleases its symbols. A/quotesor/ticksread keeps its symbols subscribed forholdseconds after your last read of them (default 600,hold=0to subscribe nothing), then lets them go; 0.6.3 kept every symbol a read had ever named until a restart.DELETE /quotes?symbols=lets them go at once. A symbol a stream holds or the watchlist pins is never let go by a lease. If you read/quotesonce and then expect that symbol to keep streaming, name it in your stream or read again withinhold./tickskeeps a symbol's ticks from its first read on, not from when it began streaming, and drops them when it stops streaming: the first/ticksread of a symbol is often empty.- Order book sizes are the broker's units (units of the base, as the brokers' web terminals show them), now named so, with
lots(units over the contract size) beside them;typemay be 3 or 4 (sell and buy market levels). Changes are added to their level, as the web terminal does: books with change pushes (ThinkMarkets) were wrong.
New
- Candle streams:
events=bars&bars=XAUUSD:M1on SSE and WebSocket. Forming bars from the bids, closed bars as the broker has them, corrections a minute later, missed bars after a reconnect (orbars_gap). See Streaming. - Gap notices: a stream says when it missed ticks (
gapevents: fell behind, reconnect, fan-out lag). - Batch candle reads:
POST /candles/batch, up to 20 ranges, 200,000 bars. - A candle cache for settled bars (closed 15 minutes ago or more), 32 MB over every account: a repeated range read no longer reaches the broker.
- UTC beside broker time: give an account a clock rule (
clock:ny7orutc) and everything carriestime_utcbesidetime(andexpiration_utcbeside a pending order'sexpiration), worked out per timestamp from the time-zone database built in. No rule, no UTC fields. - Loss limits on trade keys:
max_daily_loss(from 17:00 New York) andmax_drawdown_pct; past either, orders that open something are refused (403key_limit), closing always works. - Account statistics:
GET /stats(trades, win rate, profit factor, average win and loss, largest drawdown, profit per day), and a Stats tab on the dashboard's account page. GET /specs?names=(many specs in one request, each with when it was read);GET /overview(every account's summary in one request);/ticksnames its volumes (volume_raw,volume_real); the spec carriesbook_depth.- The dashboard: a Server clock setting per account, the two loss limits in the key dialog, the Overview in one request every 4 s, equity curves every 5 minutes.
Fixed
- A stream could lose a symbol: the tick subscription has one owner now, which sends the whole set the account wants one change at a time and keeps it across a reconnect.
- A trade whose caller left mid-way (a timeout, a dropped connection) could lose its audit row, its magic number and long comment, its late-result watch and the answer stored for its Idempotency-Key; a trade now finishes in a task of its own. Any answer given before the trade request went out (not only some codes) is no longer kept under an Idempotency-Key, so a retry is sent.
- The history of one closed position read ten years every time; it now starts from when the position opened, or searches back 2 days, 30 days, a year, ten.
- Built timeframes (M2, H3, ...) near the ends of a range had missing or extra bars.
- Specs were never read again after the first time; now once a day, off the trade path: a trade, a position read or a margin check uses the spec it has and never waits on the broker for it (a read that fails keeps the old one).
- Currency conversions took the bid or the ask without regard to the direction (off by about a spread).
- A client that vanished without closing held its stream for about 15 minutes; now 30 s (
TCP_USER_TIMEOUT, Linux). - A turned-off account kept its trade log task; a certificate fetch could overflow; trade request numbers start at a random number per session.
- From the release reviews: a symbol the server subscribed for its own use (a
/calcprice, a conversion) could be dropped by another stream's change and its price served frozen; a symbol's last price outlived its subscription; a stream refused for its bar series, or given up while opening, left its symbols subscribed; a bar series whose symbol could not be subscribed stayed silent (now tried again every 30 s);unbarswith another spelling of a name removed nothing; a read given up midway left an entry in the candle cache; a busy tick flow could hold back bars, a client's messages and trade events on a stream; a whole order book with more levels than its spec's depth was thrown away. - From the review of those fixes: a trade still waiting for its turn when its deadline passed could be sent after its caller had been told it timed out (now never sent:
503 busy); a tick subscription the broker refused or never confirmed waited for the next change (now sent again within 30 s); what the server subscribed for its own use (a/calcprice) stayed for the life of the link (now let go 10 minutes after its last use, at most 200); a dropped symbol's price could come back on a late push; a symbol just subscribed could show a price with one side 0; a drawdown limit's high was only kept from the key's first order (now from when the limit is set, by every equity sample); a series named twice in one request was counted twice; streams could keep trade events behind ticks.
Faster and smaller
Hardware AES on ARM (ams), small WebSocket read buffers, count reads starting at the bar already known, frames built once per protocol, specs and symbol names shared instead of copied, typed deal rows, gzip for answers over 4 KB, the dashboard's files cached for good, the hourly prune in one transaction. A batch candle read is written as typed rows (three 200,000-bar batches at once: peak memory 392 MB before, 157 MB after), and changes to a stream's bar series wait merged per series, never in a queue that grows.
0.6.3#
The fix round from a full audit (2026-10-30): nothing in the database changed, so 0.6.2 still runs on this version's data. New in the data folder: termlessd.lock.
- A valid key works from an address locked out for unknown keys. The lockout (30 unknown keys in 15 minutes) used to refuse every key from that address, so one stale process polling with a rotated key locked the working bots on its box out, again every 15 minutes. It now refuses unknown keys only.
- Trade and account bodies refuse unknown fields (400, naming the field):
POST /orders,PATCH /orders/{t},PATCH /positions/{t},POST /accountsandPATCH /accounts/{id}, asorder_sendandPATCH /keysalready did. Before,{"stoploss": ...}opened a market order with no stop loss and answered 200. If a client of yours sends a field these routes do not take, it gets a 400 now instead of a silent drop. - The dashboard tells an unknown outcome from a refusal. A 504
unconfirmed(the broker took the order, its result did not come) read as "The broker refused it: nothing was placed", and Try again sent the order a second time on a new key. The ticket and the docked ticket now say the broker may have the order, point at Positions, and retry with the same key, so the real result comes back and the broker is never asked twice. - A refused login after a working link is retried every minute for an hour (10, 20, 30, 60 s as before, then every 60 s) when the broker answers its restart code (2), not every 5 minutes after two: broker restarts that were over in three minutes read as 7, 13 or 17 minutes of outage. Any other code (a wrong or changed password) and a password that never worked are still tried every 5 minutes.
- A count candle read starts narrow (three times the bars plus two hours, or from the newest bar it already knows), not from four days: a 3-bar M1 read pulled about 5,760 bars from the broker and kept 3.
- One termlessd per data folder. A second one started on the same folder is refused at once with a message naming the folder and the live pid; before, it marked the live run as crashed, overwrote its pid file and re-numbered its trade events. The port is bound before the accounts log in, so a taken port no longer logs every account in and out.
/quoteswaits for prices of every symbol at once, not in turn (a call naming quiet pairs after a weekend reconnect could take 3 s a pair and hit the 30 s bound).- A stream's symbols leave the account's subscription when its last stream closes, and a symbol taken off the watchlist stops streaming at once (both stayed until a restart or reconnect before). Beyond the watchlist, which is never counted, a session streams at most 1,000 symbols (every stream's and quotes read's together), so a read key cannot make the account stream the broker's whole list, and cannot block a watchlist change either.
- Trade events behind a slow or unconfirmed order that carries a magic number or long comment wait once, not once per event.
- Answers that never reached the broker are never replayed for 24 h: the 403
real_accountand a timeout of the spec read before a trade request now let the Idempotency-Key go. /health,/eventsand/equityread SQLite off the two request workers.- A WebSocket write has a 10 s bound: a client that stopped reading is dropped, not held until TCP gives up.
PATCHandDELETE /orders/{ticket}act on pending orders only, asGETlists them; an enum given as a number past 4,294,967,295 is refused instead of truncated; position profit rounds with the account currency's digits;GET /tradeswithoutafterreturns the newestlimitevents (default 100) instead of all 1,024.- Docker add-ons: images pinned (
caddy:2.11.7-alpine,cloudflare/cloudflared:2026.10.6) and forwarding headers trusted only from the proxy container's fixed address. - Dependencies: rustls 0.23.46, rustls-webpki 0.103.16, webpki-roots 1.0.11 (the October advisories).
--helpnames every setting; the bots guide has a section on reading from the stream instead of polling.
0.6.2#
Database: no change.
- Memory stays level on a busy server. The Linux builds now use mimalloc as their memory allocator. Before, they used the C library's allocator that came with the cross-compiler, which never handed freed memory back and, on a two-CPU machine under steady load, kept taking fresh memory instead of reusing what was free: one busy server climbed from about 20 MB to 250 MB in two days while it used about 60 MB of it. An idle server now starts about 8 MB higher than before, and requests cost less CPU.
- The memory cap is 512 MB in
termlessd.serviceandcompose.yaml(256 MB before). A busy server uses well under it; the cap stays as a safety net, and systemd or Docker restarts the server if it is ever reached. - Exness' server build 6230 is verified, so
/accounts/{id}/readyno longer notesbuild_unverifiedfor it and/statusno longer reads degraded because of it. - A change to a position or order that was waiting for another change to the same ticket, and then gave up (its deadline passed or its caller went away) just as the other finished, could leave a small entry behind for good. It no longer does.
- Expired dashboard sessions, a deleted key's orders-per-minute window, and a deleted account's order counts no longer stay in memory.
0.6.1#
Database: no change.
- A read cut off by a dropped link is asked again when the link comes back within 28 s of the request (25 s in 0.6.0). A link cut for missed pings drops 12 to 18 s after the broker goes quiet; 0.6.0 could miss a reconnect a few seconds later by a second.
GET /api/v1/diagnostics/undecoded?bodies=1works as documented (it answered 400 and only tooktrue), so the dashboard's Troubleshoot page shows the whole body of a captured frame again.- The 12 zero bytes a position that Pepperstone and IC send after the positions and orders (their own web terminals never read them) are known padding: no longer listed as
extraon every connect. Any other bytes there are still reported.
0.6.0#
Database: additions only (four new columns: accounts.new_trades_paused, api_keys.max_volume, api_keys.max_open_per_min, account_events.quiet_since). An older version still runs on this data. After an unclean exit (a kill, a crash, a power cut) the kept trade events move to a new epoch at the next start.
What behaves differently
- A trade the broker took but never confirmed answers
504 unconfirmedwith itsrequest_idand the last in-betweenretcode(10001 to 10003), never a422carrying 10003 (which read as a refusal and invited a second order) and never503 disconnected(which says "not sent"). A trade whose link dropped after it was sent ends at once with504 unconfirmed. When the final result still comes on that link (within 2 minutes) it is audited, the order keeps its magic number and long comment, and the stored answer for itsIdempotency-Keybecomes the real one, so a retry with the same key learns what happened. A broker answering the request itself "in process" now waits for the final result too. order_sendrefuses fields it does not know (400 naming them; a misspeltpositionwas dropped in silence before), and an SL/TP change by symbol withoutpositionworks only when one position is open on it.- Changes to one position or order run one at a time, each until the broker's update for it is in: setting the stop and then the target (or two callers at once) can no longer send the old stop back.
- A stop or restart refuses new trades (
503 stopping, not sent) and waits up to 10 s for trades already sent. - Reads ride out a short reconnect: a read whose link dropped while it was in flight is asked once more when the link is back (within 25 s), and a read arriving during a reconnect that started in the last minute waits up to 10 s for it. During a long outage reads still answer
503in about 2 s. Give your HTTP client at least 35 s. - Outages cut for missed pings start at the first unanswered ping, so their length (and uptime) is the real gap, not just the seconds after the cut (
start_estimated,detected_at; events carryquiet_since). - A reply shorter than its own count is an error, never a shorter list; bytes after the records a layout knows are kept and reported to diagnostics. After lost frames a symbol's partial ticks wait for both sides (at most 5 s).
503 disconnectedon a trade is no longer stored for itsIdempotency-Key(it was never sent): the retry with the same key goes to the broker. A trade route answers within the 30 s bound even while it waits behind another trade or another change to the same ticket (503 busyif not sent,504 unconfirmedif sent).- A market order naming a
positioncounts as a close (never paused or limited) only when it is the other side of that open position, on its symbol, and no bigger. - Deleting a key (or narrowing it, or ending a dashboard session) ends the streams it opened (
reasonkey revoked,key changed,signed out); a stored answer is not replayed to a key that lost the account.
What's new
PATCH /api/v1/keys/{id}: change a key's name, scope, accounts and limits in place; the key stays the same.- Pause new trades on an account (
new_trades_paused, a switch in its settings): orders that would open something are refused (403 trading_paused, not sent); closing and changing stops still work. - Key limits:
max_volume(403key_limit) andmax_open_per_min(429key_limit) on orders that open something. /readywarnsping_overdue(blocks nothing) while a ping has waited 2 s;linkhasping_pending_msandpings_missed./statuscountspings_missed,trades_unconfirmed,trades_lateand command waits;/metricshas them as counters, plustermless_trail_rows_dropped_total.- Deals and history orders page by time and ticket (
before_ticket), so a page never cuts rows sharing a millisecond. - A guide for bot builders: Setting up a bot.
- Sturdier underneath: an Idempotency-Key reservation survives a power cut (SQLite FULL), writes to the broker have a time limit (a broker that stops reading cannot hang the link), database work on the trade path runs off the server's worker threads, and the audit queue is bounded.
0.5.1#
Database: no change. An older version still runs on this data.
What behaves differently
GET /accounts/{id}/ready:ready_to_tradeis now false only for what makes an order certain to fail: the link down, the login refused, trading turned off, an investor login, a read-only key, a real-money account with trading off, the account not loaded yet, an unknown symbol, a closed market. An old or missing price no longer blocks it:price_staleandno_pricenow come withblocks: "none". In 0.5.0 a thin pair right after the 17:00 New York open answered "not ready to trade" for minutes while a market order would have filled (on one demo server USDJPY went quiet for about 11 minutes at a typical daily open and 52 minutes at one Sunday open). If your bot wants a fresh price, readprices[].last_tick_age_ms(orfresh) and decide; it is still there for every asked symbol. A watched symbol you did not ask about no longer adds a note.GET /status: prices make an accountdegradedonly when its feed stopped: connected for over 2 minutes and every watched symbol whose market is open has gone 2 minutes without a tick (the newticks.feed_quiet). One quiet symbol is the market, not a problem. The top verdict is alsodegradedwhen Termless wrote a crash report in the last 24 hours (a panic it survived, or an unclean exit found at a start), and the summary says so.
What's new
/status:termless.crash_reports_24h,termless.errors_1h(error lines in the log in the last hour, counted, not judged) andaccounts[].ticks.feed_quiet./metrics:termless_crash_reports_24handtermless_errors_logged_1h.- The dashboard's sidebar is grouped: Overview, Accounts and API keys, then Monitor: Health, Connections and Activity. The Diagnostics page is now the Health page's Troubleshoot tab (old links land there), so there is one verdict, on the Status tab; the Troubleshoot tab shows a dot while there is something to read on it. A quiet symbol shows calmly on its account ("US30 quiet"); only a stopped feed shows in amber.
/statusand/metricsare cheaper: they read one stored sample per restart instead of 30 days of samples per account./llms.txtgives each page's size in tokens and a Read first list: five pages, about 17,000 tokens, cover a bot that reads prices and trades. The agents guide now says to start there and fetch only the pages a task needs;/llms-full.txt(well over 100,000 tokens) is for a search index or an offline copy, not a model's context.
0.5.0#
Database: additions only (no new tables or columns; the audit trail gains stop rows beside its start rows). An older version still runs on this data.
What's new
GET /api/v1/accounts/{id}/ready: a bot's pre-flight check before an order. It answersready_to_readandready_to_tradewith the reasons why not (a machinecode, what it blocks, a plain message) and the facts behind them: the link and its ping, the login, the server build and whether it is a verified one, the trade side (trading allowed, investor login, the real-money switch, the key's scope), each watched or asked symbol's last tick age and whether its market is open. From memory, no broker round trip; any key that can see the account.?symbols=names the symbols you are about to trade.GET /api/v1/status: how well Termless and each broker link have been doing. Averdict(healthy,degraded,down) with a one-line summary; the process (version, uptime, memory, restarts and unclean exits in 30 days); per account: uptime over 1 hour, 24 hours, 7 days and 30 days, reconnects, the longest outage, a 30-day strip of days, the outages with a cause (broker maintenance, broker unreachable, broker unresponsive, Termless restart, network, login refused), the tick rate, order round-trip latency (p50, p95, max) with counts over 24 hours, and protocol drift. A key limited to some accounts sees only those.GET /api/v1/metrics: the same numbers in the Prometheus text format, for a scraper with areadkey.- The dashboard has a Health page (in the sidebar): one line saying whether all is well, then per account its uptime, a 30-day strip, ping, the last tick, the build, recent outages in plain words and order latency.
- A guide for bot authors: Health checks for bots.
- Two optional settings:
TERMLESS_BROKER_TIMEOUT_MS(one broker call; the default, 20 seconds, is what 0.4.x used) andTERMLESS_CATCH_UP_RETRY_S(the waits above). Nothing needs setting.
What behaves differently
- After the broker link comes back, the server reads the deals made while it was down (the
caught_uptrade events). When the broker's history service did not answer that read (seen during a broker's weekend maintenance), the unanswered request closed the link, the reconnect started the read again, and the link dropped about once a minute for as long as the maintenance lasted. Now a catch-up that gets no answer is not tried on the next reconnect: it is tried again after 1, 2, 5 and 10 minutes, then every 15 minutes, still from the start of the first gap, so the deals of the whole outage come once it answers. Clients still get aresyncevent at every reconnect, so they re-read positions and orders as before. - Connecting to a broker whose host has both IPv6 and IPv4 addresses no longer fails when the IPv6 path is broken. The addresses are tried in turn, IPv6 and IPv4 interleaved, each next one 250 ms after the last if that has not connected yet; the first to connect wins and a failed try does not stop the others. The overall connect timeout is the same, and only the addresses the server's own address check accepted are dialled.
- The connection history (
GET /api/v1/accounts/{id}/events) now says why a link was lost: thelostevent's reason isconnection lost: ...with the cause (for exampleconnection lost: 2 pings unanswered in a row (the broker keeps the socket open but has stopped answering)). It was often empty before. While an account is disconnected its status'slast_errorcarries the same text. - If a trade update from the broker cannot be read, or updates were skipped while the server was very busy, the positions and pending orders are read again from the broker straight away. Before, the list stayed as it was until the next reconnect, so a position the broker had closed could still be listed.
GET /api/v1/healthis unchanged.
Breaking changes: none. No route, field, status code or default changed or went away; there are new routes and new reasons only. Code written for 0.4.x works unchanged.
Upgrading from 0.4.x
- systemd: unpack the archive next to the old release,
cdinto the new folder and runsudo sh install.sh. It backs up the data, keeps the previous program, installs the new one and checks it started; it ends withrunning: termlessd 0.5.0.sudo sh install.sh --rollbackgoes back. - Docker: unpack it next to the old release,
cdinto the new folder and runsh upgrade-docker.sh ../termless-0.4.0-linux-<arch>(the folder of the release you run now). It copies your settings, builds the new image while the old container keeps running, backs up the data volume, restarts on the new image and checks it started. - Nothing to migrate by hand: no setting, key or account changes.
- Confirm it worked:
curl -s "$TERMLESS_URL/api/v1/accounts/<id>/ready" -H "Authorization: Bearer $TERMLESS_KEY"answers with"ready_to_read": trueonce the account has connected (a few seconds after the start), andcurl -s "$TERMLESS_URL/api/v1/status" -H "Authorization: Bearer $TERMLESS_KEY"answers"verdict": "healthy". - The uptime numbers are worked out from the connection history the server already keeps (up to 90 days), so they start with that history, not from zero. Termless's own downtime is known exactly from this release on; for older restarts it is taken from the account's connection events.
0.4.0#
Database: additions only (the table trade_log, the column accounts.trade_real).
Order books
- Brokers that refuse an empty book list (IC Markets answers code 1) work: a book is no longer renewed by sending the list empty, the first read waits for the snapshot its add brings, and releasing the last book succeeds. Every read was a 502 "the broker returned code 1 for command 22" before.
- A broker that sends no book for a symbol is asked again only every 5 minutes, and the answer says so (
time0, no levels). The dashboard's Depth panel shows "The broker sends no order book for ...", reads it every 10 s instead of every second, and backs off after errors (2, 5, 10, 30 s; it stops on a 4xx). max_age_msoutside 100 to 60000 is a 400 (it was quietly clamped).- A book's
timeis right for changes the broker pushes too (0.3.0 read the wire's seconds and milliseconds as one number and answered a time far in the future), andtime_mscgives it to the millisecond.
Margin and checks
GET /calcfor a pending order type:marginis what the order needs once it fills (the market rate of its side at its price) andmargin_pendingwhat the broker holds while it waits: its pending rate, 0 at the brokers seen, so nothing. A limit order's margin was the full position value before (a missing rate counted as 1).- A symbol's spec lists every order type's margin rate as the broker sends it (
margin_rates), and says whether the symbol can be traded now (tradeable, as on/quotes). POST /order_checkchecks prices as brokers do: a stop-loss or take-profit on the wrong side of the price, or closer than the symbol's stops level, is 10016; a pending order's price on the wrong side of the market is 10015. Stop changes (TRADE_ACTION_SLTP) and order changes (TRADE_ACTION_MODIFY) are checked too. A pending order only needs its waiting margin, so it is no longer refused with 10019 for the margin of its fill.
Requests
- A query parameter a route does not take is a 400 naming the ones it does (
GET /deals?tickt=returned every deal of the window).key=is still accepted anywhere. - After connecting, the specs of an account's watchlist, order books, positions and pending orders are read in one request, so the first read of each no longer waits a broker round trip.
- A request that waited its whole turn behind earlier ones of the same command (one is in flight at a time) is 503
busy, "not sent, sending it again is safe", instead of 504 "the broker did not answer". A trade sent with anIdempotency-Keycan be sent again with the same key after it.
The broker link
- A ping that waits behind a big reply still arriving (a 50,000-bar candle pull) no longer gets the link declared dead after two misses: while a frame is still coming in, five are allowed. A broker that answers nothing is still noticed as before.
- A login refused right after a working connection (a broker restarting refuses logins for a few seconds, often at weekends) is tried again after 10, 20, 30 and 60 seconds before the 5-minute wait meant for a wrong password.
Trade events
- Numbering survives a restart and an upgrade: the newest 1,024 events of each account are kept in the database, and a client resumes from an id it saw before the restart.
- After the link was down, the server was stopped or the account's session started again, the deals the broker made meanwhile come as
tradeevents markedcaught_up: true(read from its history; no position or balance with them), then theresync.
Accounts and keys
- Trading on an account the broker calls real money is off until an admin turns it on (
trade_real, the account's settings): every trade route answers 403real_account. Demo and contest accounts trade as before. Reading is never affected. (Read and trade keys could already be limited to some accounts; admin keys cannot.)
Other
/healthshows the version only to callers with a key or a session.- Frames the server could not decode are read back from
captures/undecoded.jsonlat start, so a restart no longer emptiesGET /diagnostics/undecoded. - Candle requests over 10,000 bars take turns per account, one at a time; the rest wait their turn.
Release folder
- Each release tags its Docker image with its version (
termless:0.4.0), so an old folder still runs its own version (every release used to buildtermless:local). upgrade-docker.shbuilds the new image while the old container keeps running, reads the new version from the image (nothing runs on the machine itself), then backs up and restarts: the outage is only the backup and the restart.- The release README says how to go back with Docker, and the restore command removes the database's journal files first.
- The folder carries this page as
CHANGES.mdand aSHA256SUMSof its files; the binaries carry no path from the machine that built them.
0.3.0#
Database: unchanged.
- Every official MetaTrader5 Python call has an HTTP twin: a position or an order by ticket, history filtered by ticket or position,
GET /calc(order_calc_margin and order_calc_profit),POST /order_check, recent ticks (GET /ticks), candles withoffset, and order books (GETandDELETE /book). The guide "Coming from MetaTrader5" maps each function. - The dashboard's chart: five chart types, all 21 timeframes, moving averages, Bollinger bands and RSI, full screen, a right-click menu, horizontal and trend lines, stops and pending orders dragged on the chart behind a confirm, a depth-of-market panel, the ask line and the time left in the bar.
- The watchlist marks symbols with open positions or pending orders; long lists scroll inside their cards.
- Memory over days: tick history bounded per account; the peak since start in
GET /diagnostics(rss_peak_kb).
0.2.3#
Database: unchanged.
- The chart fits each symbol's prices when the symbol or timeframe changes (after the price axis was dragged, the next symbol could be drawn outside the view).
0.2.2#
Database: additions only (the table order_tags).
- One request per command in flight per account: brokers refuse a second candle request at once, and since replies carry no request id, that refusal could hand one caller another symbol's bars.
- Trade events are numbered (
seq, the id<epoch>:<seq>); streams resume with?after=orLast-Event-ID;GET /trades?after=for polling;resyncwhen resuming is not possible. - Close reasons on deals, positions and orders; magic numbers and comments past 31 characters kept by the server and put back;
GET /orders/history; candles say whether they arecomplete; more spec fields (tick_value, swaps, margin, expiration, order types); quotes say whether the symbol istradeable. - Big candle pulls give their memory back.
- The chart groups many trades on one bar into one arrow with a count.
0.2.1#
Database: unchanged.
- Password checks wait in a bounded queue; IPv6 callers are counted by their /64 for lockouts.
- The domain guide's Cloudflare Access steps no longer bypass the sign-in for scripts (service tokens instead).
0.2.0#
Database: unchanged.
- Trades drawn on the chart as MetaTrader does (positions, stops, pending orders, entries and exits); bars missed while a tab slept are filled in.
- The admin password needs 15 to 200 characters with a lowercase letter, a capital, a digit and a symbol.
--trusted-proxies; HSTS over https.- Upgrades with a data backup, a start check and a way back (
install.sh,install.sh --rollback,upgrade-docker.sh).
0.1.0#
The first release: termlessd with the dashboard and these docs built in, many accounts, REST, SSE and WebSocket streams, API keys with scopes, idempotent orders, an audit trail, termlessd doctor, crash reports, the built-in broker directory, and install files for systemd and Docker.