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 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 NewTickerFromCEDEAR ¶
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
Click to show internal directories.
Click to hide internal directories.