Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion alpaca/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,19 @@ type positionSlice []Position
type Asset struct {
ID string `json:"id"`
Class AssetClass `json:"class"`
CUSIP string `json:"cusip"`
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"`
MaintenanceMarginRequirement uint `json:"maintenance_margin_requirement"` // Deprecated: Please use margin_requirement_long or margin_requirement_short instead. Note that these fields are of type string.
Comment thread
YannickFuereder marked this conversation as resolved.
Outdated
MarginRequirementLong string `json:"margin_requirement_long"`
MarginRequirementShort string `json:"margin_requirement_short"`
Comment thread
gnvk marked this conversation as resolved.
Outdated
Attributes []string `json:"attributes"`
}

Expand All @@ -147,6 +150,7 @@ type AssetClass string
const (
USEquity AssetClass = "us_equity"
Crypto AssetClass = "crypto"
USOption AssetClass = "us_option"
)

type CalendarDay struct {
Expand Down