Skip to content

Commit

Permalink
Merge pull request #37 from aegoroff/master
Browse files Browse the repository at this point in the history
Добавить в структуру sdk.Operation поле QuantityExecuted fixes #36
  • Loading branch information
necryin authored Aug 29, 2020
2 parents 3cc3cf4 + 24a6b3d commit 2d9f8ce
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions rest_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,20 @@ type Instrument struct {
}

type Operation struct {
ID string `json:"id"`
Status OperationStatus `json:"status"`
Trades []Trade `json:"trades"`
Commission MoneyAmount `json:"commission"`
Currency Currency `json:"currency"`
Payment float64 `json:"payment"`
Price float64 `json:"price"`
Quantity int `json:"quantity"`
FIGI string `json:"figi"`
InstrumentType InstrumentType `json:"instrumentType"`
IsMarginCall bool `json:"isMarginCall"`
DateTime time.Time `json:"date"`
OperationType OperationType `json:"operationType"`
ID string `json:"id"`
Status OperationStatus `json:"status"`
Trades []Trade `json:"trades"`
Commission MoneyAmount `json:"commission"`
Currency Currency `json:"currency"`
Payment float64 `json:"payment"`
Price float64 `json:"price"`
Quantity int `json:"quantity"`
QuantityExecuted int `json:"quantityExecuted"`
FIGI string `json:"figi"`
InstrumentType InstrumentType `json:"instrumentType"`
IsMarginCall bool `json:"isMarginCall"`
DateTime time.Time `json:"date"`
OperationType OperationType `json:"operationType"`
}

type Trade struct {
Expand Down

0 comments on commit 2d9f8ce

Please sign in to comment.