Documentation ¶
Overview ¶
Copyright 2021 Sander Ruscigno
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 float64 `json:"volume_current"` PriceOpen float64 `json:"price_open"` StopLoss float64 `json:"stop_loss"` TakeProfit float64 `json:"take_profit"` PriceCurrent float64 `json:"price_current"` PriceStopLimit float64 `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 int64 `json:"position_by_id"` }
Order Properties
Click to show internal directories.
Click to hide internal directories.