strategy

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the strategy type in the database.
	Label = "strategy"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldGUID holds the string denoting the guid field in the database.
	FieldGUID = "guid"
	// FieldUserId holds the string denoting the userid field in the database.
	FieldUserId = "user_id"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldSymbol holds the string denoting the symbol field in the database.
	FieldSymbol = "symbol"
	// FieldMartinFactor holds the string denoting the martinfactor field in the database.
	FieldMartinFactor = "martin_factor"
	// FieldMaxGridLimit holds the string denoting the maxgridlimit field in the database.
	FieldMaxGridLimit = "max_grid_limit"
	// FieldTakeProfitRatio holds the string denoting the takeprofitratio field in the database.
	FieldTakeProfitRatio = "take_profit_ratio"
	// FieldUpperPriceBound holds the string denoting the upperpricebound field in the database.
	FieldUpperPriceBound = "upper_price_bound"
	// FieldLowerPriceBound holds the string denoting the lowerpricebound field in the database.
	FieldLowerPriceBound = "lower_price_bound"
	// FieldInitialOrderSize holds the string denoting the initialordersize field in the database.
	FieldInitialOrderSize = "initial_order_size"
	// FieldLastKlineVolume holds the string denoting the lastklinevolume field in the database.
	FieldLastKlineVolume = "last_kline_volume"
	// FieldFiveKlineVolume holds the string denoting the fiveklinevolume field in the database.
	FieldFiveKlineVolume = "five_kline_volume"
	// FieldFirstOrderId holds the string denoting the firstorderid field in the database.
	FieldFirstOrderId = "first_order_id"
	// FieldUpperBoundExit holds the string denoting the upperboundexit field in the database.
	FieldUpperBoundExit = "upper_bound_exit"
	// FieldStopLossExit holds the string denoting the stoplossexit field in the database.
	FieldStopLossExit = "stop_loss_exit"
	// FieldTakeProfitExit holds the string denoting the takeprofitexit field in the database.
	FieldTakeProfitExit = "take_profit_exit"
	// FieldGlobalTakeProfitRatio holds the string denoting the globaltakeprofitratio field in the database.
	FieldGlobalTakeProfitRatio = "global_take_profit_ratio"
	// FieldDynamicStopLoss holds the string denoting the dynamicstoploss field in the database.
	FieldDynamicStopLoss = "dynamic_stop_loss"
	// FieldDropOn holds the string denoting the dropon field in the database.
	FieldDropOn = "drop_on"
	// FieldCandlesToCheck holds the string denoting the candlestocheck field in the database.
	FieldCandlesToCheck = "candles_to_check"
	// FieldDropThreshold holds the string denoting the dropthreshold field in the database.
	FieldDropThreshold = "drop_threshold"
	// FieldEnableAutoBuy holds the string denoting the enableautobuy field in the database.
	FieldEnableAutoBuy = "enable_auto_buy"
	// FieldEnableAutoSell holds the string denoting the enableautosell field in the database.
	FieldEnableAutoSell = "enable_auto_sell"
	// FieldEnableAutoExit holds the string denoting the enableautoexit field in the database.
	FieldEnableAutoExit = "enable_auto_exit"
	// FieldEnablePushNotification holds the string denoting the enablepushnotification field in the database.
	FieldEnablePushNotification = "enable_push_notification"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldGridTrend holds the string denoting the gridtrend field in the database.
	FieldGridTrend = "grid_trend"
	// FieldLastLowerThresholdAlertTime holds the string denoting the lastlowerthresholdalerttime field in the database.
	FieldLastLowerThresholdAlertTime = "last_lower_threshold_alert_time"
	// FieldLastUpperThresholdAlertTime holds the string denoting the lastupperthresholdalerttime field in the database.
	FieldLastUpperThresholdAlertTime = "last_upper_threshold_alert_time"
	// Table holds the table name of the strategy in the database.
	Table = "strategies"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// GUIDValidator is a validator for the "guid" field. It is called by the builders before save.
	GUIDValidator func(string) error
	// TokenValidator is a validator for the "token" field. It is called by the builders before save.
	TokenValidator func(string) error
	// SymbolValidator is a validator for the "symbol" field. It is called by the builders before save.
	SymbolValidator func(string) error
	// MartinFactorValidator is a validator for the "martinFactor" field. It is called by the builders before save.
	MartinFactorValidator func(float64) error
	// MaxGridLimitValidator is a validator for the "maxGridLimit" field. It is called by the builders before save.
	MaxGridLimitValidator func(int) error
	// DefaultCandlesToCheck holds the default value on creation for the "candlesToCheck" field.
	DefaultCandlesToCheck int
)

Columns holds all SQL columns for strategy fields.

Functions

func And

func And(predicates ...predicate.Strategy) predicate.Strategy

And groups predicates with the AND operator between them.

func CandlesToCheck

func CandlesToCheck(v int) predicate.Strategy

CandlesToCheck applies equality check predicate on the "candlesToCheck" field. It's identical to CandlesToCheckEQ.

func CandlesToCheckEQ

func CandlesToCheckEQ(v int) predicate.Strategy

CandlesToCheckEQ applies the EQ predicate on the "candlesToCheck" field.

func CandlesToCheckGT

func CandlesToCheckGT(v int) predicate.Strategy

CandlesToCheckGT applies the GT predicate on the "candlesToCheck" field.

func CandlesToCheckGTE

func CandlesToCheckGTE(v int) predicate.Strategy

CandlesToCheckGTE applies the GTE predicate on the "candlesToCheck" field.

func CandlesToCheckIn

func CandlesToCheckIn(vs ...int) predicate.Strategy

CandlesToCheckIn applies the In predicate on the "candlesToCheck" field.

func CandlesToCheckIsNil

func CandlesToCheckIsNil() predicate.Strategy

CandlesToCheckIsNil applies the IsNil predicate on the "candlesToCheck" field.

func CandlesToCheckLT

func CandlesToCheckLT(v int) predicate.Strategy

CandlesToCheckLT applies the LT predicate on the "candlesToCheck" field.

func CandlesToCheckLTE

func CandlesToCheckLTE(v int) predicate.Strategy

CandlesToCheckLTE applies the LTE predicate on the "candlesToCheck" field.

func CandlesToCheckNEQ

func CandlesToCheckNEQ(v int) predicate.Strategy

CandlesToCheckNEQ applies the NEQ predicate on the "candlesToCheck" field.

func CandlesToCheckNotIn

func CandlesToCheckNotIn(vs ...int) predicate.Strategy

CandlesToCheckNotIn applies the NotIn predicate on the "candlesToCheck" field.

func CandlesToCheckNotNil

func CandlesToCheckNotNil() predicate.Strategy

CandlesToCheckNotNil applies the NotNil predicate on the "candlesToCheck" field.

func CreateTime

func CreateTime(v time.Time) predicate.Strategy

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Strategy

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Strategy

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Strategy

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Strategy

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Strategy

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Strategy

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Strategy

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Strategy

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func DropOn

func DropOn(v bool) predicate.Strategy

DropOn applies equality check predicate on the "dropOn" field. It's identical to DropOnEQ.

func DropOnEQ

func DropOnEQ(v bool) predicate.Strategy

DropOnEQ applies the EQ predicate on the "dropOn" field.

func DropOnIsNil

func DropOnIsNil() predicate.Strategy

DropOnIsNil applies the IsNil predicate on the "dropOn" field.

func DropOnNEQ

func DropOnNEQ(v bool) predicate.Strategy

DropOnNEQ applies the NEQ predicate on the "dropOn" field.

func DropOnNotNil

func DropOnNotNil() predicate.Strategy

DropOnNotNil applies the NotNil predicate on the "dropOn" field.

func DropThreshold

func DropThreshold(v decimal.Decimal) predicate.Strategy

DropThreshold applies equality check predicate on the "dropThreshold" field. It's identical to DropThresholdEQ.

func DropThresholdContains

func DropThresholdContains(v decimal.Decimal) predicate.Strategy

DropThresholdContains applies the Contains predicate on the "dropThreshold" field.

func DropThresholdContainsFold

func DropThresholdContainsFold(v decimal.Decimal) predicate.Strategy

DropThresholdContainsFold applies the ContainsFold predicate on the "dropThreshold" field.

func DropThresholdEQ

func DropThresholdEQ(v decimal.Decimal) predicate.Strategy

DropThresholdEQ applies the EQ predicate on the "dropThreshold" field.

func DropThresholdEqualFold

func DropThresholdEqualFold(v decimal.Decimal) predicate.Strategy

DropThresholdEqualFold applies the EqualFold predicate on the "dropThreshold" field.

func DropThresholdGT

func DropThresholdGT(v decimal.Decimal) predicate.Strategy

DropThresholdGT applies the GT predicate on the "dropThreshold" field.

func DropThresholdGTE

func DropThresholdGTE(v decimal.Decimal) predicate.Strategy

DropThresholdGTE applies the GTE predicate on the "dropThreshold" field.

func DropThresholdHasPrefix

func DropThresholdHasPrefix(v decimal.Decimal) predicate.Strategy

DropThresholdHasPrefix applies the HasPrefix predicate on the "dropThreshold" field.

func DropThresholdHasSuffix

func DropThresholdHasSuffix(v decimal.Decimal) predicate.Strategy

DropThresholdHasSuffix applies the HasSuffix predicate on the "dropThreshold" field.

func DropThresholdIn

func DropThresholdIn(vs ...decimal.Decimal) predicate.Strategy

DropThresholdIn applies the In predicate on the "dropThreshold" field.

func DropThresholdIsNil

func DropThresholdIsNil() predicate.Strategy

DropThresholdIsNil applies the IsNil predicate on the "dropThreshold" field.

func DropThresholdLT

func DropThresholdLT(v decimal.Decimal) predicate.Strategy

DropThresholdLT applies the LT predicate on the "dropThreshold" field.

func DropThresholdLTE

func DropThresholdLTE(v decimal.Decimal) predicate.Strategy

DropThresholdLTE applies the LTE predicate on the "dropThreshold" field.

func DropThresholdNEQ

func DropThresholdNEQ(v decimal.Decimal) predicate.Strategy

DropThresholdNEQ applies the NEQ predicate on the "dropThreshold" field.

func DropThresholdNotIn

func DropThresholdNotIn(vs ...decimal.Decimal) predicate.Strategy

DropThresholdNotIn applies the NotIn predicate on the "dropThreshold" field.

func DropThresholdNotNil

func DropThresholdNotNil() predicate.Strategy

DropThresholdNotNil applies the NotNil predicate on the "dropThreshold" field.

func DynamicStopLoss

func DynamicStopLoss(v bool) predicate.Strategy

DynamicStopLoss applies equality check predicate on the "dynamicStopLoss" field. It's identical to DynamicStopLossEQ.

func DynamicStopLossEQ

func DynamicStopLossEQ(v bool) predicate.Strategy

DynamicStopLossEQ applies the EQ predicate on the "dynamicStopLoss" field.

func DynamicStopLossIsNil

func DynamicStopLossIsNil() predicate.Strategy

DynamicStopLossIsNil applies the IsNil predicate on the "dynamicStopLoss" field.

func DynamicStopLossNEQ

func DynamicStopLossNEQ(v bool) predicate.Strategy

DynamicStopLossNEQ applies the NEQ predicate on the "dynamicStopLoss" field.

func DynamicStopLossNotNil

func DynamicStopLossNotNil() predicate.Strategy

DynamicStopLossNotNil applies the NotNil predicate on the "dynamicStopLoss" field.

func EnableAutoBuy

func EnableAutoBuy(v bool) predicate.Strategy

EnableAutoBuy applies equality check predicate on the "enableAutoBuy" field. It's identical to EnableAutoBuyEQ.

func EnableAutoBuyEQ

func EnableAutoBuyEQ(v bool) predicate.Strategy

EnableAutoBuyEQ applies the EQ predicate on the "enableAutoBuy" field.

func EnableAutoBuyNEQ

func EnableAutoBuyNEQ(v bool) predicate.Strategy

EnableAutoBuyNEQ applies the NEQ predicate on the "enableAutoBuy" field.

func EnableAutoExit

func EnableAutoExit(v bool) predicate.Strategy

EnableAutoExit applies equality check predicate on the "enableAutoExit" field. It's identical to EnableAutoExitEQ.

func EnableAutoExitEQ

func EnableAutoExitEQ(v bool) predicate.Strategy

EnableAutoExitEQ applies the EQ predicate on the "enableAutoExit" field.

func EnableAutoExitNEQ

func EnableAutoExitNEQ(v bool) predicate.Strategy

EnableAutoExitNEQ applies the NEQ predicate on the "enableAutoExit" field.

func EnableAutoSell

func EnableAutoSell(v bool) predicate.Strategy

EnableAutoSell applies equality check predicate on the "enableAutoSell" field. It's identical to EnableAutoSellEQ.

func EnableAutoSellEQ

func EnableAutoSellEQ(v bool) predicate.Strategy

EnableAutoSellEQ applies the EQ predicate on the "enableAutoSell" field.

func EnableAutoSellNEQ

func EnableAutoSellNEQ(v bool) predicate.Strategy

EnableAutoSellNEQ applies the NEQ predicate on the "enableAutoSell" field.

func EnablePushNotification

func EnablePushNotification(v bool) predicate.Strategy

EnablePushNotification applies equality check predicate on the "enablePushNotification" field. It's identical to EnablePushNotificationEQ.

func EnablePushNotificationEQ

func EnablePushNotificationEQ(v bool) predicate.Strategy

EnablePushNotificationEQ applies the EQ predicate on the "enablePushNotification" field.

func EnablePushNotificationNEQ

func EnablePushNotificationNEQ(v bool) predicate.Strategy

EnablePushNotificationNEQ applies the NEQ predicate on the "enablePushNotification" field.

func FirstOrderId

func FirstOrderId(v int) predicate.Strategy

FirstOrderId applies equality check predicate on the "firstOrderId" field. It's identical to FirstOrderIdEQ.

func FirstOrderIdEQ

func FirstOrderIdEQ(v int) predicate.Strategy

FirstOrderIdEQ applies the EQ predicate on the "firstOrderId" field.

func FirstOrderIdGT

func FirstOrderIdGT(v int) predicate.Strategy

FirstOrderIdGT applies the GT predicate on the "firstOrderId" field.

func FirstOrderIdGTE

func FirstOrderIdGTE(v int) predicate.Strategy

FirstOrderIdGTE applies the GTE predicate on the "firstOrderId" field.

func FirstOrderIdIn

func FirstOrderIdIn(vs ...int) predicate.Strategy

FirstOrderIdIn applies the In predicate on the "firstOrderId" field.

func FirstOrderIdIsNil

func FirstOrderIdIsNil() predicate.Strategy

FirstOrderIdIsNil applies the IsNil predicate on the "firstOrderId" field.

func FirstOrderIdLT

func FirstOrderIdLT(v int) predicate.Strategy

FirstOrderIdLT applies the LT predicate on the "firstOrderId" field.

func FirstOrderIdLTE

func FirstOrderIdLTE(v int) predicate.Strategy

FirstOrderIdLTE applies the LTE predicate on the "firstOrderId" field.

func FirstOrderIdNEQ

func FirstOrderIdNEQ(v int) predicate.Strategy

FirstOrderIdNEQ applies the NEQ predicate on the "firstOrderId" field.

func FirstOrderIdNotIn

func FirstOrderIdNotIn(vs ...int) predicate.Strategy

FirstOrderIdNotIn applies the NotIn predicate on the "firstOrderId" field.

func FirstOrderIdNotNil

func FirstOrderIdNotNil() predicate.Strategy

FirstOrderIdNotNil applies the NotNil predicate on the "firstOrderId" field.

func FiveKlineVolume

func FiveKlineVolume(v decimal.Decimal) predicate.Strategy

FiveKlineVolume applies equality check predicate on the "fiveKlineVolume" field. It's identical to FiveKlineVolumeEQ.

func FiveKlineVolumeContains

func FiveKlineVolumeContains(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeContains applies the Contains predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeContainsFold

func FiveKlineVolumeContainsFold(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeContainsFold applies the ContainsFold predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeEQ

func FiveKlineVolumeEQ(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeEQ applies the EQ predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeEqualFold

func FiveKlineVolumeEqualFold(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeEqualFold applies the EqualFold predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeGT

func FiveKlineVolumeGT(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeGT applies the GT predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeGTE

func FiveKlineVolumeGTE(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeGTE applies the GTE predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeHasPrefix

func FiveKlineVolumeHasPrefix(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeHasPrefix applies the HasPrefix predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeHasSuffix

func FiveKlineVolumeHasSuffix(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeHasSuffix applies the HasSuffix predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeIn

func FiveKlineVolumeIn(vs ...decimal.Decimal) predicate.Strategy

FiveKlineVolumeIn applies the In predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeIsNil

func FiveKlineVolumeIsNil() predicate.Strategy

FiveKlineVolumeIsNil applies the IsNil predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeLT

func FiveKlineVolumeLT(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeLT applies the LT predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeLTE

func FiveKlineVolumeLTE(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeLTE applies the LTE predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeNEQ

func FiveKlineVolumeNEQ(v decimal.Decimal) predicate.Strategy

FiveKlineVolumeNEQ applies the NEQ predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeNotIn

func FiveKlineVolumeNotIn(vs ...decimal.Decimal) predicate.Strategy

FiveKlineVolumeNotIn applies the NotIn predicate on the "fiveKlineVolume" field.

func FiveKlineVolumeNotNil

func FiveKlineVolumeNotNil() predicate.Strategy

FiveKlineVolumeNotNil applies the NotNil predicate on the "fiveKlineVolume" field.

func GUID

func GUID(v string) predicate.Strategy

GUID applies equality check predicate on the "guid" field. It's identical to GUIDEQ.

func GUIDContains

func GUIDContains(v string) predicate.Strategy

GUIDContains applies the Contains predicate on the "guid" field.

func GUIDContainsFold

func GUIDContainsFold(v string) predicate.Strategy

GUIDContainsFold applies the ContainsFold predicate on the "guid" field.

func GUIDEQ

func GUIDEQ(v string) predicate.Strategy

GUIDEQ applies the EQ predicate on the "guid" field.

func GUIDEqualFold

func GUIDEqualFold(v string) predicate.Strategy

GUIDEqualFold applies the EqualFold predicate on the "guid" field.

func GUIDGT

func GUIDGT(v string) predicate.Strategy

GUIDGT applies the GT predicate on the "guid" field.

func GUIDGTE

func GUIDGTE(v string) predicate.Strategy

GUIDGTE applies the GTE predicate on the "guid" field.

func GUIDHasPrefix

func GUIDHasPrefix(v string) predicate.Strategy

GUIDHasPrefix applies the HasPrefix predicate on the "guid" field.

func GUIDHasSuffix

func GUIDHasSuffix(v string) predicate.Strategy

GUIDHasSuffix applies the HasSuffix predicate on the "guid" field.

func GUIDIn

func GUIDIn(vs ...string) predicate.Strategy

GUIDIn applies the In predicate on the "guid" field.

func GUIDLT

func GUIDLT(v string) predicate.Strategy

GUIDLT applies the LT predicate on the "guid" field.

func GUIDLTE

func GUIDLTE(v string) predicate.Strategy

GUIDLTE applies the LTE predicate on the "guid" field.

func GUIDNEQ

func GUIDNEQ(v string) predicate.Strategy

GUIDNEQ applies the NEQ predicate on the "guid" field.

func GUIDNotIn

func GUIDNotIn(vs ...string) predicate.Strategy

GUIDNotIn applies the NotIn predicate on the "guid" field.

func GlobalTakeProfitRatio

func GlobalTakeProfitRatio(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatio applies equality check predicate on the "globalTakeProfitRatio" field. It's identical to GlobalTakeProfitRatioEQ.

func GlobalTakeProfitRatioContains

func GlobalTakeProfitRatioContains(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioContains applies the Contains predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioContainsFold

func GlobalTakeProfitRatioContainsFold(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioContainsFold applies the ContainsFold predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioEQ

func GlobalTakeProfitRatioEQ(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioEQ applies the EQ predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioEqualFold

func GlobalTakeProfitRatioEqualFold(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioEqualFold applies the EqualFold predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioGT

func GlobalTakeProfitRatioGT(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioGT applies the GT predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioGTE

func GlobalTakeProfitRatioGTE(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioGTE applies the GTE predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioHasPrefix

func GlobalTakeProfitRatioHasPrefix(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioHasPrefix applies the HasPrefix predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioHasSuffix

func GlobalTakeProfitRatioHasSuffix(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioHasSuffix applies the HasSuffix predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioIn

func GlobalTakeProfitRatioIn(vs ...decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioIn applies the In predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioIsNil

func GlobalTakeProfitRatioIsNil() predicate.Strategy

GlobalTakeProfitRatioIsNil applies the IsNil predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioLT

func GlobalTakeProfitRatioLT(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioLT applies the LT predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioLTE

func GlobalTakeProfitRatioLTE(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioLTE applies the LTE predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioNEQ

func GlobalTakeProfitRatioNEQ(v decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioNEQ applies the NEQ predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioNotIn

func GlobalTakeProfitRatioNotIn(vs ...decimal.Decimal) predicate.Strategy

GlobalTakeProfitRatioNotIn applies the NotIn predicate on the "globalTakeProfitRatio" field.

func GlobalTakeProfitRatioNotNil

func GlobalTakeProfitRatioNotNil() predicate.Strategy

GlobalTakeProfitRatioNotNil applies the NotNil predicate on the "globalTakeProfitRatio" field.

func GridTrend

func GridTrend(v string) predicate.Strategy

GridTrend applies equality check predicate on the "gridTrend" field. It's identical to GridTrendEQ.

func GridTrendContains

func GridTrendContains(v string) predicate.Strategy

GridTrendContains applies the Contains predicate on the "gridTrend" field.

func GridTrendContainsFold

func GridTrendContainsFold(v string) predicate.Strategy

GridTrendContainsFold applies the ContainsFold predicate on the "gridTrend" field.

func GridTrendEQ

func GridTrendEQ(v string) predicate.Strategy

GridTrendEQ applies the EQ predicate on the "gridTrend" field.

func GridTrendEqualFold

func GridTrendEqualFold(v string) predicate.Strategy

GridTrendEqualFold applies the EqualFold predicate on the "gridTrend" field.

func GridTrendGT

func GridTrendGT(v string) predicate.Strategy

GridTrendGT applies the GT predicate on the "gridTrend" field.

func GridTrendGTE

func GridTrendGTE(v string) predicate.Strategy

GridTrendGTE applies the GTE predicate on the "gridTrend" field.

func GridTrendHasPrefix

func GridTrendHasPrefix(v string) predicate.Strategy

GridTrendHasPrefix applies the HasPrefix predicate on the "gridTrend" field.

func GridTrendHasSuffix

func GridTrendHasSuffix(v string) predicate.Strategy

GridTrendHasSuffix applies the HasSuffix predicate on the "gridTrend" field.

func GridTrendIn

func GridTrendIn(vs ...string) predicate.Strategy

GridTrendIn applies the In predicate on the "gridTrend" field.

func GridTrendIsNil

func GridTrendIsNil() predicate.Strategy

GridTrendIsNil applies the IsNil predicate on the "gridTrend" field.

func GridTrendLT

func GridTrendLT(v string) predicate.Strategy

GridTrendLT applies the LT predicate on the "gridTrend" field.

func GridTrendLTE

func GridTrendLTE(v string) predicate.Strategy

GridTrendLTE applies the LTE predicate on the "gridTrend" field.

func GridTrendNEQ

func GridTrendNEQ(v string) predicate.Strategy

GridTrendNEQ applies the NEQ predicate on the "gridTrend" field.

func GridTrendNotIn

func GridTrendNotIn(vs ...string) predicate.Strategy

GridTrendNotIn applies the NotIn predicate on the "gridTrend" field.

func GridTrendNotNil

func GridTrendNotNil() predicate.Strategy

GridTrendNotNil applies the NotNil predicate on the "gridTrend" field.

func ID

func ID(id int) predicate.Strategy

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Strategy

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Strategy

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Strategy

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Strategy

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Strategy

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Strategy

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Strategy

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Strategy

IDNotIn applies the NotIn predicate on the ID field.

func InitialOrderSize

func InitialOrderSize(v decimal.Decimal) predicate.Strategy

InitialOrderSize applies equality check predicate on the "initialOrderSize" field. It's identical to InitialOrderSizeEQ.

func InitialOrderSizeContains

func InitialOrderSizeContains(v decimal.Decimal) predicate.Strategy

InitialOrderSizeContains applies the Contains predicate on the "initialOrderSize" field.

func InitialOrderSizeContainsFold

func InitialOrderSizeContainsFold(v decimal.Decimal) predicate.Strategy

InitialOrderSizeContainsFold applies the ContainsFold predicate on the "initialOrderSize" field.

func InitialOrderSizeEQ

func InitialOrderSizeEQ(v decimal.Decimal) predicate.Strategy

InitialOrderSizeEQ applies the EQ predicate on the "initialOrderSize" field.

func InitialOrderSizeEqualFold

func InitialOrderSizeEqualFold(v decimal.Decimal) predicate.Strategy

InitialOrderSizeEqualFold applies the EqualFold predicate on the "initialOrderSize" field.

func InitialOrderSizeGT

func InitialOrderSizeGT(v decimal.Decimal) predicate.Strategy

InitialOrderSizeGT applies the GT predicate on the "initialOrderSize" field.

func InitialOrderSizeGTE

func InitialOrderSizeGTE(v decimal.Decimal) predicate.Strategy

InitialOrderSizeGTE applies the GTE predicate on the "initialOrderSize" field.

func InitialOrderSizeHasPrefix

func InitialOrderSizeHasPrefix(v decimal.Decimal) predicate.Strategy

InitialOrderSizeHasPrefix applies the HasPrefix predicate on the "initialOrderSize" field.

func InitialOrderSizeHasSuffix

func InitialOrderSizeHasSuffix(v decimal.Decimal) predicate.Strategy

InitialOrderSizeHasSuffix applies the HasSuffix predicate on the "initialOrderSize" field.

func InitialOrderSizeIn

func InitialOrderSizeIn(vs ...decimal.Decimal) predicate.Strategy

InitialOrderSizeIn applies the In predicate on the "initialOrderSize" field.

func InitialOrderSizeLT

func InitialOrderSizeLT(v decimal.Decimal) predicate.Strategy

InitialOrderSizeLT applies the LT predicate on the "initialOrderSize" field.

func InitialOrderSizeLTE

func InitialOrderSizeLTE(v decimal.Decimal) predicate.Strategy

InitialOrderSizeLTE applies the LTE predicate on the "initialOrderSize" field.

func InitialOrderSizeNEQ

func InitialOrderSizeNEQ(v decimal.Decimal) predicate.Strategy

InitialOrderSizeNEQ applies the NEQ predicate on the "initialOrderSize" field.

func InitialOrderSizeNotIn

func InitialOrderSizeNotIn(vs ...decimal.Decimal) predicate.Strategy

InitialOrderSizeNotIn applies the NotIn predicate on the "initialOrderSize" field.

func LastKlineVolume

func LastKlineVolume(v decimal.Decimal) predicate.Strategy

LastKlineVolume applies equality check predicate on the "lastKlineVolume" field. It's identical to LastKlineVolumeEQ.

func LastKlineVolumeContains

func LastKlineVolumeContains(v decimal.Decimal) predicate.Strategy

LastKlineVolumeContains applies the Contains predicate on the "lastKlineVolume" field.

func LastKlineVolumeContainsFold

func LastKlineVolumeContainsFold(v decimal.Decimal) predicate.Strategy

LastKlineVolumeContainsFold applies the ContainsFold predicate on the "lastKlineVolume" field.

func LastKlineVolumeEQ

func LastKlineVolumeEQ(v decimal.Decimal) predicate.Strategy

LastKlineVolumeEQ applies the EQ predicate on the "lastKlineVolume" field.

func LastKlineVolumeEqualFold

func LastKlineVolumeEqualFold(v decimal.Decimal) predicate.Strategy

LastKlineVolumeEqualFold applies the EqualFold predicate on the "lastKlineVolume" field.

func LastKlineVolumeGT

func LastKlineVolumeGT(v decimal.Decimal) predicate.Strategy

LastKlineVolumeGT applies the GT predicate on the "lastKlineVolume" field.

func LastKlineVolumeGTE

func LastKlineVolumeGTE(v decimal.Decimal) predicate.Strategy

LastKlineVolumeGTE applies the GTE predicate on the "lastKlineVolume" field.

func LastKlineVolumeHasPrefix

func LastKlineVolumeHasPrefix(v decimal.Decimal) predicate.Strategy

LastKlineVolumeHasPrefix applies the HasPrefix predicate on the "lastKlineVolume" field.

func LastKlineVolumeHasSuffix

func LastKlineVolumeHasSuffix(v decimal.Decimal) predicate.Strategy

LastKlineVolumeHasSuffix applies the HasSuffix predicate on the "lastKlineVolume" field.

func LastKlineVolumeIn

func LastKlineVolumeIn(vs ...decimal.Decimal) predicate.Strategy

LastKlineVolumeIn applies the In predicate on the "lastKlineVolume" field.

func LastKlineVolumeIsNil

func LastKlineVolumeIsNil() predicate.Strategy

LastKlineVolumeIsNil applies the IsNil predicate on the "lastKlineVolume" field.

func LastKlineVolumeLT

func LastKlineVolumeLT(v decimal.Decimal) predicate.Strategy

LastKlineVolumeLT applies the LT predicate on the "lastKlineVolume" field.

func LastKlineVolumeLTE

func LastKlineVolumeLTE(v decimal.Decimal) predicate.Strategy

LastKlineVolumeLTE applies the LTE predicate on the "lastKlineVolume" field.

func LastKlineVolumeNEQ

func LastKlineVolumeNEQ(v decimal.Decimal) predicate.Strategy

LastKlineVolumeNEQ applies the NEQ predicate on the "lastKlineVolume" field.

func LastKlineVolumeNotIn

func LastKlineVolumeNotIn(vs ...decimal.Decimal) predicate.Strategy

LastKlineVolumeNotIn applies the NotIn predicate on the "lastKlineVolume" field.

func LastKlineVolumeNotNil

func LastKlineVolumeNotNil() predicate.Strategy

LastKlineVolumeNotNil applies the NotNil predicate on the "lastKlineVolume" field.

func LastLowerThresholdAlertTime

func LastLowerThresholdAlertTime(v time.Time) predicate.Strategy

LastLowerThresholdAlertTime applies equality check predicate on the "lastLowerThresholdAlertTime" field. It's identical to LastLowerThresholdAlertTimeEQ.

func LastLowerThresholdAlertTimeEQ

func LastLowerThresholdAlertTimeEQ(v time.Time) predicate.Strategy

LastLowerThresholdAlertTimeEQ applies the EQ predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeGT

func LastLowerThresholdAlertTimeGT(v time.Time) predicate.Strategy

LastLowerThresholdAlertTimeGT applies the GT predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeGTE

func LastLowerThresholdAlertTimeGTE(v time.Time) predicate.Strategy

LastLowerThresholdAlertTimeGTE applies the GTE predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeIn

func LastLowerThresholdAlertTimeIn(vs ...time.Time) predicate.Strategy

LastLowerThresholdAlertTimeIn applies the In predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeIsNil

func LastLowerThresholdAlertTimeIsNil() predicate.Strategy

LastLowerThresholdAlertTimeIsNil applies the IsNil predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeLT

func LastLowerThresholdAlertTimeLT(v time.Time) predicate.Strategy

LastLowerThresholdAlertTimeLT applies the LT predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeLTE

func LastLowerThresholdAlertTimeLTE(v time.Time) predicate.Strategy

LastLowerThresholdAlertTimeLTE applies the LTE predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeNEQ

func LastLowerThresholdAlertTimeNEQ(v time.Time) predicate.Strategy

LastLowerThresholdAlertTimeNEQ applies the NEQ predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeNotIn

func LastLowerThresholdAlertTimeNotIn(vs ...time.Time) predicate.Strategy

LastLowerThresholdAlertTimeNotIn applies the NotIn predicate on the "lastLowerThresholdAlertTime" field.

func LastLowerThresholdAlertTimeNotNil

func LastLowerThresholdAlertTimeNotNil() predicate.Strategy

LastLowerThresholdAlertTimeNotNil applies the NotNil predicate on the "lastLowerThresholdAlertTime" field.

func LastUpperThresholdAlertTime

func LastUpperThresholdAlertTime(v time.Time) predicate.Strategy

LastUpperThresholdAlertTime applies equality check predicate on the "lastUpperThresholdAlertTime" field. It's identical to LastUpperThresholdAlertTimeEQ.

func LastUpperThresholdAlertTimeEQ

func LastUpperThresholdAlertTimeEQ(v time.Time) predicate.Strategy

LastUpperThresholdAlertTimeEQ applies the EQ predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeGT

func LastUpperThresholdAlertTimeGT(v time.Time) predicate.Strategy

LastUpperThresholdAlertTimeGT applies the GT predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeGTE

func LastUpperThresholdAlertTimeGTE(v time.Time) predicate.Strategy

LastUpperThresholdAlertTimeGTE applies the GTE predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeIn

func LastUpperThresholdAlertTimeIn(vs ...time.Time) predicate.Strategy

LastUpperThresholdAlertTimeIn applies the In predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeIsNil

func LastUpperThresholdAlertTimeIsNil() predicate.Strategy

LastUpperThresholdAlertTimeIsNil applies the IsNil predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeLT

func LastUpperThresholdAlertTimeLT(v time.Time) predicate.Strategy

LastUpperThresholdAlertTimeLT applies the LT predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeLTE

func LastUpperThresholdAlertTimeLTE(v time.Time) predicate.Strategy

LastUpperThresholdAlertTimeLTE applies the LTE predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeNEQ

func LastUpperThresholdAlertTimeNEQ(v time.Time) predicate.Strategy

LastUpperThresholdAlertTimeNEQ applies the NEQ predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeNotIn

func LastUpperThresholdAlertTimeNotIn(vs ...time.Time) predicate.Strategy

LastUpperThresholdAlertTimeNotIn applies the NotIn predicate on the "lastUpperThresholdAlertTime" field.

func LastUpperThresholdAlertTimeNotNil

func LastUpperThresholdAlertTimeNotNil() predicate.Strategy

LastUpperThresholdAlertTimeNotNil applies the NotNil predicate on the "lastUpperThresholdAlertTime" field.

func LowerPriceBound

func LowerPriceBound(v decimal.Decimal) predicate.Strategy

LowerPriceBound applies equality check predicate on the "lowerPriceBound" field. It's identical to LowerPriceBoundEQ.

func LowerPriceBoundContains

func LowerPriceBoundContains(v decimal.Decimal) predicate.Strategy

LowerPriceBoundContains applies the Contains predicate on the "lowerPriceBound" field.

func LowerPriceBoundContainsFold

func LowerPriceBoundContainsFold(v decimal.Decimal) predicate.Strategy

LowerPriceBoundContainsFold applies the ContainsFold predicate on the "lowerPriceBound" field.

func LowerPriceBoundEQ

func LowerPriceBoundEQ(v decimal.Decimal) predicate.Strategy

LowerPriceBoundEQ applies the EQ predicate on the "lowerPriceBound" field.

func LowerPriceBoundEqualFold

func LowerPriceBoundEqualFold(v decimal.Decimal) predicate.Strategy

LowerPriceBoundEqualFold applies the EqualFold predicate on the "lowerPriceBound" field.

func LowerPriceBoundGT

func LowerPriceBoundGT(v decimal.Decimal) predicate.Strategy

LowerPriceBoundGT applies the GT predicate on the "lowerPriceBound" field.

func LowerPriceBoundGTE

func LowerPriceBoundGTE(v decimal.Decimal) predicate.Strategy

LowerPriceBoundGTE applies the GTE predicate on the "lowerPriceBound" field.

func LowerPriceBoundHasPrefix

func LowerPriceBoundHasPrefix(v decimal.Decimal) predicate.Strategy

LowerPriceBoundHasPrefix applies the HasPrefix predicate on the "lowerPriceBound" field.

func LowerPriceBoundHasSuffix

func LowerPriceBoundHasSuffix(v decimal.Decimal) predicate.Strategy

LowerPriceBoundHasSuffix applies the HasSuffix predicate on the "lowerPriceBound" field.

func LowerPriceBoundIn

func LowerPriceBoundIn(vs ...decimal.Decimal) predicate.Strategy

LowerPriceBoundIn applies the In predicate on the "lowerPriceBound" field.

func LowerPriceBoundLT

func LowerPriceBoundLT(v decimal.Decimal) predicate.Strategy

LowerPriceBoundLT applies the LT predicate on the "lowerPriceBound" field.

func LowerPriceBoundLTE

func LowerPriceBoundLTE(v decimal.Decimal) predicate.Strategy

LowerPriceBoundLTE applies the LTE predicate on the "lowerPriceBound" field.

func LowerPriceBoundNEQ

func LowerPriceBoundNEQ(v decimal.Decimal) predicate.Strategy

LowerPriceBoundNEQ applies the NEQ predicate on the "lowerPriceBound" field.

func LowerPriceBoundNotIn

func LowerPriceBoundNotIn(vs ...decimal.Decimal) predicate.Strategy

LowerPriceBoundNotIn applies the NotIn predicate on the "lowerPriceBound" field.

func MartinFactor

func MartinFactor(v float64) predicate.Strategy

MartinFactor applies equality check predicate on the "martinFactor" field. It's identical to MartinFactorEQ.

func MartinFactorEQ

func MartinFactorEQ(v float64) predicate.Strategy

MartinFactorEQ applies the EQ predicate on the "martinFactor" field.

func MartinFactorGT

func MartinFactorGT(v float64) predicate.Strategy

MartinFactorGT applies the GT predicate on the "martinFactor" field.

func MartinFactorGTE

func MartinFactorGTE(v float64) predicate.Strategy

MartinFactorGTE applies the GTE predicate on the "martinFactor" field.

func MartinFactorIn

func MartinFactorIn(vs ...float64) predicate.Strategy

MartinFactorIn applies the In predicate on the "martinFactor" field.

func MartinFactorLT

func MartinFactorLT(v float64) predicate.Strategy

MartinFactorLT applies the LT predicate on the "martinFactor" field.

func MartinFactorLTE

func MartinFactorLTE(v float64) predicate.Strategy

MartinFactorLTE applies the LTE predicate on the "martinFactor" field.

func MartinFactorNEQ

func MartinFactorNEQ(v float64) predicate.Strategy

MartinFactorNEQ applies the NEQ predicate on the "martinFactor" field.

func MartinFactorNotIn

func MartinFactorNotIn(vs ...float64) predicate.Strategy

MartinFactorNotIn applies the NotIn predicate on the "martinFactor" field.

func MaxGridLimit

func MaxGridLimit(v int) predicate.Strategy

MaxGridLimit applies equality check predicate on the "maxGridLimit" field. It's identical to MaxGridLimitEQ.

func MaxGridLimitEQ

func MaxGridLimitEQ(v int) predicate.Strategy

MaxGridLimitEQ applies the EQ predicate on the "maxGridLimit" field.

func MaxGridLimitGT

func MaxGridLimitGT(v int) predicate.Strategy

MaxGridLimitGT applies the GT predicate on the "maxGridLimit" field.

func MaxGridLimitGTE

func MaxGridLimitGTE(v int) predicate.Strategy

MaxGridLimitGTE applies the GTE predicate on the "maxGridLimit" field.

func MaxGridLimitIn

func MaxGridLimitIn(vs ...int) predicate.Strategy

MaxGridLimitIn applies the In predicate on the "maxGridLimit" field.

func MaxGridLimitIsNil

func MaxGridLimitIsNil() predicate.Strategy

MaxGridLimitIsNil applies the IsNil predicate on the "maxGridLimit" field.

func MaxGridLimitLT

func MaxGridLimitLT(v int) predicate.Strategy

MaxGridLimitLT applies the LT predicate on the "maxGridLimit" field.

func MaxGridLimitLTE

func MaxGridLimitLTE(v int) predicate.Strategy

MaxGridLimitLTE applies the LTE predicate on the "maxGridLimit" field.

func MaxGridLimitNEQ

func MaxGridLimitNEQ(v int) predicate.Strategy

MaxGridLimitNEQ applies the NEQ predicate on the "maxGridLimit" field.

func MaxGridLimitNotIn

func MaxGridLimitNotIn(vs ...int) predicate.Strategy

MaxGridLimitNotIn applies the NotIn predicate on the "maxGridLimit" field.

func MaxGridLimitNotNil

func MaxGridLimitNotNil() predicate.Strategy

MaxGridLimitNotNil applies the NotNil predicate on the "maxGridLimit" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Strategy) predicate.Strategy

Or groups predicates with the OR operator between them.

func StatusEQ

func StatusEQ(v Status) predicate.Strategy

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Strategy

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Strategy

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Strategy

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func StopLossExit

func StopLossExit(v decimal.Decimal) predicate.Strategy

StopLossExit applies equality check predicate on the "stopLossExit" field. It's identical to StopLossExitEQ.

func StopLossExitContains

func StopLossExitContains(v decimal.Decimal) predicate.Strategy

StopLossExitContains applies the Contains predicate on the "stopLossExit" field.

func StopLossExitContainsFold

func StopLossExitContainsFold(v decimal.Decimal) predicate.Strategy

StopLossExitContainsFold applies the ContainsFold predicate on the "stopLossExit" field.

func StopLossExitEQ

func StopLossExitEQ(v decimal.Decimal) predicate.Strategy

StopLossExitEQ applies the EQ predicate on the "stopLossExit" field.

func StopLossExitEqualFold

func StopLossExitEqualFold(v decimal.Decimal) predicate.Strategy

StopLossExitEqualFold applies the EqualFold predicate on the "stopLossExit" field.

func StopLossExitGT

func StopLossExitGT(v decimal.Decimal) predicate.Strategy

StopLossExitGT applies the GT predicate on the "stopLossExit" field.

func StopLossExitGTE

func StopLossExitGTE(v decimal.Decimal) predicate.Strategy

StopLossExitGTE applies the GTE predicate on the "stopLossExit" field.

func StopLossExitHasPrefix

func StopLossExitHasPrefix(v decimal.Decimal) predicate.Strategy

StopLossExitHasPrefix applies the HasPrefix predicate on the "stopLossExit" field.

func StopLossExitHasSuffix

func StopLossExitHasSuffix(v decimal.Decimal) predicate.Strategy

StopLossExitHasSuffix applies the HasSuffix predicate on the "stopLossExit" field.

func StopLossExitIn

func StopLossExitIn(vs ...decimal.Decimal) predicate.Strategy

StopLossExitIn applies the In predicate on the "stopLossExit" field.

func StopLossExitIsNil

func StopLossExitIsNil() predicate.Strategy

StopLossExitIsNil applies the IsNil predicate on the "stopLossExit" field.

func StopLossExitLT

func StopLossExitLT(v decimal.Decimal) predicate.Strategy

StopLossExitLT applies the LT predicate on the "stopLossExit" field.

func StopLossExitLTE

func StopLossExitLTE(v decimal.Decimal) predicate.Strategy

StopLossExitLTE applies the LTE predicate on the "stopLossExit" field.

func StopLossExitNEQ

func StopLossExitNEQ(v decimal.Decimal) predicate.Strategy

StopLossExitNEQ applies the NEQ predicate on the "stopLossExit" field.

func StopLossExitNotIn

func StopLossExitNotIn(vs ...decimal.Decimal) predicate.Strategy

StopLossExitNotIn applies the NotIn predicate on the "stopLossExit" field.

func StopLossExitNotNil

func StopLossExitNotNil() predicate.Strategy

StopLossExitNotNil applies the NotNil predicate on the "stopLossExit" field.

func Symbol

func Symbol(v string) predicate.Strategy

Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.

func SymbolContains

func SymbolContains(v string) predicate.Strategy

SymbolContains applies the Contains predicate on the "symbol" field.

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.Strategy

SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.

func SymbolEQ

func SymbolEQ(v string) predicate.Strategy

SymbolEQ applies the EQ predicate on the "symbol" field.

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.Strategy

SymbolEqualFold applies the EqualFold predicate on the "symbol" field.

func SymbolGT

func SymbolGT(v string) predicate.Strategy

SymbolGT applies the GT predicate on the "symbol" field.

func SymbolGTE

func SymbolGTE(v string) predicate.Strategy

SymbolGTE applies the GTE predicate on the "symbol" field.

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.Strategy

SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.Strategy

SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.

func SymbolIn

func SymbolIn(vs ...string) predicate.Strategy

SymbolIn applies the In predicate on the "symbol" field.

func SymbolLT

func SymbolLT(v string) predicate.Strategy

SymbolLT applies the LT predicate on the "symbol" field.

func SymbolLTE

func SymbolLTE(v string) predicate.Strategy

SymbolLTE applies the LTE predicate on the "symbol" field.

func SymbolNEQ

func SymbolNEQ(v string) predicate.Strategy

SymbolNEQ applies the NEQ predicate on the "symbol" field.

func SymbolNotIn

func SymbolNotIn(vs ...string) predicate.Strategy

SymbolNotIn applies the NotIn predicate on the "symbol" field.

func TakeProfitExit

func TakeProfitExit(v decimal.Decimal) predicate.Strategy

TakeProfitExit applies equality check predicate on the "takeProfitExit" field. It's identical to TakeProfitExitEQ.

func TakeProfitExitContains

func TakeProfitExitContains(v decimal.Decimal) predicate.Strategy

TakeProfitExitContains applies the Contains predicate on the "takeProfitExit" field.

func TakeProfitExitContainsFold

func TakeProfitExitContainsFold(v decimal.Decimal) predicate.Strategy

TakeProfitExitContainsFold applies the ContainsFold predicate on the "takeProfitExit" field.

func TakeProfitExitEQ

func TakeProfitExitEQ(v decimal.Decimal) predicate.Strategy

TakeProfitExitEQ applies the EQ predicate on the "takeProfitExit" field.

func TakeProfitExitEqualFold

func TakeProfitExitEqualFold(v decimal.Decimal) predicate.Strategy

TakeProfitExitEqualFold applies the EqualFold predicate on the "takeProfitExit" field.

func TakeProfitExitGT

func TakeProfitExitGT(v decimal.Decimal) predicate.Strategy

TakeProfitExitGT applies the GT predicate on the "takeProfitExit" field.

func TakeProfitExitGTE

func TakeProfitExitGTE(v decimal.Decimal) predicate.Strategy

TakeProfitExitGTE applies the GTE predicate on the "takeProfitExit" field.

func TakeProfitExitHasPrefix

func TakeProfitExitHasPrefix(v decimal.Decimal) predicate.Strategy

TakeProfitExitHasPrefix applies the HasPrefix predicate on the "takeProfitExit" field.

func TakeProfitExitHasSuffix

func TakeProfitExitHasSuffix(v decimal.Decimal) predicate.Strategy

TakeProfitExitHasSuffix applies the HasSuffix predicate on the "takeProfitExit" field.

func TakeProfitExitIn

func TakeProfitExitIn(vs ...decimal.Decimal) predicate.Strategy

TakeProfitExitIn applies the In predicate on the "takeProfitExit" field.

func TakeProfitExitIsNil

func TakeProfitExitIsNil() predicate.Strategy

TakeProfitExitIsNil applies the IsNil predicate on the "takeProfitExit" field.

func TakeProfitExitLT

func TakeProfitExitLT(v decimal.Decimal) predicate.Strategy

TakeProfitExitLT applies the LT predicate on the "takeProfitExit" field.

func TakeProfitExitLTE

func TakeProfitExitLTE(v decimal.Decimal) predicate.Strategy

TakeProfitExitLTE applies the LTE predicate on the "takeProfitExit" field.

func TakeProfitExitNEQ

func TakeProfitExitNEQ(v decimal.Decimal) predicate.Strategy

TakeProfitExitNEQ applies the NEQ predicate on the "takeProfitExit" field.

func TakeProfitExitNotIn

func TakeProfitExitNotIn(vs ...decimal.Decimal) predicate.Strategy

TakeProfitExitNotIn applies the NotIn predicate on the "takeProfitExit" field.

func TakeProfitExitNotNil

func TakeProfitExitNotNil() predicate.Strategy

TakeProfitExitNotNil applies the NotNil predicate on the "takeProfitExit" field.

func TakeProfitRatio

func TakeProfitRatio(v decimal.Decimal) predicate.Strategy

TakeProfitRatio applies equality check predicate on the "takeProfitRatio" field. It's identical to TakeProfitRatioEQ.

func TakeProfitRatioContains

func TakeProfitRatioContains(v decimal.Decimal) predicate.Strategy

TakeProfitRatioContains applies the Contains predicate on the "takeProfitRatio" field.

func TakeProfitRatioContainsFold

func TakeProfitRatioContainsFold(v decimal.Decimal) predicate.Strategy

TakeProfitRatioContainsFold applies the ContainsFold predicate on the "takeProfitRatio" field.

func TakeProfitRatioEQ

func TakeProfitRatioEQ(v decimal.Decimal) predicate.Strategy

TakeProfitRatioEQ applies the EQ predicate on the "takeProfitRatio" field.

func TakeProfitRatioEqualFold

func TakeProfitRatioEqualFold(v decimal.Decimal) predicate.Strategy

TakeProfitRatioEqualFold applies the EqualFold predicate on the "takeProfitRatio" field.

func TakeProfitRatioGT

func TakeProfitRatioGT(v decimal.Decimal) predicate.Strategy

TakeProfitRatioGT applies the GT predicate on the "takeProfitRatio" field.

func TakeProfitRatioGTE

func TakeProfitRatioGTE(v decimal.Decimal) predicate.Strategy

TakeProfitRatioGTE applies the GTE predicate on the "takeProfitRatio" field.

func TakeProfitRatioHasPrefix

func TakeProfitRatioHasPrefix(v decimal.Decimal) predicate.Strategy

TakeProfitRatioHasPrefix applies the HasPrefix predicate on the "takeProfitRatio" field.

func TakeProfitRatioHasSuffix

func TakeProfitRatioHasSuffix(v decimal.Decimal) predicate.Strategy

TakeProfitRatioHasSuffix applies the HasSuffix predicate on the "takeProfitRatio" field.

func TakeProfitRatioIn

func TakeProfitRatioIn(vs ...decimal.Decimal) predicate.Strategy

TakeProfitRatioIn applies the In predicate on the "takeProfitRatio" field.

func TakeProfitRatioLT

func TakeProfitRatioLT(v decimal.Decimal) predicate.Strategy

TakeProfitRatioLT applies the LT predicate on the "takeProfitRatio" field.

func TakeProfitRatioLTE

func TakeProfitRatioLTE(v decimal.Decimal) predicate.Strategy

TakeProfitRatioLTE applies the LTE predicate on the "takeProfitRatio" field.

func TakeProfitRatioNEQ

func TakeProfitRatioNEQ(v decimal.Decimal) predicate.Strategy

TakeProfitRatioNEQ applies the NEQ predicate on the "takeProfitRatio" field.

func TakeProfitRatioNotIn

func TakeProfitRatioNotIn(vs ...decimal.Decimal) predicate.Strategy

TakeProfitRatioNotIn applies the NotIn predicate on the "takeProfitRatio" field.

func Token

func Token(v string) predicate.Strategy

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.Strategy

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.Strategy

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.Strategy

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.Strategy

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.Strategy

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.Strategy

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.Strategy

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.Strategy

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.Strategy

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.Strategy

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.Strategy

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.Strategy

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.Strategy

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Strategy

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Strategy

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Strategy

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Strategy

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Strategy

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Strategy

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Strategy

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Strategy

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Strategy

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UpperBoundExit

func UpperBoundExit(v decimal.Decimal) predicate.Strategy

UpperBoundExit applies equality check predicate on the "upperBoundExit" field. It's identical to UpperBoundExitEQ.

func UpperBoundExitContains

func UpperBoundExitContains(v decimal.Decimal) predicate.Strategy

UpperBoundExitContains applies the Contains predicate on the "upperBoundExit" field.

func UpperBoundExitContainsFold

func UpperBoundExitContainsFold(v decimal.Decimal) predicate.Strategy

UpperBoundExitContainsFold applies the ContainsFold predicate on the "upperBoundExit" field.

func UpperBoundExitEQ

func UpperBoundExitEQ(v decimal.Decimal) predicate.Strategy

UpperBoundExitEQ applies the EQ predicate on the "upperBoundExit" field.

func UpperBoundExitEqualFold

func UpperBoundExitEqualFold(v decimal.Decimal) predicate.Strategy

UpperBoundExitEqualFold applies the EqualFold predicate on the "upperBoundExit" field.

func UpperBoundExitGT

func UpperBoundExitGT(v decimal.Decimal) predicate.Strategy

UpperBoundExitGT applies the GT predicate on the "upperBoundExit" field.

func UpperBoundExitGTE

func UpperBoundExitGTE(v decimal.Decimal) predicate.Strategy

UpperBoundExitGTE applies the GTE predicate on the "upperBoundExit" field.

func UpperBoundExitHasPrefix

func UpperBoundExitHasPrefix(v decimal.Decimal) predicate.Strategy

UpperBoundExitHasPrefix applies the HasPrefix predicate on the "upperBoundExit" field.

func UpperBoundExitHasSuffix

func UpperBoundExitHasSuffix(v decimal.Decimal) predicate.Strategy

UpperBoundExitHasSuffix applies the HasSuffix predicate on the "upperBoundExit" field.

func UpperBoundExitIn

func UpperBoundExitIn(vs ...decimal.Decimal) predicate.Strategy

UpperBoundExitIn applies the In predicate on the "upperBoundExit" field.

func UpperBoundExitIsNil

func UpperBoundExitIsNil() predicate.Strategy

UpperBoundExitIsNil applies the IsNil predicate on the "upperBoundExit" field.

func UpperBoundExitLT

func UpperBoundExitLT(v decimal.Decimal) predicate.Strategy

UpperBoundExitLT applies the LT predicate on the "upperBoundExit" field.

func UpperBoundExitLTE

func UpperBoundExitLTE(v decimal.Decimal) predicate.Strategy

UpperBoundExitLTE applies the LTE predicate on the "upperBoundExit" field.

func UpperBoundExitNEQ

func UpperBoundExitNEQ(v decimal.Decimal) predicate.Strategy

UpperBoundExitNEQ applies the NEQ predicate on the "upperBoundExit" field.

func UpperBoundExitNotIn

func UpperBoundExitNotIn(vs ...decimal.Decimal) predicate.Strategy

UpperBoundExitNotIn applies the NotIn predicate on the "upperBoundExit" field.

func UpperBoundExitNotNil

func UpperBoundExitNotNil() predicate.Strategy

UpperBoundExitNotNil applies the NotNil predicate on the "upperBoundExit" field.

func UpperPriceBound

func UpperPriceBound(v decimal.Decimal) predicate.Strategy

UpperPriceBound applies equality check predicate on the "upperPriceBound" field. It's identical to UpperPriceBoundEQ.

func UpperPriceBoundContains

func UpperPriceBoundContains(v decimal.Decimal) predicate.Strategy

UpperPriceBoundContains applies the Contains predicate on the "upperPriceBound" field.

func UpperPriceBoundContainsFold

func UpperPriceBoundContainsFold(v decimal.Decimal) predicate.Strategy

UpperPriceBoundContainsFold applies the ContainsFold predicate on the "upperPriceBound" field.

func UpperPriceBoundEQ

func UpperPriceBoundEQ(v decimal.Decimal) predicate.Strategy

UpperPriceBoundEQ applies the EQ predicate on the "upperPriceBound" field.

func UpperPriceBoundEqualFold

func UpperPriceBoundEqualFold(v decimal.Decimal) predicate.Strategy

UpperPriceBoundEqualFold applies the EqualFold predicate on the "upperPriceBound" field.

func UpperPriceBoundGT

func UpperPriceBoundGT(v decimal.Decimal) predicate.Strategy

UpperPriceBoundGT applies the GT predicate on the "upperPriceBound" field.

func UpperPriceBoundGTE

func UpperPriceBoundGTE(v decimal.Decimal) predicate.Strategy

UpperPriceBoundGTE applies the GTE predicate on the "upperPriceBound" field.

func UpperPriceBoundHasPrefix

func UpperPriceBoundHasPrefix(v decimal.Decimal) predicate.Strategy

UpperPriceBoundHasPrefix applies the HasPrefix predicate on the "upperPriceBound" field.

func UpperPriceBoundHasSuffix

func UpperPriceBoundHasSuffix(v decimal.Decimal) predicate.Strategy

UpperPriceBoundHasSuffix applies the HasSuffix predicate on the "upperPriceBound" field.

func UpperPriceBoundIn

func UpperPriceBoundIn(vs ...decimal.Decimal) predicate.Strategy

UpperPriceBoundIn applies the In predicate on the "upperPriceBound" field.

func UpperPriceBoundLT

func UpperPriceBoundLT(v decimal.Decimal) predicate.Strategy

UpperPriceBoundLT applies the LT predicate on the "upperPriceBound" field.

func UpperPriceBoundLTE

func UpperPriceBoundLTE(v decimal.Decimal) predicate.Strategy

UpperPriceBoundLTE applies the LTE predicate on the "upperPriceBound" field.

func UpperPriceBoundNEQ

func UpperPriceBoundNEQ(v decimal.Decimal) predicate.Strategy

UpperPriceBoundNEQ applies the NEQ predicate on the "upperPriceBound" field.

func UpperPriceBoundNotIn

func UpperPriceBoundNotIn(vs ...decimal.Decimal) predicate.Strategy

UpperPriceBoundNotIn applies the NotIn predicate on the "upperPriceBound" field.

func UserId

func UserId(v int64) predicate.Strategy

UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.

func UserIdEQ

func UserIdEQ(v int64) predicate.Strategy

UserIdEQ applies the EQ predicate on the "userId" field.

func UserIdGT

func UserIdGT(v int64) predicate.Strategy

UserIdGT applies the GT predicate on the "userId" field.

func UserIdGTE

func UserIdGTE(v int64) predicate.Strategy

UserIdGTE applies the GTE predicate on the "userId" field.

func UserIdIn

func UserIdIn(vs ...int64) predicate.Strategy

UserIdIn applies the In predicate on the "userId" field.

func UserIdLT

func UserIdLT(v int64) predicate.Strategy

UserIdLT applies the LT predicate on the "userId" field.

func UserIdLTE

func UserIdLTE(v int64) predicate.Strategy

UserIdLTE applies the LTE predicate on the "userId" field.

func UserIdNEQ

func UserIdNEQ(v int64) predicate.Strategy

UserIdNEQ applies the NEQ predicate on the "userId" field.

func UserIdNotIn

func UserIdNotIn(vs ...int64) predicate.Strategy

UserIdNotIn applies the NotIn predicate on the "userId" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Strategy queries.

func ByCandlesToCheck

func ByCandlesToCheck(opts ...sql.OrderTermOption) OrderOption

ByCandlesToCheck orders the results by the candlesToCheck field.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByDropOn

func ByDropOn(opts ...sql.OrderTermOption) OrderOption

ByDropOn orders the results by the dropOn field.

func ByDropThreshold

func ByDropThreshold(opts ...sql.OrderTermOption) OrderOption

ByDropThreshold orders the results by the dropThreshold field.

func ByDynamicStopLoss

func ByDynamicStopLoss(opts ...sql.OrderTermOption) OrderOption

ByDynamicStopLoss orders the results by the dynamicStopLoss field.

func ByEnableAutoBuy

func ByEnableAutoBuy(opts ...sql.OrderTermOption) OrderOption

ByEnableAutoBuy orders the results by the enableAutoBuy field.

func ByEnableAutoExit

func ByEnableAutoExit(opts ...sql.OrderTermOption) OrderOption

ByEnableAutoExit orders the results by the enableAutoExit field.

func ByEnableAutoSell

func ByEnableAutoSell(opts ...sql.OrderTermOption) OrderOption

ByEnableAutoSell orders the results by the enableAutoSell field.

func ByEnablePushNotification

func ByEnablePushNotification(opts ...sql.OrderTermOption) OrderOption

ByEnablePushNotification orders the results by the enablePushNotification field.

func ByFirstOrderId

func ByFirstOrderId(opts ...sql.OrderTermOption) OrderOption

ByFirstOrderId orders the results by the firstOrderId field.

func ByFiveKlineVolume

func ByFiveKlineVolume(opts ...sql.OrderTermOption) OrderOption

ByFiveKlineVolume orders the results by the fiveKlineVolume field.

func ByGUID

func ByGUID(opts ...sql.OrderTermOption) OrderOption

ByGUID orders the results by the guid field.

func ByGlobalTakeProfitRatio

func ByGlobalTakeProfitRatio(opts ...sql.OrderTermOption) OrderOption

ByGlobalTakeProfitRatio orders the results by the globalTakeProfitRatio field.

func ByGridTrend

func ByGridTrend(opts ...sql.OrderTermOption) OrderOption

ByGridTrend orders the results by the gridTrend field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInitialOrderSize

func ByInitialOrderSize(opts ...sql.OrderTermOption) OrderOption

ByInitialOrderSize orders the results by the initialOrderSize field.

func ByLastKlineVolume

func ByLastKlineVolume(opts ...sql.OrderTermOption) OrderOption

ByLastKlineVolume orders the results by the lastKlineVolume field.

func ByLastLowerThresholdAlertTime

func ByLastLowerThresholdAlertTime(opts ...sql.OrderTermOption) OrderOption

ByLastLowerThresholdAlertTime orders the results by the lastLowerThresholdAlertTime field.

func ByLastUpperThresholdAlertTime

func ByLastUpperThresholdAlertTime(opts ...sql.OrderTermOption) OrderOption

ByLastUpperThresholdAlertTime orders the results by the lastUpperThresholdAlertTime field.

func ByLowerPriceBound

func ByLowerPriceBound(opts ...sql.OrderTermOption) OrderOption

ByLowerPriceBound orders the results by the lowerPriceBound field.

func ByMartinFactor

func ByMartinFactor(opts ...sql.OrderTermOption) OrderOption

ByMartinFactor orders the results by the martinFactor field.

func ByMaxGridLimit

func ByMaxGridLimit(opts ...sql.OrderTermOption) OrderOption

ByMaxGridLimit orders the results by the maxGridLimit field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByStopLossExit

func ByStopLossExit(opts ...sql.OrderTermOption) OrderOption

ByStopLossExit orders the results by the stopLossExit field.

func BySymbol

func BySymbol(opts ...sql.OrderTermOption) OrderOption

BySymbol orders the results by the symbol field.

func ByTakeProfitExit

func ByTakeProfitExit(opts ...sql.OrderTermOption) OrderOption

ByTakeProfitExit orders the results by the takeProfitExit field.

func ByTakeProfitRatio

func ByTakeProfitRatio(opts ...sql.OrderTermOption) OrderOption

ByTakeProfitRatio orders the results by the takeProfitRatio field.

func ByToken

func ByToken(opts ...sql.OrderTermOption) OrderOption

ByToken orders the results by the token field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

func ByUpperBoundExit

func ByUpperBoundExit(opts ...sql.OrderTermOption) OrderOption

ByUpperBoundExit orders the results by the upperBoundExit field.

func ByUpperPriceBound

func ByUpperPriceBound(opts ...sql.OrderTermOption) OrderOption

ByUpperPriceBound orders the results by the upperPriceBound field.

func ByUserId

func ByUserId(opts ...sql.OrderTermOption) OrderOption

ByUserId orders the results by the userId field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive   Status = "active"
	StatusInactive Status = "inactive"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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