Strategies

Build your own in the dreamBot Builder starts from one of the bot kit's strategies. Each one is a folder in the open-source dreamDEX bot kit, and every setting in the builder is one of that strategy's own config lines, so the .env you download drops straight into the kit.

The defaults are deliberately small. Raise sizes only once a bot has behaved the way you expect on testnet.

Spot

Bots for the trading pairs on the dreamDEX order book: SOMI, WETH and WBTC against USDso on both networks, and USDC.e against USDso on mainnet only.

StrategyWhat it doesMain settings
Starter (best first pick)The simplest bot: one buy and one sell around the price, a base you can grow into your own strategyMarket, spread, order size
Market MakerRests buy and sell quotes to earn the spread, and leans them to keep its inventory near its targetMarket, half-spread, order size, inventory skew, when to re-quote
GridA ladder of orders that profits from the price bouncing inside a rangeMarket, grid step, lot size, max inventory, stop after a session loss
MomentumFollows the trend: buys strength, sells weakness, with a take-profit and a stop-lossMarket, position size, entry momentum, take-profit, stop-loss
Mean ReversionTrades the price snapping back to its average, using RSI and Bollinger BandsMarket, position size, RSI oversold level, take-profit, stop-loss
TWAPAn execution algorithm, not a trader: splits one large buy or sell into slices over time to reduce market impactMarket, side, total to trade, number of slices, seconds between slices

Event Contracts

Bots for the binary Up/Down markets on BTC and ETH. A price is a probability, and each market expires on a schedule. Leave Underlying on Any to trade whatever the venue is running. See Event Contracts for how the markets work.

StrategyWhat it doesMain settings
EC StarterCrosses the spread on a live window. The simplest one to readUnderlying, contracts per trade, max net position
EC Market MakerRests a bid and an ask around a fair probabilityUnderlying, half-spread, contracts per side, max net position
EC Passive BidOne resting bid at your price, so it never pays the spreadUnderlying, side, most you will pay, contracts per order, when to stop
EC LadderA grid of resting orders on each side of the mid, flattened before expiryUnderlying, rungs per side, gap between rungs, contracts per rung, max net position
EC SettlementNot a trader: collects the winnings from markets that have already settledSweep every settled market and stop, or watch one market to expiry; how many markets to check

Perps

Offered on the testnet app only, because perps trade on the testnet. A Perps bot keeps its own key and trades one of your app wallets through Link a Bot: it can place, cancel and reduce orders for that wallet, and can never withdraw. See Perps on Testnet for margin, funding and orders.

Every Perps strategy has a DreamDEX account wallet address setting, filled in with the wallet you are on. That is the wallet the bot trades. Leave it blank and the bot trades its own key's perps account instead.

StrategyWhat it doesMain settings
Perp Starter (best first pick)Opens one leveraged position and closes it at a take-profit or a stop-lossMarket, side, position size, leverage, take-profit, stop-loss, what to do with the position when you stop the bot
Perp Market MakerRests a bid and an ask around the mark price, leaning them back towards flatMarket, half-spread, quote size, max position, inventory skew, when to re-quote
Funding CarryHolds whichever side funding pays, and steps aside when it stops payingMarket, funding rate to enter above and exit below, position size, max position
Perp Risk GuardNot a trader: reduces a position before liquidation reaches it, and closes it if it gets closer stillMarket, when to start reducing, how much to reduce, when to close everything

A Perps bot's take-profit and stop-loss are watched by the bot itself, so they only act while it is running. To keep the position closed when you stop the bot, set When you stop the bot to Close the position, or set TP/SL on the position in the app. See Link a Bot.

DreamFly

Deploy DreamFly offers three runs instead of a strategy list, one per kind of market. See DreamFly.

Grow it into your own

Each strategy's code lives in strategies/<name> in the bot kit, for example strategies/starter. Change the code, then run it from the kit's folder:

bash
npm run dev -w starter

The kit also has strategies the builder doesn't offer yet, and its own guides. Start from its README.