Skip to content

Commit

Permalink
Merge branch 'alpacahq:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
probably-not authored Aug 2, 2023
2 parents 54b97dc + 4377bef commit 799db68
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 11 deletions.
24 changes: 13 additions & 11 deletions alpaca/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,19 @@ type Position struct {
type positionSlice []Position

type Asset struct {
ID string `json:"id"`
Class AssetClass `json:"class"`
Exchange string `json:"exchange"`
Symbol string `json:"symbol"`
Name string `json:"name"`
Status AssetStatus `json:"status"`
Tradable bool `json:"tradable"`
Marginable bool `json:"marginable"`
Shortable bool `json:"shortable"`
EasyToBorrow bool `json:"easy_to_borrow"`
Fractionable bool `json:"fractionable"`
ID string `json:"id"`
Class AssetClass `json:"class"`
Exchange string `json:"exchange"`
Symbol string `json:"symbol"`
Name string `json:"name"`
Status AssetStatus `json:"status"`
Tradable bool `json:"tradable"`
Marginable bool `json:"marginable"`
MaintenanceMarginRequirement uint `json:"maintenance_margin_requirement"`
Shortable bool `json:"shortable"`
EasyToBorrow bool `json:"easy_to_borrow"`
Fractionable bool `json:"fractionable"`
Attributes []string `json:"attributes"`
}

//easyjson:json
Expand Down
46 changes: 46 additions & 0 deletions alpaca/entities_easyjson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 799db68

Please sign in to comment.