allowing custom rpc messages to be sent
This commit is contained in:
@@ -6,6 +6,7 @@ import numpy as np # noqa
|
||||
import pandas as pd # noqa
|
||||
from pandas import DataFrame
|
||||
|
||||
from freqtrade.enums import RPCMessageType
|
||||
from freqtrade.strategy import (BooleanParameter, CategoricalParameter, DecimalParameter,
|
||||
IStrategy, IntParameter)
|
||||
|
||||
@@ -108,6 +109,12 @@ class SampleStrategy(IStrategy):
|
||||
}
|
||||
}
|
||||
|
||||
def bot_start(self, **kwargs) -> None:
|
||||
self.send_msg({
|
||||
'type': RPCMessageType.CUSTOM_MSG,
|
||||
'msg': "This is a custom message sent to all RPCs"
|
||||
})
|
||||
|
||||
def informative_pairs(self):
|
||||
"""
|
||||
Define additional, informative pair/interval combinations to be cached from the exchange.
|
||||
|
||||
Reference in New Issue
Block a user