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.
| Strategy | What it does | Main settings |
|---|---|---|
| Starter (best first pick) | The simplest bot: one buy and one sell around the price, a base you can grow into your own strategy | Market, spread, order size |
| Market Maker | Rests buy and sell quotes to earn the spread, and leans them to keep its inventory near its target | Market, half-spread, order size, inventory skew, when to re-quote |
| Grid | A ladder of orders that profits from the price bouncing inside a range | Market, grid step, lot size, max inventory, stop after a session loss |
| Momentum | Follows the trend: buys strength, sells weakness, with a take-profit and a stop-loss | Market, position size, entry momentum, take-profit, stop-loss |
| Mean Reversion | Trades the price snapping back to its average, using RSI and Bollinger Bands | Market, position size, RSI oversold level, take-profit, stop-loss |
| TWAP | An execution algorithm, not a trader: splits one large buy or sell into slices over time to reduce market impact | Market, 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.
| Strategy | What it does | Main settings |
|---|---|---|
| EC Starter | Crosses the spread on a live window. The simplest one to read | Underlying, contracts per trade, max net position |
| EC Market Maker | Rests a bid and an ask around a fair probability | Underlying, half-spread, contracts per side, max net position |
| EC Passive Bid | One resting bid at your price, so it never pays the spread | Underlying, side, most you will pay, contracts per order, when to stop |
| EC Ladder | A grid of resting orders on each side of the mid, flattened before expiry | Underlying, rungs per side, gap between rungs, contracts per rung, max net position |
| EC Settlement | Not a trader: collects the winnings from markets that have already settled | Sweep 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.
| Strategy | What it does | Main settings |
|---|---|---|
| Perp Starter (best first pick) | Opens one leveraged position and closes it at a take-profit or a stop-loss | Market, side, position size, leverage, take-profit, stop-loss, what to do with the position when you stop the bot |
| Perp Market Maker | Rests a bid and an ask around the mark price, leaning them back towards flat | Market, half-spread, quote size, max position, inventory skew, when to re-quote |
| Funding Carry | Holds whichever side funding pays, and steps aside when it stops paying | Market, funding rate to enter above and exit below, position size, max position |
| Perp Risk Guard | Not a trader: reduces a position before liquidation reaches it, and closes it if it gets closer still | Market, 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:
npm run dev -w starter
The kit also has strategies the builder doesn't offer yet, and its own guides. Start from its README.