Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddChannel ¶
type AddChannel struct {
TelegramID int64 `json:"telegramId" validate:"required"`
}
type AddStrategy ¶
type AddStrategy struct { Symbol string `json:"symbol" validate:"required"` AllowCounter bool `json:"allowCounter"` Leverage uint `json:"leverage,omitempty"` TargetStrategy *TargetStrategy `json:"targetStrategy,omitempty"` ZoneStrategy *ZoneStrategy `json:"zoneStrategy,omitempty"` }
type GetUserWithID ¶
type Strategy ¶
type Strategy struct { ID uint `json:"-"` AllowCounter bool `json:"allowCounter"` Symbol string `json:"symbol"` Leverage uint `json:"leverage"` TargetStrategy *TargetStrategy `json:"targetStrategy,omitempty"` ZoneStrategy *ZoneStrategy `json:"zoneStrategy,omitempty"` ChannelID uint `json:"-"` }
type TVSignal ¶
type TVSignal struct { Symbol string `json:"ticker" validate:"required"` Price float64 `json:"price" validate:"required"` ChannelID int64 `json:"tgChannel" validate:"required"` Direction string `json:"direction,omitempty"` Exchange string `json:"exchange"` User string `json:"user" validate:"required"` UUID string `json:"uuid" validate:"required"` }
type TargetStrategy ¶
type UpdateChannel ¶
type UpdateChannel struct {
Telegram int64 `json:"telegramId" validate:"required"`
}
type UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.