bot_id docs and in startup message
This commit is contained in:
parent
6fe00b4c2b
commit
a869eaba6b
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"bot_id": 0,
|
||||||
"max_open_trades": 3,
|
"max_open_trades": 3,
|
||||||
"stake_currency": "BTC",
|
"stake_currency": "BTC",
|
||||||
"stake_amount": 0.05,
|
"stake_amount": 0.05,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"bot_id": 0,
|
||||||
"max_open_trades": 3,
|
"max_open_trades": 3,
|
||||||
"stake_currency": "BTC",
|
"stake_currency": "BTC",
|
||||||
"stake_amount": 0.05,
|
"stake_amount": 0.05,
|
||||||
|
@ -17,6 +17,7 @@ The table below will list all configuration parameters.
|
|||||||
|
|
||||||
| Command | Default | Mandatory | Description |
|
| Command | Default | Mandatory | Description |
|
||||||
|----------|---------|----------|-------------|
|
|----------|---------|----------|-------------|
|
||||||
|
| `bot_id` | 0 | No | Allows multiple bot connect to 1 database server. This value should be unique in each bot instance.
|
||||||
| `max_open_trades` | 3 | Yes | Number of trades open your bot will have.
|
| `max_open_trades` | 3 | Yes | Number of trades open your bot will have.
|
||||||
| `stake_currency` | BTC | Yes | Crypto-currency used for trading.
|
| `stake_currency` | BTC | Yes | Crypto-currency used for trading.
|
||||||
| `stake_amount` | 0.05 | Yes | Amount of crypto-currency your bot will use for each trade. Per default, the bot will use (0.05 BTC x 3) = 0.15 BTC in total will be always engaged. Set it to 'unlimited' to allow the bot to use all avaliable balance.
|
| `stake_amount` | 0.05 | Yes | Amount of crypto-currency your bot will use for each trade. Per default, the bot will use (0.05 BTC x 3) = 0.15 BTC in total will be always engaged. Set it to 'unlimited' to allow the bot to use all avaliable balance.
|
||||||
@ -55,6 +56,10 @@ The table below will list all configuration parameters.
|
|||||||
|
|
||||||
The definition of each config parameters is in [misc.py](https://github.com/freqtrade/freqtrade/blob/develop/freqtrade/misc.py#L205).
|
The definition of each config parameters is in [misc.py](https://github.com/freqtrade/freqtrade/blob/develop/freqtrade/misc.py#L205).
|
||||||
|
|
||||||
|
### Understand bot_id
|
||||||
|
|
||||||
|
`bot_id` is a value assigned to each instance of the bot. Use only UNIQUE `bot_id` value per bot instance when connected to a single database server such as Postgre, Mysql, etc.
|
||||||
|
|
||||||
### Understand stake_amount
|
### Understand stake_amount
|
||||||
|
|
||||||
`stake_amount` is an amount of crypto-currency your bot will use for each trade.
|
`stake_amount` is an amount of crypto-currency your bot will use for each trade.
|
||||||
|
@ -118,6 +118,7 @@ class FreqtradeBot(object):
|
|||||||
'type': RPCMessageType.WARNING_NOTIFICATION,
|
'type': RPCMessageType.WARNING_NOTIFICATION,
|
||||||
'status': 'Dry run is enabled. All trades are simulated.'
|
'status': 'Dry run is enabled. All trades are simulated.'
|
||||||
})
|
})
|
||||||
|
bot_id = self.config.get('bot_id',0)
|
||||||
stake_currency = self.config['stake_currency']
|
stake_currency = self.config['stake_currency']
|
||||||
stake_amount = self.config['stake_amount']
|
stake_amount = self.config['stake_amount']
|
||||||
minimal_roi = self.config['minimal_roi']
|
minimal_roi = self.config['minimal_roi']
|
||||||
@ -127,7 +128,8 @@ class FreqtradeBot(object):
|
|||||||
strategy_name = self.config.get('strategy', '')
|
strategy_name = self.config.get('strategy', '')
|
||||||
self.rpc.send_msg({
|
self.rpc.send_msg({
|
||||||
'type': RPCMessageType.CUSTOM_NOTIFICATION,
|
'type': RPCMessageType.CUSTOM_NOTIFICATION,
|
||||||
'status': f'*Exchange:* `{exchange_name}`\n'
|
'status': f'*Bot ID:* `{bot_id}`\n'
|
||||||
|
f'*Exchange:* `{exchange_name}`\n'
|
||||||
f'*Stake per trade:* `{stake_amount} {stake_currency}`\n'
|
f'*Stake per trade:* `{stake_amount} {stake_currency}`\n'
|
||||||
f'*Minimum ROI:* `{minimal_roi}`\n'
|
f'*Minimum ROI:* `{minimal_roi}`\n'
|
||||||
f'*Ticker Interval:* `{ticker_interval}`\n'
|
f'*Ticker Interval:* `{ticker_interval}`\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user