Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidMode is returned when the mode is invalid. ErrInvalidMode = errors.New("invalid mode") )
Functions ¶
Types ¶
type CallbackWorkflow ¶ added in v1.3.0
CallbackWorkflow is the parameters of a callback workflow.
type Callbacks ¶ added in v1.3.0
type Callbacks struct {
OnInitCallback CallbackWorkflow
OnNewPricesCallback CallbackWorkflow
OnExitCallback CallbackWorkflow
}
Callbacks is the struct representing callbacks for ans automation through cryptellation API.
type Mode ¶
type Mode string
Mode is the mode in which a run is executed.
type OnExitCallbackWorkflowParams ¶ added in v1.3.0
type OnExitCallbackWorkflowParams struct {
Run Run
}
OnExitCallbackWorkflowParams is the parameters of the OnExitCallbackWorkflow callback workflow.
type OnInitCallbackWorkflowParams ¶ added in v1.3.0
type OnInitCallbackWorkflowParams struct {
Run Run
}
OnInitCallbackWorkflowParams is the parameters of the OnInitCallbackWorkflow callback workflow.
type OnNewPricesCallbackWorkflowParams ¶ added in v1.3.0
OnNewPricesCallbackWorkflowParams is the parameters of the OnNewPricesCallbackWorkflow callback workflow.
type Run ¶ added in v1.4.2
type Run struct {
// ID is the ID of the run that corresponds to a backtest, a forwardtest or a live run.
ID uuid.UUID
// Mode is the mode of the run (backtests, forwardtest or live run).
Mode Mode
// Now is the time of the run.
// It is used to simulate the time of the run for backtests.
// On forwardtests and live runs, it is the current time.
Now time.Time
// ParentTaskQueue is the task queue of the parent workflow.
// It's the one that called the callback.
ParentTaskQueue string
}
Run is the context of a run that contains several information about the run.
Click to show internal directories.
Click to hide internal directories.