Documentation
¶
Overview ¶
Package models provides data structures and types representing entities within the application or system.
This package encapsulates the data model of the application, organizing various data entities into structs and types. By structuring the models into a separate package, it promotes code modularity, clarity, and maintainability. Additionally, it facilitates reusability across different parts of the codebase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
ErrorMessage string `json:"Error Message"`
}
ErrorResponse represents an error response returned by the API.
type Ticker ¶
type Ticker struct {
Symbol string `json:"symbol"` // Symbol represents the ticker symbol.
Exchange string `json:"exchange"` // Exchange represents the exchange where the ticker is traded.
FullName string `json:"full_name"` // FullName represents the full name of the ticker.
}
Ticker represents a financial instrument.
func (*Ticker) SetFullName ¶
func (ticker *Ticker) SetFullName()
SetFullName returns the symbol + exchange EX: SAB.MC
Click to show internal directories.
Click to hide internal directories.