orders

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TableName = "tickerbeats.orders"

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	AccountID      int64           `json:"account_id"`
	OrderID        int64           `json:"order_id"`
	Ticket         int64           `json:"ticket"`
	Symbol         sql.NullString  `json:"symbol"`
	TimeSetup      sql.NullTime    `json:"time_setup"`
	OrderType      string          `json:"order_type"`
	State          string          `json:"state"`
	TimeExpiration sql.NullTime    `json:"time_expiration"`
	TimeDone       sql.NullTime    `json:"time_done"`
	TypeFilling    string          `json:"type_filling"`
	TypeTime       string          `json:"type_time"`
	Magic          sql.NullInt64   `json:"magic"`
	PositionId     int64           `json:"position_id"`
	VolumeInitial  float64         `json:"volume_initial"`
	VolumeCurrent  sql.NullFloat64 `json:"volume_current"`
	PriceOpen      float64         `json:"price_open"`
	StopLoss       sql.NullFloat64 `json:"stop_loss"`
	TakeProfit     sql.NullFloat64 `json:"take_profit"`
	PriceCurrent   float64         `json:"price_current"`
	PriceStopLimit sql.NullFloat64 `json:"price_stop_limit"`
	Comment        string          `json:"comment"`
	ExternalID     string          `json:"external_id"`
	Reason         string          `json:"reason"`
	Created        time.Time       `json:"created"`
	Updated        time.Time       `json:"updated"`
	Deleted        sql.NullTime    `json:"deleted"`
	PositionByID   sql.NullInt64   `json:"position_by_id"`
}

Order Properties

Directories

Path Synopsis
package ordersrepo is a generated GoMock package.
package ordersrepo is a generated GoMock package.
package orderssvc is a generated GoMock package.
package orderssvc is a generated GoMock package.

Jump to

Keyboard shortcuts

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