Skip to main content

Trading settings

The trading settings page lets you explore trading pairs across every connected exchange, and manage settings for new and running pairs. You can preview the market on charts along with key stats.

Setting up a new trading pair with a strategy to run, can be done in as little as 5 clicks. The settings page allows you to save an unlimited number of strategy presets, for quick reuse.

Search new pairs to trade

Select pairs from a searchable list, along with key stats for each market.

Preview charts

You can check preview charts for any pair you're about to trade with Gunbot.

Strategy configuration

Configuring trading strategies is as easy as it gets. The overview on the right shows key stats for the configured strategy.

Custom editor templates

You can completely customize the strategy editor. Example shows the custom template for the Quanta G-type custom strategy.

How to create editor templates

With custom editor templates you can build the perfect editor for your style of configuring Gunbot.

This can be used as a way to easily configure custom strategies, but you can also use it for any other buy/sell method - for example you could make an editor that hardcodes all the settings you never touch and just show the few settings you regularly use.

Templates are saved in a file in the gunbot root folder, called customStratEditor.json.

Config format for editor templates

{
"Your strategy name": {
"info": {
"description": "Short descriptive text about this strategy",
"docsUrl": "https://link.to.docs.com/",
"market": "futures",
"exchangeBlacklist": [
"bybit",
"okex5"
],
"hardcode": {
"GAIN": "4000",
"STRAT_FILENAME": "yours.js",
"SOMETHING_ELSE": false
},
"buyMethod": "custom",
"sellMethod": "custom"
},
"First editor category": {
"description": "Short category description",
"parameters": {
"SETTING_10": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_11": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_12": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_13": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
},
"Second editor category (you can have many more)": {
"description": "Short category description",
"parameters": {
"SETTING_20": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_21": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_22": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_23": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
}
},
"Another strategy name": {
"info": {
"description": "Short descriptive text about this strategy",
"docsUrl": "https://link.to.docs.com/",
"market": "futures",
"exchangeBlacklist": [
"bybit",
"okex5"
],
"hardcode": {
"GAIN": "4000",
"STRAT_FILENAME": "yours.js",
"SOMETHING_ELSE": false
},
"buyMethod": "custom",
"sellMethod": "custom"
},
"First editor category": {
"description": "Short category description",
"parameters": {
"SETTING_10": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_11": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_12": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_13": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
},
"Second editor category (you can have many more)": {
"description": "Short category description",
"parameters": {
"SETTING_20": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"SETTING_21": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"SETTING_22": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_23": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
}
}
}

Config format (commented)

{
"Your strategy name": {
"info": {
"description": "Short descriptive text about this strategy",
"docsUrl": "https://link.to.docs.com/",
"market": "futures", // set the market type the strategy is for ("spot", "futures", "delivery", etc)
"exchangeBlacklist": [
"bybit",
"okex5"
], // strategy will not show on these exchanges. optional, omit or leave empty if not needed
"hardcode": {
"GAIN": "4000",
"STRAT_FILENAME": "yours.js",
"SOMETHING_ELSE": false
}, // hardcoded parameters always get saved to strategy in config.js, settings here should not be user configurable. optional, omit if not needed
"buyMethod": "custom",
"sellMethod": "custom"
},
"First editor category": {
"description": "Short category description",
"parameters": {
"SETTING_10": { // parameter name in config
"label": "Some label", // readable name in frontend, can be the same as parameter name
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting", // can be omitted
"inputType": "string" // creates a text field input
},
"SETTING_11": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range", // creates a slider input
"step": 0.01, // step size precision for slider and input field
"rangeLowHigh": [
1,
5
], // slider input boundaries
"rangeInput": [
0.01,
500
] // input field boundaries
},
"SETTING_12": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean" // creates a toggle input
},
"SETTING_13": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select", // creates a dropdown selection input
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
], // array of options to show in dropdown
"tooltip": "tooltip text explaining the setting"
}
}
},
"Second editor category (you can have many more)": {
"description": "Short category description",
"parameters": {
"SETTING_20": {
"label": "Some label",
"defaultValue": "40",
"tooltip": "tooltip text explaining the setting",
"inputType": "string"
},
"separator": {}, //inserting a separater creates a new row
"SETTING_21": {
"label": "Another label",
"defaultValue": "1",
"tooltip": "tooltip text explaining the setting",
"inputType": "range",
"step": 0.01,
"rangeLowHigh": [
1,
5
],
"rangeInput": [
0.01,
500
]
},
"separator1": {}, // separator names in the same category need to be unique, and always start with 'separator'
"SETTING_22": {
"label": "Again a label",
"defaultValue": false,
"tooltip": "tooltip text explaining the setting",
"inputType": "boolean"
},
"SETTING_23": {
"label": "Options label",
"defaultValue": "MEDIUM",
"inputType": "select",
"options": [
"NONE",
"SHORT",
"MEDIUM",
"LONG"
],
"tooltip": "tooltip text explaining the setting"
}
}
}
}
}