allowing custom rpc messages to be sent

This commit is contained in:
Emilio Basualdo
2022-08-11 13:46:41 -03:00
parent dd4e44931e
commit 803c94f735
5 changed files with 20 additions and 1 deletions

View File

@@ -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.