How to Setup MongoDB for Deriv Go Trader
A guide to setting up a free MongoDB database to store your trading history and bot configurations.
How to Setup MongoDB for Deriv Go Trader
Deriv Go Trader uses a database to store your trade history, performance analytics, and bot configurations locally or in the cloud. We recommend using MongoDB Atlas for a free, secure, and always-on cloud database.
Option A: MongoDB Atlas (Cloud - Recommended)
This is the easiest way to get started. You don't need to install anything on your computer.
1. Create an Account
Go to MongoDB.com and register for a free account.
![Placeholder: Image of MongoDB Atlas sign-up page]
2. Create a Cluster
- Once logged in, click "Build a Database".
- Select the "M0 Shared (Free)" tier.
- Choose a provider (AWS, Google Cloud, or Azure) close to your location.
- Click "Create".
![Placeholder: Image showing the Free Tier cluster selection screen]
3. Setup User Access
- You will be asked to create a database user.
- Enter a Username (e.g.,
trader) and a Password. - IMPORTANT: Write down this password! You will need it for the connection string.
- Click "Create User".
4. Network Access (Allow IP)
- Scroll down to "Where would you like to connect from?".
- Select "My Local Environment" (adds your current IP) or "Allow Access from Anywhere" (easier for dynamic IPs).
- Note: "Allow Access from Anywhere" means
0.0.0.0/0. While convenient, it's slightly less secure than whitelisting specific IPs.
- Note: "Allow Access from Anywhere" means
- Click "Add Entry" and then "Finish and Close".
![Placeholder: Image showing Network Access IP whitelist configuration]
5. Get Connection String
- Go back to your dashboard (Database deployment).
- Click "Connect".
- Select "Drivers".
- You will see a connection string like this:
mongodb+srv://<username>:<password>@cluster0.abcd.mongodb.net/?retryWrites=true&w=majority - Copy this string.
![Placeholder: Image showing the connection string modal]
6. Configure Deriv Go Trader
- Paste the connection string into the MongoDB URI field in the Deriv Go Trader setup.
- Replace
<password>with the actual password you created in Step 3.
Option B: Local MongoDB (Advanced)
If you prefer to keep everything offline, you can install MongoDB Community Edition on your machine.
- Download MongoDB Community Server from the official website.
- Install it following the instructions for your OS.
- Once running, your connection string is typically:
mongodb://localhost:27017/deriv-trader
![Placeholder: Image of MongoDB Compass or local terminal showing connection]
That's it! Your database is now ready to log your profitable trades.