Skip to content

Commit

Permalink
Adding package-level functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhack committed Nov 11, 2024
1 parent a310bc1 commit a9a0738
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions alpaca/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,16 @@ func GetAsset(symbol string) (*Asset, error) {
return DefaultClient.GetAsset(symbol)
}

// GetOptionContracts returns the list of Option Contracts.
func GetOptionContracts(req GetOptionContractsRequest) ([]OptionContract, error) {
return DefaultClient.GetOptionContracts(req)
}

// GetOptionContract returns an option contract by symbol or contract ID.
func GetOptionContract(symbolOrID string) (*OptionContract, error) {
return DefaultClient.GetOptionContract(symbolOrID)
}

// GetAnnouncements returns a list of announcements
// with the default Alpaca client.
func GetAnnouncements(req GetAnnouncementsRequest) ([]Announcement, error) {
Expand Down

0 comments on commit a9a0738

Please sign in to comment.