Configuration

Everything TradeMint does for you starts in one place: your config.yaml. It's the single file where you describe the trades you want and how your account should behave. Once it's set, TradeMint reads it and runs your bots on schedule, entering, watching, and exiting for you.

This page introduces what's in that file and how to edit it safely. For the full list of every available setting, see the config.yaml reference page.

What config.yaml is

config.yaml is your trading plan, written down. Rather than clicking through trades by hand, you describe them once (their entry times, how they pick strikes, and when they exit), and TradeMint follows that plan for you all day.

One important thing it is not: it's not where your secrets live. Your Interactive Brokers account and your Telegram bot token are entered separately in Settings → Connections and kept in an encrypted store. They never go in this file.

What's inside

Your config has three parts, in roughly this order:

Global settings

These apply to your whole account, not to any single bot. They're the account-wide rules of the road: things like starting the day paused, the margin cushion TradeMint keeps in reserve before it puts on a new trade, and when your timed reports go out (which alerts reach you is set in Settings → Alerts, not here). Most have sensible defaults, so you only set the ones you care about.

The margin cushion TradeMint keeps in reserve before opening a trade is one you can raise, with minExcessLiquidity. You cannot lower it and you cannot switch it off: the platform holds a floor under it, and a smaller number than that floor is ignored. Its job is to stop a cluster of entries from walking your account into a margin rejection, so the only direction you can move it is safer. The cushion is in US dollars: if your IBKR account is kept in another currency, such as Canadian dollars, its figures are converted to US dollars before they are compared with it. See minExcessLiquidity.

Templates (optional)

A template is a reusable set of defaults. If several of your bots share the same shape (the same spread structure, the same stop rules, the same exit style), you can define that once as a template and have each bot point to it. Each bot then only needs to spell out what makes it different: its name, its entry time, its target delta, its size. Templates are entirely optional; a small config doesn't need them at all.

Bots

This is the heart of your config: the list of bots you want to run. Each bot is a single scheduled trade with three things:

You can run as many bots as your plan allows (different times, different strike rules, different exits), and TradeMint runs each one on its own schedule.

There is a practical ceiling, and it comes from your market-data subscription rather than from TradeMint: every open position is watched with live quotes, and your broker caps how many simultaneous quote streams you may hold. What binds is what is live at the same time (your open positions, plus the strikes a bot is pricing while it enters), not how many bots you define; bots that fire at different times, or that close before the next opens, reuse the same capacity.

Editing it safely

You edit your config right in your dashboard: open Configuration in the left rail, the built-in config editor. The editor gives you your config in an editable panel. When you press Save, TradeMint validates your changes first. If anything would change what a bot trades, or leave a stop unarmed, the save is refused and the problem is shown, so a stray typo or a broken rule can't quietly slip in and derail your trading; anything else that would do nothing saves with a warning naming it.

A setting TradeMint does not read is named with the nearest real spelling. Under stop: or spread:, or when that nearest spelling decides whether or how much a bot trades (entryFilter, days, quantity, profitTarget, maxDailyStops and the like), the save is refused. Any other unknown setting saves with a warning, and has no effect.

Tip: Edit config.yaml in the dashboard's config editor rather than by hand. It validates every change on Save, so a typo or a broken rule is caught before it is stored.
Two things have to happen before a new bot trades, and both are easy to miss.
  1. A brand-new bot starts disabled. TradeMint will not trade a bot name it has never seen before until you arm it, unless its own entry in the file says enabled: true, which arms it at the restart that loads it. Otherwise, arm it with the STATE switch in the Bots table, or send /enable over Telegram. (Set autoEnableNewBots: true if you would rather new bots go live at their next scheduled time.) See Managing bots.
  2. Saved changes load on the next restart. Use Settings → System → Restart after you save.

Worked examples

A put credit spread

Here's a complete, minimal bot: a single put credit spread that enters mid-morning, picks its short strike by target delta, builds a 50-point-wide spread, takes a profit target, and stops out if the short moves against you.

config.yaml
strategy: MY-0DTE bots: - name: "P 1000" # the name you'll see on the dashboard and in alerts type: PutCreditSpread # put credit spread: sells a put, buys a further-out put openTime: "10:00" # enters at 10:00 ET targetDelta: 0.20 # picks the short put nearest ~20 delta spread: width: 50 # buys the long wing 50 points below the short profitTarget: 0.5 # closes once it has captured 50% of max profit stop: deltaOffset: 0.25 # delta stop: exits if the spread's delta drifts 0.25 past where it opened

Reading it line by line:

That's a fully working bot. Everything else (filters, sizing rules, extra stops, iron condors, partial profit-taking) is optional, and you add it only when you want it.

An iron condor

An iron condor pairs a put credit spread with a call credit spread as a single four-leg position. This one uses one target delta for both short strikes, a 50-point wing on each side, and independent per-side stops, so one side can stop out while the other keeps running.

config.yaml
strategy: MY-0DTE bots: - name: "IC 1030" type: IronCondor openTime: "10:30" # enters at 10:30 ET targetDelta: 0.40 # ~40 delta short on each side spread: width: 50 # a 50-point wing on each side condorStops: independent # each side gets its own delta-stop monitor stop: put: {deltaOffset: -0.30, hardDeltaOffset: -0.35} call: {deltaOffset: 0.30, hardDeltaOffset: 0.35} profitTarget: 0.5

The put and call blocks each carry their own signed offsets: the put side is negative, the call side positive. With condorStops: independent, one side stopping buys back only its two legs, while the other side keeps running and settles on its own.

A template and the bots that use it

If several bots share the same shape, define it once as a template and have each bot point to it with template:. The template carries the shared parts (type, spread, profit target, stops); each bot carries only what makes it different (its name, entry time, and target delta). The two are merged, with the bot's own keys winning.

Templates are a list, and each one carries its own name:. (A mapping keyed by template name does not load.)

config.yaml
strategy: MY-0DTE templates: - name: pcs # a reusable put credit spread shape type: PutCreditSpread spread: width: 50 profitTarget: 0.5 stop: deltaOffset: 0.25 bots: - name: "P 1000" template: pcs # inherits the shape above openTime: "10:00" targetDelta: 0.20 - name: "P 1400" template: pcs # same shape, later entry, further out openTime: "14:00" targetDelta: 0.15

Both bots share the pcs shape, so they run the same spread structure, profit target, and stop. They differ only in their name, entry time, and target delta.

Where to go next

New here? The first trading session puts this page in order with everything else, from signing up to watching your first bot fire.

This page is just the shape of things. When you're ready to fine-tune a bot (every strike rule, every stop, every global setting and exactly what it does), head to the config.yaml reference page. It documents the complete list.

Last revised 2026-11-18© 2026 TradeMint · Cookie preferences