api

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2025 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ListWorkflowName is the name of the workflow to list SMA points.
	ListWorkflowName = "ListWorkflow"
)
View Source
const (
	// ServiceInfoWorkflowName is the name of the workflow to get the service info.
	ServiceInfoWorkflowName = "ServiceInfoWorkflow"
)
View Source
const (
	// WorkerTaskQueueName is the name of the task queue for the cryptellation worker.
	WorkerTaskQueueName = "CryptellationSmaTaskQueue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ListWorkflowParams

type ListWorkflowParams struct {
	Exchange     string
	Pair         string
	Period       period.Symbol
	Start        time.Time
	End          time.Time
	PeriodNumber int
	PriceType    candlestick.PriceType
}

ListWorkflowParams is the parameters of the List workflow.

type ListWorkflowResults

type ListWorkflowResults struct {
	Data []SMADataPoint
}

ListWorkflowResults is the result of the List workflow.

type SMADataPoint added in v1.0.5

type SMADataPoint struct {
	Time  time.Time
	Value float64
}

SMADataPoint represents a single SMA data point with its time and value.

type ServiceInfoParams

type ServiceInfoParams struct{}

ServiceInfoParams contains the parameters of the service info workflow.

type ServiceInfoResults

type ServiceInfoResults struct {
	Version string
}

ServiceInfoResults contains the result of the service info workflow.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL