adding FIX stuff
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
package rest
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
type HTTPError struct {
|
||||
Error string
|
||||
}
|
||||
@ -16,3 +22,23 @@ type Credentials struct {
|
||||
type Session struct {
|
||||
Email string
|
||||
}
|
||||
|
||||
// ExecutionReportResponse is the REST representation of a FIX ExecutionReport.
|
||||
type ExecutionReportResponse struct {
|
||||
OrderID string `json:"orderID"`
|
||||
ClOrdID string `json:"clOrdID"`
|
||||
ExecID string `json:"execID"`
|
||||
ExecType string `json:"execType"`
|
||||
OrdStatus string `json:"ordStatus"`
|
||||
Symbol string `json:"symbol"`
|
||||
Side string `json:"side"`
|
||||
OrderQty decimal.Decimal `json:"orderQty"`
|
||||
Price decimal.Decimal `json:"price"`
|
||||
LastPx decimal.Decimal `json:"lastPx"`
|
||||
LastQty decimal.Decimal `json:"lastQty"`
|
||||
CumQty decimal.Decimal `json:"cumQty"`
|
||||
LeavesQty decimal.Decimal `json:"leavesQty"`
|
||||
AvgPx decimal.Decimal `json:"avgPx"`
|
||||
TransactTime time.Time `json:"transactTime"`
|
||||
Account string `json:"account,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user