MonoBot API
All MonoBot endpoints are called via HTTP POST and receive two parameters: connKey and scope.
This documentation was generated using Postman, find the exported collection here.
Parameters
1. connKey
- Required. It identifies the user and the strategy. The connection key is a combination of the user's email and the strategy's key, joined by a comma. You can copy the
connKey
by clicking on the key icon next to the strategy name in My strategies page.
2. scope
- Optional. It defines the scope of the action taking place. The possible values for
scope
are: - Strategy: (Default value) The action applies only to this strategy.
- Linked: The action applies only to the linked strategies of this strategy.
- Subscribed: The action applies to the subscribed users.
- Global: All positions in the same broker account, even in different pairs. The Global scope is used only for position-related actions like closing, locking, and unlocking positions.
JavaScript Example
Here is a JavaScript example showing how to call a MonoBot action:
async function pauseStrg() {
var url = 'https://monobot.pro/pauseStrg.act';
var data = {
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
};
var reqOpts = {};
reqOpts.method = 'POST';
reqOpts.body = JSON.stringify(data);
reqOpts.mode = "cors";
reqOpts.cache = "no-cache";
reqOpts.redirect = "follow";
reqOpts.referrerPolicy = "no-referrer";
const response = await fetch(url, reqOpts);
var result = await response.text();
console.log('result', result);
window.alert('result:\n' + result);
}
Note: check your adblocker in case the request is being blocked by the browser.
MonoBot can call an external system to ask for a prediction. It will do a POST request to the strategy’s listener (a web server you set up) and then it will place the order according to the response (buy order for a BUY response, sell order for a SELL response) or do nothing in case the response is not BUY or SELL.
To configure your server's URL, go to the configuration of your strategy (gear icon), then Tools and then click the wrench icon of Listener.
MetaTrader's market date and time.
MonoBot strategy's name.
true: when doing regression testing in MetaTrader's simulator. false: when doing live trading.
POST http://localhost:5000/predict
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/pauseStrg.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unpauseStrg.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/pauseBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unpauseBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/pauseSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unpauseSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/workNow.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/workNormal.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/actOnIntention.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/stopStrg.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/continueStrg.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/placeBuy.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/placeSell.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/closeAllLosing.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/closeAllWinning.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/closeLosingBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/closeWinningBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/closeLosingSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/closeWinningSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/lockAllLosing.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/lockAllWinning.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/lockLosingBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/lockWinningBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/lockWinningSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/lockLosingSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unlockAllLosing.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unlockAllWinning.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unlockLosingBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unlockWinningBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unlockLosingSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/unlockWinningSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/startOCAllLosing.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/startOCAllWinning.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/startOCLosingBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/startOCWinningBuys.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/startOCLosingSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/startOCWinningSells.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy',
moneyClose1: 300,
moneyClose2: 150
}
POST https://monobot.pro/startMoneyClose.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy',
moneyClose1: 300,
moneyClose2: 150
}
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}
POST https://monobot.pro/stopMoneyClose.act
{
connKey: 'your@email.com,0123456789ABCDEFGHIJKLMNOPQRSTUV',
scope: 'Strategy'
}