Closed bludnic closed 3 months ago
Proposed Context
type TBotContext<T extends IBotConfiguration> = {
params: P; // strategy params
config: T; // bot config
store: S; // persistent state
command: "start" | "stop" | "process";
onStart: boolean;
onStop: boolean;
onProcess: boolean;
}
See PR #55
Current context:
ctx.store
ctx.config
intoctx.exchanges
andctx.params
(botParams)Exchanges config sample: