position

package
v0.18.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TableName = "tickerbeats.positions"

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position struct {
	PositionID     int64          `json:"position_id"`
	AccountID      int64          `json:"account_id"`
	Ticket         int64          `json:"ticket"`
	Symbol         sql.NullString `json:"symbol"`
	PositionTime   sql.NullTime   `json:"position_time"`
	PositionType   string         `json:"position_type"`
	Volume         float64        `json:"volume"`
	PriceOpen      float64        `json:"price_open"`
	StopLoss       float64        `json:"stop_loss"`
	TakeProfit     float64        `json:"take_profit"`
	PriceCurrent   float64        `json:"price_current"`
	Commission     float64        `json:"commission"`
	Swap           float64        `json:"swap"`
	Profit         float64        `json:"profit"`
	Comment        string         `json:"comment"`
	Created        time.Time      `json:"created"`
	Updated        time.Time      `json:"updated"`
	Deleted        sql.NullTime   `json:"deleted"`
	PositionUpdate sql.NullTime   `json:"position_update"`
	Reason         string         `json:"reason"`
	ExternalID     string         `json:"external_id"`
	Magic          sql.NullInt64  `json:"magic"`
}

Position Properties

Directories

Path Synopsis
package positionsrepo is a generated GoMock package.
package positionsrepo is a generated GoMock package.
package positionssvc is a generated GoMock package.
package positionssvc is a generated GoMock package.

Jump to

Keyboard shortcuts

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