Skip to content

Commit

Permalink
fix!: trade info margin
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Apr 22, 2024
1 parent a704996 commit 75ee623
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions fx.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ type FXAccount struct {
IBAN string `json:"iban"`
}

type FXTradeInformationMargin struct {
Amount float64 `json:"amount"`
Account FXAccount `json:"account"`
}

type FXTradeInformation struct {
ValueDate string `json:"valueDate,omitempty"`
Details struct {
Expand All @@ -35,12 +40,9 @@ type FXTradeInformation struct {
SellCurrency string `json:"sellCurrency"`
BuyCurrency string `json:"buyCurrency"`
} `json:"details"`
Margin struct {
Amount float64 `json:"amount"`
Account FXAccount `json:"account"`
} `json:"margin,omitempty"`
EndToEndID string `json:"endToEndId"`
UnstructuredInformation string `json:"unstructuredInformation,omitempty"`
Margin *FXTradeInformationMargin `json:"margin,omitempty"`
EndToEndID string `json:"endToEndId"`
UnstructuredInformation string `json:"unstructuredInformation,omitempty"`
}

type FXPayload struct {
Expand Down

0 comments on commit 75ee623

Please sign in to comment.