Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClosedPosition ¶ added in v1.0.6
type ClosedPosition struct { Id int64 PrntId *int64 Account int64 Pair int64 ContractSize float64 OpenLots float64 CloseLots float64 OpenPrice float64 ClosePrice float64 Sellbuy string Fee float64 Fee2 float64 Swap float64 Swap2 float64 Pl float64 Opened time.Time Closed time.Time Commentary string PositionId int64 }
type Message ¶ added in v1.0.5
type Message struct { D bool `json:"d"` U []int64 `json:"u"` M struct { Event string `json:"event"` Payload struct { A int64 `json:"a"` B float64 `json:"b"` E float64 `json:"e"` N float64 `json:"n"` P float64 `json:"p"` U float64 `json:"u"` C int64 `json:"c"` O []struct { T int64 `json:"t"` N float64 `json:"n"` P float64 `json:"p"` } `json:"o"` } `json:"payload"` } `json:"m"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetAccounts ¶ added in v1.0.7
func (*Service) GetClosedPositions ¶ added in v1.0.6
func (*Service) GetPositions ¶
type Symbol ¶
type Symbol struct { ID int64 `json:"-"` Symbol string `json:"Symbol"` Market string `json:"Market"` Quote string `json:"Quote"` Desc string `json:"Description"` Active string `json:"Active"` MinTradeSize float64 `json:"MinTradeSize"` Precision float64 `json:"Precision"` ContractSize float64 `json:"ContractSize"` Group string `json:"Group"` Type string `json:"Type"` Bid float64 `json:"Sell"` Ask float64 `json:"Buy"` Date time.Time `json:"PriceDate"` }
Click to show internal directories.
Click to hide internal directories.