twelvedata

package module
v0.0.0-...-70976ab Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StocksRequest

type StocksRequest struct {
	Symbol   string
	Exchange string
	Country  string
	Type     string
}

type TwelveDataClient

type TwelveDataClient struct {
	// contains filtered or unexported fields
}

func NewTwelveDataClient

func NewTwelveDataClient(apiKey string) *TwelveDataClient

func (*TwelveDataClient) BuildTimeSeriesDataRequest

func (client *TwelveDataClient) BuildTimeSeriesDataRequest(miCode string, symbol string, interval api.Interval, startDate time.Time, endDate time.Time) *api.TimeSeriesRequest

func (*TwelveDataClient) RequestETFExchanges

func (client *TwelveDataClient) RequestETFExchanges() ([]datatypes.Exchange, error)

func (*TwelveDataClient) RequestEarliestTimestamp

func (client *TwelveDataClient) RequestEarliestTimestamp(symbol string, interval api.Interval) (*datatypes.EarliestTimestamp, error)

func (*TwelveDataClient) RequestIndexExchanges

func (client *TwelveDataClient) RequestIndexExchanges() ([]datatypes.Exchange, error)

func (*TwelveDataClient) RequestStockExchanges

func (client *TwelveDataClient) RequestStockExchanges() ([]datatypes.Exchange, error)

func (*TwelveDataClient) RequestStocks

func (client *TwelveDataClient) RequestStocks(exchangeCode string) ([]datatypes.Stock, error)

func (*TwelveDataClient) RequestTimeSeriesData

func (client *TwelveDataClient) RequestTimeSeriesData(miCode string, symbol string, interval api.Interval, startDate time.Time, endDate time.Time) ([]datatypes.TimeSeriesData, error)

func (*TwelveDataClient) SendTimeSeriesDataRequest

func (client *TwelveDataClient) SendTimeSeriesDataRequest(req *api.TimeSeriesRequest) ([]datatypes.TimeSeriesData, error)

Directories

Path Synopsis
net
api

Jump to

Keyboard shortcuts

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