Bot Import Format Reference
Last updated July 19, 2026
The complete Bot Import file format: define multiple trading bots and their configurations in a single text file, with templates for shared settings. For the import workflow itself, see Clone, Share, and Import Bots.
File structure
The import file is structured in sections. Use templates to define common parameters that can be reused across multiple bots:
[templates]
template_name=my_template
param1=value1
param2=value2
...
[[trade_params]]
bot_name=My Bot
type=ShortCall
symbol=AAPL
...
[[trade_params]]
.......
Lines that begin with # or // are ignored.
Percentages should be entered as decimals (e.g., 0.5 for 50%).
Bot types
The import utility supports the following bot types:
Single option strategies
ShortCall: short call optionLongCall: long call optionShortPut: short put optionLongPut: long put option
Spread strategies
PutCreditSpread: put credit spreadCallCreditSpread: call credit spreadCallDebitSpread: call debit spreadPutDebitSpread: put debit spread
Multi-leg strategies
ShortStrangle: short strangleLongStrangle: long strangleShortIronCondor: short iron condorLongIronCondor: long iron condor
Required parameters
Basic parameters
name: bot name (can use variables like {symbol} in the name)type: bot type (see above)symbol: trading symboltemplate: template name to use (optional)accountNum: account number to use for this bot (optional, can be set in template)stratCode: Strategy ID to assign the bot to (optional, view available Strategy IDs on the Bot Import page)entry_time: entry time in HHMM or HHMMSS format (e.g., "0933" or "093310")entry_time_end: end of entry window in HHMM or HHMMSS format (e.g., "0935" or "093510")entry_weekday: trading days (1-5, where 1=Monday, 5=Friday)
Position sizing
quantity_type: one of:bpuorbpu-percent: percentage of account balance, entered as a decimal (e.g., 0.5 for 50%)leverage: leverage-based sizingfixed: fixed quantity
quantity_target: target value based on quantity_type
Strike target type
entry_type: one of:delta: delta-based entryprice: price-based entryminimum_premium: minimum premium-based entrypercent: percentage-ITM or OTM based entry, entered as a decimal (e.g., 0.5 for 50%); positive is OTM, negative is ITMpoints: points-ITM or OTM based entry; positive is OTM, negative is ITM
entry_target: target value based on entry_type
Spread parameters (for spread strategies)
spread_type: one of:delta: delta-targeted spread legpercent: percentage-ITM or OTM based spread leg, entered as a decimal (e.g., 0.5 for 50%); positive is OTM, negative is ITMprice: price-targeted spread legpoints: points width from main strike of spread
spread_target: target value based on spread_typespread_max_width: maximum width for price-based spreads
DTE parameters
dte_min: minimum days to expirationdte_max: maximum days to expiration
Entry window configuration
entry_window_length: entry window duration in minutes (can include fractional minutes for seconds precision, e.g., 0.5 for 30 seconds)
Optional parameters
Stop loss (algo stops only)
stoploss_type: one of:priceOffset: price offset stoppercent: percentage-based stop, entered as a decimal (e.g., 0.5 for 50%)delta: delta-based stopnone: no stop loss
stoploss_target: target value based on stoploss_typestop-grouping: one of:single: Each Legvertical: Verticalsshorts-one: Each Shortshorts-shorts: All Shorts on Shortshorts-all: Entire Trade on Shortlongs-all: Entire Trade on Long
Auto conflict resolution
opt#-autoConflict: set to "1" to enable auto conflict resolution for the leg number # (replace # with the leg number)autoConflict-to: set to the maximum points to adjust towards the money to resolve a conflictautoConflict-from: set to the maximum points to adjust away from the money to resolve a conflict
Profit target
profittarget_type: one of:percent: percentage-based target, entered as a decimal (e.g., 0.5 for 50%)price: price-based target
profit_target: target value based on profittarget_type
Price filters
minimum_price(aliasminPrice): minimum price for the entire trade that the bot will attempt to entermaximum_price(aliasmaxPrice): maximum price for the entire trade that the bot will attempt to enter
Timed exit
forceclose_time: force close time (HHMM format)forceclose_day: days before expiration to force close
Skip special days
entry_filter_special_days: binary string of special days to trade on (1=trade, 0=skip). Digit order is:- 0=All Other Days
- 1=FOMC Day Before
- 2=FOMC Day Of
- 3=FOMC Day After
- 4=CPI Day Before
- 5=CPI Day Of
- 6=CPI Day After
- 7=End of Month
- 8=End of Quarter
- 9=OPEX Day Before
- 10=OPEX Day Of
- 11=OPEX Day After
110011111111
Sequential trades management
seq_max_trades: maximum number of tradesseq_max_stops: maximum number of stops per dayseq_reentry_delay: re-entry delay in minutes (supports fractional minutes for seconds precision, e.g., 0.5 for 30 seconds)
User endpoint filter
user_endpoint_filter: custom endpoint filter URL for trade entry conditions
Example
Here is an example of a complete bot import file:
[templates]
template_name=default_template
entry_window_length=30
accountNum=######## <-- replace with the account number you want to use for this bot
[[trade_params]]
name={symbol} Short Put
type=ShortPut
symbol=AAPL
template=default_template
stratCode=STRAT123
entry_time=0930
entry_weekday=12345
quantity_type=bpu
quantity_target=0.1
entry_type=delta
entry_target=-0.3
dte_min=30
dte_max=45
stoploss_type=percent
stoploss_target=0.5
profittarget_type=percent
profit_target=0.3
minimum_price=10
maximum_price=20
entry_filter_special_days=110011111111
[[trade_params]]
.......
Was this helpful?
Thanks for the feedback!
Thanks for letting us know. Need a hand? Contact support.