Coming From Another Engine
If you have run SPX bots on a self-hosted engine before, one you installed yourself, ran beside TWS or IB
Gateway and configured with a config.yaml of templates and bots, most of what you wrote carries over. This
page lists what to change: the setup steps that go away, the keys that are spelled differently or set
somewhere else, and the few behaviours worth knowing before your first session.
Setup: what goes away
| Step | Self-hosted engine | TradeMint |
|---|---|---|
| The software | You install the engine on your own computer or a server you rent, and keep it running and updated. | Nothing to install. You sign in to your dashboard at app.trademint.io. |
| The IBKR connection | You run TWS or IB Gateway yourself, set its API port and client ID, and keep it logged in. | TradeMint hosts the gateway that talks to IBKR and operates it for you. You give it the login to use in Settings → Connections → Broker. |
| Market data | Real-time options and index data on your IBKR login. | The same subscriptions, shared with your paper account. See Interactive Brokers. |
| An access token | A token in the file that unlocks the engine. | None. Your TradeMint sign-in is your account. |
| Telegram | The bot token and your username written in the file. | Settings → Connections → Telegram, where both are stored encrypted. |
| Your configuration | A file on your machine, read again when the engine restarts. | Configuration in your dashboard: Advanced mode is the same YAML, Normal mode is forms. Save and Restart applies it. |
Bringing your file across
Paste your templates and bots into Configuration in Advanced mode, then press Save. The config check reads every line before anything is stored, and it tells you about the lines TradeMint does not read:
- A key it does not read at the top of the file, or at the top of a bot, is a warning. The file saves, and that line does nothing, so delete it. On a bot, a near miss of a key that decides whether or how much it trades is refused instead, with the right spelling suggested.
- A key it does not read inside
stop:orspread:is refused. Those blocks hold your stops and your widths, and a line there that does nothing would leave a stop you believe you set unarmed. - A token, password or other secret at the top of the file is refused. It belongs in Settings → Connections, where it is stored encrypted.
You can also hand the job to TradeMint AI on the Configuration page: "replace my bots with these", followed by your old bots, opens one review of every change. It writes entry filters only from TradeMint's own filters, and asks you rather than guessing when it cannot. See Normal mode.
Key map
Delete these: they are set somewhere else, or not needed
| Old key | On TradeMint |
|---|---|
account | Your IBKR login is entered in Settings → Connections → Broker, not in this file. |
token | Not needed. A token in the file is refused when you save. |
telegramUser, telegramBotToken | Settings → Connections → Telegram. A bot token in the file is refused when you save. |
twsPort, twsClientId | Not needed: the connection to IBKR is run for you. |
pidFile, databaseFile, autoUpdate, logLevel | Not needed: nothing of TradeMint runs on your computer. |
timezone | Not read. Every time in your file is New York time (ET), wherever you are. |
tradeNotifications, displayStatusPercentages | Not read. Choose which alerts reach you in Settings → Alerts. |
initScript, scripts, commands, externals | Not supported. TradeMint runs no scripts of your own; see the entry filters row below. |
Change these: the same idea under another name
| Old key | Write instead | Notes |
|---|---|---|
targetOTM | targetPercentOTM | The old spelling still works. |
openOrderTimeoutSeconds | openOrderTimeout | The old spelling still works. The default is 30 seconds. |
autoEnableNewBots | autoEnable | The old spelling still works. The default is false, so a new bot starts switched off unless its own entry says enabled: true. |
profitTargetPercent | profitTarget | The old spelling still works. profitTarget: {percent: 0.5, resting: false} is read as written. |
nlvOverride at the top of the file | nlvOverride on a template or a bot | At the top of the file it is not read. Set it on a template to cover every bot that uses it. |
closeLong | secondary | What happens to the long leg after the short closes: close (the default), keep or trail. closeLong inside spread: is refused when you save. |
stopGracePeriodMs, hardDeltaStopGracePeriodMs | gracePeriodMs, hardGracePeriodMs inside stop: | Set them on a template's stop: block to cover a whole family of bots. |
An entry filter that reads spx.last | spx() | Market values are spx(), es(), vix(), vix9d() and vix1d(). A filter written with .last is refused when you save. |
Same name, worth a second look
| Key | What TradeMint does with it |
|---|---|
deltaCheck | Defaults to all: the position's net delta, the short leg's less the long wing's, so an offset stop counts from the net at entry. Write deltaCheck: primary to stop on the short leg alone. An iron condor's sides, a calendar and a diagonal default to primary. |
maxDTE | Read but not used. The expiry comes from minDTE. |
openOrderAlgo | Relative cannot be used on an entry and works as Normal there. It does work on stop.orderAlgo. |
resting inside profitTarget | Only a credit spread's profit target rests at the exchange. On every other type the target is watched and closed when it is reached. |
confirmEnable | Read, and it has no effect. |
| A calendar or diagonal | Its own type here, Calendar or Diagonal, with farDTE for the far leg. Experimental: contact support before using it live. |
Every other key you are likely to have, from name, template, symbol, type and tags through the
sizing, strike, entry-time and stop keys, is read under the same name. What each one does here, and its
default, is in the config.yaml reference.
What TradeMint does that is worth knowing first
Pausing never pauses a stop. /pause, the dashboard's Trading switch and pause: true stop new
entries only. Open positions stay watched and their stops stay active.
A spread goes in as one order. Every spread and iron condor is entered as a single combination order, never one leg at a time. A short strangle is the exception: its two sides are two separate orders.
A safety stop rests at IBKR when prices stop arriving. If a position goes without fresh prices, TradeMint places a stop order at IBKR at the level where the bot's own stop would have fired. See Exiting positions.
Entry filters are a fixed set of named filters, never code. FOMCFilter(), CPIFilter(), the weekday
filters and the market values combine with &&, || and !. A filter that reads a feed counts as false
while that feed is unavailable, so the bot skips rather than entering blind. See the
entry filters.
A template's stop: and spread: merge into each bot. A bot that sets one stop key keeps the rest of
its template's stop block. secondary and a trailing stop are the exception: a bot that writes its own
replaces the template's whole block.
Changes apply when the engine restarts. Save and Restart on the Configuration page does both.
Anything still open at the close cash-settles. Positions are not closed just because the day ended.
Use beforeExpirationTime if you want a timed exit.
Telegram commands
Most commands you know work the same way, among them /status, /positions, /day, /stats, /export,
/chart, /daychart, /bp, /config, /enable, /disable, /close, /btc, /pause and /resume.
A few differ, and the full list is on the Telegram page:
| Command | On TradeMint |
|---|---|
/tags | Written /tag: it lists your bot tags with a count for each. |
/restart | Use Restart in your dashboard, under Settings → System. |
/delta | Lists each open position's live delta. It does not look up a strike. |
/stops | Not available. No command switches a position's stops off. |