adding FIX stuff

This commit is contained in:
Ramiro Paz
2026-03-12 12:52:18 -03:00
parent ac285e662b
commit f940f5a0f9
9 changed files with 422 additions and 9 deletions

View File

@ -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"`
}