dtos

package
v0.0.0-...-4e89ec9 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	MetaData        MetaData             `json:"Meta Data"`
	TimeSeriesDaily map[string]DailyData `json:"Time Series (Daily)"`
}

APIResponse Estructura para toodo el JSON

type DailyData

type DailyData struct {
	Open   string `json:"1. open"`
	High   string `json:"2. high"`
	Low    string `json:"3. low"`
	Close  string `json:"4. close"`
	Volume string `json:"5. volume"`
}

DailyData Estructura para los datos de tiempo diario

type Data

type Data struct {
	Symbol         string       `bson:"symbol"`
	LastRefreshed  string       `bson:"lastrefreshed"`
	TimeZone       string       `bson:"timezone"`
	OutputSize     string       `bson:"outputsize"`
	TimeSeriesType string       `bson:"timeseriestype"`
	TimeSeriesData []TimeSeries `bson:"timeseriesdata"`
}

type MetaData

type MetaData struct {
	Information   string `json:"1. Information"`
	Symbol        string `json:"2. Symbol"`
	LastRefreshed string `json:"3. Last Refreshed"`
	OutputSize    string `json:"4. Output Size"`
	TimeZone      string `json:"5. Time Zone"`
}

MetaData Estructura para los metadatos

type RateLimitResponse

type RateLimitResponse struct {
	Information string `json:"Information"`
}

type Ticker

type Ticker struct {
	Symbol           string `bson:"symbol"`
	Company          string `bson:"company"`
	Ratio            string `bson:"ratio"`
	HasADR           bool   `bson:"has_adr"`
	OriginSymbol     string `bson:"origin_symbol"`
	TimeSeriesDaily  Data   `bson:"time_series_daily"`
	TimeSeriesWeekly Data   `bson:"time_series_weekly"`
	IsCrypto         bool   `bson:"is_crypto"`
	AssetClass       string `bson:"asset_class"`
}

func NewTickerFromBYMAMarket

func NewTickerFromBYMAMarket(record []string) Ticker

func NewTickerFromCEDEAR

func NewTickerFromCEDEAR(record []string) Ticker

type TimeSeries

type TimeSeries struct {
	Date     string  `bson:"date"`
	Open     float64 `bson:"open"`
	High     float64 `bson:"high"`
	Low      float64 `bson:"low"`
	Close    float64 `bson:"close"`
	AdjClose float64 `bson:"adjclose"`
	Volume   int64   `bson:"volume"`
}

func (TimeSeries) New

func (ts TimeSeries) New(date string, open, high, low, close, adjClose float64, volume int64) TimeSeries

Jump to

Keyboard shortcuts

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