tools

package
v0.0.0-...-14f5618 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubCurrencyApi

type GithubCurrencyApi struct {
	Db     *pgxpool.Pool
	Logger *zap.Logger
}

func (*GithubCurrencyApi) FetchLatestExchangeRates

func (gca *GithubCurrencyApi) FetchLatestExchangeRates()

type TickerDetails

type TickerDetails struct {
	Meta   TickerMeta           `json:"meta"`
	Values []TickerPriceHistory `json:"values"`
	Status string               `json:"status"`
}

type TickerMeta

type TickerMeta struct {
	Type             string `json:"type"`
	Symbol           string `json:"symbol"`
	Interval         string `json:"interval"`
	Currency         string `json:"currency"`
	Exchange         string `json:"exchange"`
	MicCode          string `json:"mic_code"`
	ExchangeTimezone string `json:"exchange_timezone"`
}

type TickerPriceHistory

type TickerPriceHistory struct {
	Low      string `json:"low"`
	Open     string `json:"open"`
	High     string `json:"high"`
	Close    string `json:"close"`
	Volume   string `json:"volume"`
	Datetime string `json:"datetime"`
}

type TwelveDataFinancialDataApi

type TwelveDataFinancialDataApi struct {
	Logger *zap.Logger
	Db     *pgxpool.Pool
	Env    *config.Config
}

func (*TwelveDataFinancialDataApi) FetchLatestUSStockPrice

func (tdfda *TwelveDataFinancialDataApi) FetchLatestUSStockPrice()

Jump to

Keyboard shortcuts

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