models

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL