alpacahq / alpacahq/alpaca-trade-api-go

GetAssetsRequest.AssetClass should be type AssetClass (instead of string)

Offen
#293 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
v4
Vorherrschende Sprache
Go
Sterne
429
Forks
118
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

There is already an [`AssetClass`](https://github.com/alpacahq/alpaca-trade-api-go/blob/7d20c8f30eaaf64619c4bd23b9855dd04dcccd35/alpaca/entities.go#L144) type, so it's just a matter of using it.

That is, change this:
```go
type GetAssetsRequest struct {
Status string
AssetClass string
Exchange string
}
```

To this:
```go
type GetAssetsRequest struct {
Status string
AssetClass AssetClass
Exchange string
}
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.