Help us shape the future of Go! Take the 2026 Go Developer Survey

eulerpool

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 9 Imported by: 0

README

Eulerpool SDK for Go

Official Go SDK for the Eulerpool Financial Data API.

Installation

go get github.com/eulerpool/eulerpool-go

Quick Start

package main

import (
	"context"
	"encoding/json"
	"fmt"
	"log"

	eulerpool "github.com/eulerpool/eulerpool-go"
)

func main() {
	client := eulerpool.NewClient("YOUR_API_KEY")
	ctx := context.Background()

	// Get a company profile
	profile, err := client.Equity.Profile(ctx, "US0378331005")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(string(profile))

	// Get income statement
	income, err := client.Equity.IncomeStatement(ctx, "US0378331005")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(string(income))

	// Get ETF holdings
	holdings, err := client.Etf.Holdings(ctx, "IE00B4L5Y983")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(string(holdings))

	// Parse into a struct
	var result map[string]interface{}
	json.Unmarshal(profile, &result)
	fmt.Printf("Company: %s\n", result["name"])
}

Authentication

Pass your API key when creating the client. By default, it is sent as a ?token= query parameter. To use the Authorization: Bearer header instead:

client := eulerpool.NewClient("YOUR_API_KEY", &eulerpool.ClientOptions{
	UseAuthHeader: true,
})

Get your free API key at eulerpool.com/developers/register.

Configuration

client := eulerpool.NewClient("YOUR_API_KEY", &eulerpool.ClientOptions{
	BaseURL:       "https://api.eulerpool.com/api/1", // default
	UseAuthHeader: false,                              // default: use ?token= query param
	MaxRetries:    2,                                  // default
	Timeout:       30 * time.Second,                   // default
})

Available Services

Service Accessor Methods
Equity client.Equity Profile, Quotes, BalanceSheet, IncomeStatement, CashFlowStatement, Ownership, Executives, Peers, SupplyChain, Segments, Estimates, Splits, Dividends, DividendsByFy, InsiderTrades, EsgRating, ShortVolume, ShortInterestPositions, Regions, CountryInsiderTrades, Swot, Discover, Metrics, Upgrades, Overview, IncomeStatementQuarterly, CashFlowStatementQuarterly, FundamentalsQuarterly, Aaqs, SharesOutstanding, MarketCap, Candles, InsiderTradesDerivatives, InsiderTradesEu, ValuationHistory, Returns, Growth, Margins, DividendQuality, Kpi, Coverage, List, Search
Equity Extended client.EquityExtended Aaqs, OptionsChain, TechnicalSignals, BasicFinancials, EbitdaEstimates, SecFilings, EarningsCalendar, TechIndicators, PriceTargetHistory, Peers, ShortInterest, ShortVolume, IndexHistory, MarketNews, SymbolChanges, IsinChanges, FinancialsReported, AggregateSignals
ETF client.Etf Profile, Holdings, Sectors, Countries, Quotes, Description, List
Macro client.Macro Countries, Country, Indicator, FredSeries, FredObservations, EcbSeries, EcbObservations, ImfSeries, ImfObservations, WorldbankSeries, WorldbankObservations, EurostatSeries, EurostatObservations, Search, LatestFred, LatestEcb, CalendarProperties, Calendar, CountryRisk
Forex client.Forex List, Rates
Bonds client.Bonds Profile, Prices, YieldCurve, List, Ticks
Crypto client.Crypto List, Profile, Quotes
Crypto Extended client.CryptoExtended TopCoins, MarketOverview, Analysis, Derivatives, Onchain, Defi, DefiProtocols, DefiYields, DexVolumes, Stablecoins, FearGreedHistory, Candles, ChainTvl, DefiFees, StablecoinSupply, BridgeVolumes, FundingRates, OpenInterest, Intraday, SymbolMap
Market client.Market QuotesLatest, QuotesIntraday, Options, Analytics52Week, Indicators, Fx, QuotesExchanges, AnalyticsFxReturns, TopMovers, MarketStatus, QuotesBulk, AnalyticsRisk, AnalyticsCorrelation, Holidays
Alternative client.Alternative SuperinvestorsList, SuperinvestorsHoldings, SuperinvestorsTopHoldings, SuperinvestorsRecentActivity, CongressTrading, InvestmentThemes, FearAndGreed, Cot, GoogleTrends, WikipediaPageviews
Sentiment client.Sentiment InsiderSentiment, NewsSentiment, SocialSentiment, PriceMetrics, FundOwnership, InstitutionalOwnership, SectorMetrics
Research client.Research Recommendations, News, PressReleases
Calendar client.Calendar Ipo, Dividends, Earnings, EarningsBySymbol, EarningsSurprises
Screener client.Screener Screen, Universe, Search, Metadata
Mutual Fund client.MutualFund Profile, Holdings, Sectors, Countries
Commodity client.Commodity Profile, Quotes, List
Institutional client.Institutional Profile, Portfolio
Certificates client.Certificates Profile, List, Quotes
Earning Calls client.EarningCalls List, Transcript
Index client.Index Constituents
Fair Value client.FairValue ByIsin
AAQ client.Aaq ByIsin
News client.News Feed, List, ByName, ByIsin
Trends client.Trends TickerTrends
ICE-SWAP client.IceSwap Data

Error Handling

import "errors"

profile, err := client.Equity.Profile(ctx, "US0378331005")
if err != nil {
	var authErr *eulerpool.AuthenticationError
	var rateErr *eulerpool.RateLimitError

	if errors.As(err, &authErr) {
		fmt.Println("Invalid API key")
	} else if errors.As(err, &rateErr) {
		fmt.Printf("Rate limited. Retry after %ds\n", rateErr.RetryAfter)
	} else {
		fmt.Println("API error:", err)
	}
}

Requirements

  • Go >= 1.21
  • Zero external dependencies (stdlib only)

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Status  int    `json:"status"`
	Code    string `json:"code"`
	Message string `json:"message"`
}

APIError is the base error type for all Eulerpool API errors.

func (*APIError) Error

func (e *APIError) Error() string

type AaqService

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

func (*AaqService) ByIsin

func (s *AaqService) ByIsin(ctx context.Context, isin string) (json.RawMessage, error)

type AlternativeService

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

func (*AlternativeService) CongressTrading

func (s *AlternativeService) CongressTrading(ctx context.Context) (json.RawMessage, error)

func (*AlternativeService) Cot

func (s *AlternativeService) Cot(ctx context.Context, symbol string) (json.RawMessage, error)

func (*AlternativeService) FearAndGreed

func (s *AlternativeService) FearAndGreed(ctx context.Context) (json.RawMessage, error)

func (*AlternativeService) GoogleTrends

func (s *AlternativeService) GoogleTrends(ctx context.Context, ticker string) (json.RawMessage, error)

func (*AlternativeService) InvestmentThemes

func (s *AlternativeService) InvestmentThemes(ctx context.Context) (json.RawMessage, error)

func (*AlternativeService) SuperinvestorsHoldings

func (s *AlternativeService) SuperinvestorsHoldings(ctx context.Context, slug string) (json.RawMessage, error)

func (*AlternativeService) SuperinvestorsList

func (s *AlternativeService) SuperinvestorsList(ctx context.Context) (json.RawMessage, error)

func (*AlternativeService) SuperinvestorsRecentActivity

func (s *AlternativeService) SuperinvestorsRecentActivity(ctx context.Context) (json.RawMessage, error)

func (*AlternativeService) SuperinvestorsTopHoldings

func (s *AlternativeService) SuperinvestorsTopHoldings(ctx context.Context) (json.RawMessage, error)

func (*AlternativeService) WikipediaPageviews

func (s *AlternativeService) WikipediaPageviews(ctx context.Context, ticker string) (json.RawMessage, error)

type AuthenticationError

type AuthenticationError struct{ APIError }

type BadRequestError

type BadRequestError struct{ APIError }

type BondsService

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

func (*BondsService) List

func (s *BondsService) List(ctx context.Context) (json.RawMessage, error)

func (*BondsService) Prices

func (s *BondsService) Prices(ctx context.Context, isin string) (json.RawMessage, error)

func (*BondsService) Profile

func (s *BondsService) Profile(ctx context.Context, isin string) (json.RawMessage, error)

func (*BondsService) Ticks

func (s *BondsService) Ticks(ctx context.Context, identifier string) (json.RawMessage, error)

func (*BondsService) YieldCurve

func (s *BondsService) YieldCurve(ctx context.Context) (json.RawMessage, error)

type CalendarService

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

func (*CalendarService) Dividends

func (s *CalendarService) Dividends(ctx context.Context, year string) (json.RawMessage, error)

func (*CalendarService) Earnings

func (s *CalendarService) Earnings(ctx context.Context, date string) (json.RawMessage, error)

func (*CalendarService) EarningsBySymbol

func (s *CalendarService) EarningsBySymbol(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CalendarService) EarningsSurprises

func (s *CalendarService) EarningsSurprises(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CalendarService) Ipo

type CertificatesService

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

func (*CertificatesService) List

func (*CertificatesService) Profile

func (s *CertificatesService) Profile(ctx context.Context, isin string) (json.RawMessage, error)

func (*CertificatesService) Quotes

func (s *CertificatesService) Quotes(ctx context.Context, isin string) (json.RawMessage, error)

type Client

type Client struct {
	Equity         *EquityService
	EquityExtended *EquityExtendedService
	Etf            *EtfService
	Macro          *MacroService
	Forex          *ForexService
	Bonds          *BondsService
	Crypto         *CryptoService
	CryptoExtended *CryptoExtendedService
	Market         *MarketService
	Alternative    *AlternativeService
	Sentiment      *SentimentService
	Research       *ResearchService
	Calendar       *CalendarService
	Screener       *ScreenerService
	MutualFund     *MutualFundService
	Commodity      *CommodityService
	Institutional  *InstitutionalService
	Certificates   *CertificatesService
	EarningCalls   *EarningCallsService
	Index          *IndexService
	News           *NewsService
	Trends         *TrendsService
	IceSwap        *IceSwapService
	FairValue      *FairValueService
	Aaq            *AaqService
}

Client is the Eulerpool API client.

func NewClient

func NewClient(apiKey string, opts ...*ClientOptions) *Client

NewClient creates a new Eulerpool API client.

type ClientOptions

type ClientOptions struct {
	BaseURL       string
	UseAuthHeader bool
	MaxRetries    int
	Timeout       time.Duration
}

ClientOptions configures the Eulerpool API client.

type CommodityService

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

func (*CommodityService) List

func (*CommodityService) Profile

func (s *CommodityService) Profile(ctx context.Context, ticker string) (json.RawMessage, error)

func (*CommodityService) Quotes

func (s *CommodityService) Quotes(ctx context.Context, ticker string) (json.RawMessage, error)

type CryptoExtendedService

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

func (*CryptoExtendedService) Analysis

func (s *CryptoExtendedService) Analysis(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoExtendedService) BridgeVolumes

func (s *CryptoExtendedService) BridgeVolumes(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) Candles

func (s *CryptoExtendedService) Candles(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoExtendedService) ChainTvl

func (*CryptoExtendedService) Defi

func (*CryptoExtendedService) DefiFees

func (*CryptoExtendedService) DefiProtocols

func (s *CryptoExtendedService) DefiProtocols(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) DefiYields

func (s *CryptoExtendedService) DefiYields(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) Derivatives

func (s *CryptoExtendedService) Derivatives(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoExtendedService) DexVolumes

func (s *CryptoExtendedService) DexVolumes(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) FearGreedHistory

func (s *CryptoExtendedService) FearGreedHistory(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) FundingRates

func (s *CryptoExtendedService) FundingRates(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoExtendedService) Intraday

func (s *CryptoExtendedService) Intraday(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoExtendedService) MarketOverview

func (s *CryptoExtendedService) MarketOverview(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) Onchain

func (s *CryptoExtendedService) Onchain(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoExtendedService) OpenInterest

func (s *CryptoExtendedService) OpenInterest(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoExtendedService) StablecoinSupply

func (s *CryptoExtendedService) StablecoinSupply(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) Stablecoins

func (s *CryptoExtendedService) Stablecoins(ctx context.Context) (json.RawMessage, error)

func (*CryptoExtendedService) SymbolMap

func (*CryptoExtendedService) TopCoins

type CryptoService

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

func (*CryptoService) List

func (s *CryptoService) List(ctx context.Context, start, end int) (json.RawMessage, error)

func (*CryptoService) Profile

func (s *CryptoService) Profile(ctx context.Context, symbol string) (json.RawMessage, error)

func (*CryptoService) Quotes

func (s *CryptoService) Quotes(ctx context.Context, identifier string) (json.RawMessage, error)

type EarningCallsService

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

func (*EarningCallsService) List

func (s *EarningCallsService) List(ctx context.Context, ticker string) (json.RawMessage, error)

func (*EarningCallsService) Transcript

func (s *EarningCallsService) Transcript(ctx context.Context, id string) (json.RawMessage, error)

type EquityExtendedService

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

func (*EquityExtendedService) Aaqs

func (*EquityExtendedService) AggregateSignals

func (s *EquityExtendedService) AggregateSignals(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) BasicFinancials

func (s *EquityExtendedService) BasicFinancials(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) EarningsCalendar

func (s *EquityExtendedService) EarningsCalendar(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) EbitdaEstimates

func (s *EquityExtendedService) EbitdaEstimates(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) FinancialsReported

func (s *EquityExtendedService) FinancialsReported(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) IndexHistory

func (s *EquityExtendedService) IndexHistory(ctx context.Context, symbol string) (json.RawMessage, error)

func (*EquityExtendedService) IsinChanges

func (s *EquityExtendedService) IsinChanges(ctx context.Context) (json.RawMessage, error)

func (*EquityExtendedService) MarketNews

func (s *EquityExtendedService) MarketNews(ctx context.Context) (json.RawMessage, error)

func (*EquityExtendedService) OptionsChain

func (s *EquityExtendedService) OptionsChain(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) Peers

func (*EquityExtendedService) PriceTargetHistory

func (s *EquityExtendedService) PriceTargetHistory(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) SecFilings

func (s *EquityExtendedService) SecFilings(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) ShortInterest

func (s *EquityExtendedService) ShortInterest(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) ShortVolume

func (s *EquityExtendedService) ShortVolume(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) SymbolChanges

func (s *EquityExtendedService) SymbolChanges(ctx context.Context) (json.RawMessage, error)

func (*EquityExtendedService) TechIndicators

func (s *EquityExtendedService) TechIndicators(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityExtendedService) TechnicalSignals

func (s *EquityExtendedService) TechnicalSignals(ctx context.Context, isin string) (json.RawMessage, error)

type EquityService

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

func (*EquityService) Aaqs

func (s *EquityService) Aaqs(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) BalanceSheet

func (s *EquityService) BalanceSheet(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Candles

func (s *EquityService) Candles(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) CashFlowStatement

func (s *EquityService) CashFlowStatement(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) CashFlowStatementQuarterly

func (s *EquityService) CashFlowStatementQuarterly(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) CountryInsiderTrades

func (s *EquityService) CountryInsiderTrades(ctx context.Context, country string) (json.RawMessage, error)

func (*EquityService) Coverage

func (s *EquityService) Coverage(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Discover

func (s *EquityService) Discover(ctx context.Context) (json.RawMessage, error)

func (*EquityService) DividendQuality

func (s *EquityService) DividendQuality(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Dividends

func (s *EquityService) Dividends(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) DividendsByFy

func (s *EquityService) DividendsByFy(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) EsgRating

func (s *EquityService) EsgRating(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Estimates

func (s *EquityService) Estimates(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Executives

func (s *EquityService) Executives(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) FundamentalsQuarterly

func (s *EquityService) FundamentalsQuarterly(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Growth

func (s *EquityService) Growth(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) IncomeStatement

func (s *EquityService) IncomeStatement(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) IncomeStatementQuarterly

func (s *EquityService) IncomeStatementQuarterly(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) InsiderTrades

func (s *EquityService) InsiderTrades(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) InsiderTradesDerivatives

func (s *EquityService) InsiderTradesDerivatives(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) InsiderTradesEu

func (s *EquityService) InsiderTradesEu(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Kpi

func (s *EquityService) Kpi(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) List

func (*EquityService) Margins

func (s *EquityService) Margins(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) MarketCap

func (s *EquityService) MarketCap(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Metrics

func (s *EquityService) Metrics(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Overview

func (s *EquityService) Overview(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Ownership

func (s *EquityService) Ownership(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Peers

func (s *EquityService) Peers(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Profile

func (s *EquityService) Profile(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Quotes

func (s *EquityService) Quotes(ctx context.Context, identifier string) (json.RawMessage, error)

func (*EquityService) Regions

func (s *EquityService) Regions(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Returns

func (s *EquityService) Returns(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Search

func (s *EquityService) Search(ctx context.Context) (json.RawMessage, error)

func (*EquityService) Segments

func (s *EquityService) Segments(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) SharesOutstanding

func (s *EquityService) SharesOutstanding(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) ShortInterestPositions

func (s *EquityService) ShortInterestPositions(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) ShortVolume

func (s *EquityService) ShortVolume(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Splits

func (s *EquityService) Splits(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) SupplyChain

func (s *EquityService) SupplyChain(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Swot

func (s *EquityService) Swot(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) Upgrades

func (s *EquityService) Upgrades(ctx context.Context, isin string) (json.RawMessage, error)

func (*EquityService) ValuationHistory

func (s *EquityService) ValuationHistory(ctx context.Context, isin string) (json.RawMessage, error)

type EtfService

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

func (*EtfService) Countries

func (s *EtfService) Countries(ctx context.Context, isin string) (json.RawMessage, error)

func (*EtfService) Description

func (s *EtfService) Description(ctx context.Context, isin string) (json.RawMessage, error)

func (*EtfService) Holdings

func (s *EtfService) Holdings(ctx context.Context, isin string) (json.RawMessage, error)

func (*EtfService) List

func (s *EtfService) List(ctx context.Context, start, end int) (json.RawMessage, error)

func (*EtfService) Profile

func (s *EtfService) Profile(ctx context.Context, isin string) (json.RawMessage, error)

func (*EtfService) Quotes

func (s *EtfService) Quotes(ctx context.Context, isin string) (json.RawMessage, error)

func (*EtfService) Sectors

func (s *EtfService) Sectors(ctx context.Context, isin string) (json.RawMessage, error)

type FairValueService

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

func (*FairValueService) ByIsin

func (s *FairValueService) ByIsin(ctx context.Context, isin string) (json.RawMessage, error)

type ForexService

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

func (*ForexService) List

func (s *ForexService) List(ctx context.Context) (json.RawMessage, error)

func (*ForexService) Rates

func (s *ForexService) Rates(ctx context.Context, baseCurrency string) (json.RawMessage, error)

type IceSwapService

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

func (*IceSwapService) Data

func (s *IceSwapService) Data(ctx context.Context, code string) (json.RawMessage, error)

type IndexService

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

func (*IndexService) Constituents

func (s *IndexService) Constituents(ctx context.Context, id string) (json.RawMessage, error)

type InstitutionalService

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

func (*InstitutionalService) Portfolio

func (s *InstitutionalService) Portfolio(ctx context.Context, cik string) (json.RawMessage, error)

func (*InstitutionalService) Profile

type MacroService

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

func (*MacroService) Calendar

func (s *MacroService) Calendar(ctx context.Context) (json.RawMessage, error)

func (*MacroService) CalendarProperties

func (s *MacroService) CalendarProperties(ctx context.Context) (json.RawMessage, error)

func (*MacroService) Countries

func (s *MacroService) Countries(ctx context.Context) (json.RawMessage, error)

func (*MacroService) Country

func (s *MacroService) Country(ctx context.Context, country string) (json.RawMessage, error)

func (*MacroService) CountryRisk

func (s *MacroService) CountryRisk(ctx context.Context) (json.RawMessage, error)

func (*MacroService) EcbObservations

func (s *MacroService) EcbObservations(ctx context.Context, seriesKey string) (json.RawMessage, error)

func (*MacroService) EcbSeries

func (s *MacroService) EcbSeries(ctx context.Context) (json.RawMessage, error)

func (*MacroService) EurostatObservations

func (s *MacroService) EurostatObservations(ctx context.Context, seriesID string) (json.RawMessage, error)

func (*MacroService) EurostatSeries

func (s *MacroService) EurostatSeries(ctx context.Context) (json.RawMessage, error)

func (*MacroService) FredObservations

func (s *MacroService) FredObservations(ctx context.Context, seriesID string) (json.RawMessage, error)

func (*MacroService) FredSeries

func (s *MacroService) FredSeries(ctx context.Context) (json.RawMessage, error)

func (*MacroService) ImfObservations

func (s *MacroService) ImfObservations(ctx context.Context, seriesID string) (json.RawMessage, error)

func (*MacroService) ImfSeries

func (s *MacroService) ImfSeries(ctx context.Context) (json.RawMessage, error)

func (*MacroService) Indicator

func (s *MacroService) Indicator(ctx context.Context, country, slug string) (json.RawMessage, error)

func (*MacroService) LatestEcb

func (s *MacroService) LatestEcb(ctx context.Context) (json.RawMessage, error)

func (*MacroService) LatestFred

func (s *MacroService) LatestFred(ctx context.Context) (json.RawMessage, error)

func (*MacroService) Search

func (s *MacroService) Search(ctx context.Context, params map[string]string) (json.RawMessage, error)

func (*MacroService) WorldbankObservations

func (s *MacroService) WorldbankObservations(ctx context.Context, seriesID string) (json.RawMessage, error)

func (*MacroService) WorldbankSeries

func (s *MacroService) WorldbankSeries(ctx context.Context) (json.RawMessage, error)

type MarketService

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

func (*MarketService) Analytics52Week

func (s *MarketService) Analytics52Week(ctx context.Context, ticker string) (json.RawMessage, error)

func (*MarketService) AnalyticsCorrelation

func (s *MarketService) AnalyticsCorrelation(ctx context.Context, params map[string]string) (json.RawMessage, error)

func (*MarketService) AnalyticsFxReturns

func (s *MarketService) AnalyticsFxReturns(ctx context.Context, isin string) (json.RawMessage, error)

func (*MarketService) AnalyticsRisk

func (s *MarketService) AnalyticsRisk(ctx context.Context, identifier string) (json.RawMessage, error)

func (*MarketService) Fx

func (s *MarketService) Fx(ctx context.Context, from, to string) (json.RawMessage, error)

func (*MarketService) Holidays

func (s *MarketService) Holidays(ctx context.Context) (json.RawMessage, error)

func (*MarketService) Indicators

func (s *MarketService) Indicators(ctx context.Context) (json.RawMessage, error)

func (*MarketService) MarketStatus

func (s *MarketService) MarketStatus(ctx context.Context) (json.RawMessage, error)

func (*MarketService) Options

func (s *MarketService) Options(ctx context.Context, ticker string) (json.RawMessage, error)

func (*MarketService) QuotesBulk

func (s *MarketService) QuotesBulk(ctx context.Context, isins []string) (json.RawMessage, error)

func (*MarketService) QuotesExchanges

func (s *MarketService) QuotesExchanges(ctx context.Context, isin string) (json.RawMessage, error)

func (*MarketService) QuotesIntraday

func (s *MarketService) QuotesIntraday(ctx context.Context, isin string) (json.RawMessage, error)

func (*MarketService) QuotesLatest

func (s *MarketService) QuotesLatest(ctx context.Context, stocks ...string) (json.RawMessage, error)

QuotesLatest returns the latest quotes. Pass ticker symbols to limit the response, e.g. QuotesLatest(ctx, "AAPL", "MSFT").

func (*MarketService) TopMovers

func (s *MarketService) TopMovers(ctx context.Context) (json.RawMessage, error)

type MutualFundService

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

func (*MutualFundService) Countries

func (s *MutualFundService) Countries(ctx context.Context, symbol string) (json.RawMessage, error)

func (*MutualFundService) Holdings

func (s *MutualFundService) Holdings(ctx context.Context, symbol string) (json.RawMessage, error)

func (*MutualFundService) Profile

func (s *MutualFundService) Profile(ctx context.Context, isin string) (json.RawMessage, error)

func (*MutualFundService) Sectors

func (s *MutualFundService) Sectors(ctx context.Context, symbol string) (json.RawMessage, error)

type NewsService

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

func (*NewsService) ByIsin

func (s *NewsService) ByIsin(ctx context.Context, identifier string) (json.RawMessage, error)

func (*NewsService) ByName

func (s *NewsService) ByName(ctx context.Context, name string) (json.RawMessage, error)

func (*NewsService) Feed

func (s *NewsService) Feed(ctx context.Context, params map[string]string) (json.RawMessage, error)

func (*NewsService) List

func (s *NewsService) List(ctx context.Context, start, end int) (json.RawMessage, error)

type NotFoundError

type NotFoundError struct{ APIError }

type RateLimitError

type RateLimitError struct {
	APIError
	RetryAfter int
}

type ResearchService

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

func (*ResearchService) News

func (s *ResearchService) News(ctx context.Context, ticker string) (json.RawMessage, error)

func (*ResearchService) PressReleases

func (s *ResearchService) PressReleases(ctx context.Context, ticker string) (json.RawMessage, error)

func (*ResearchService) Recommendations

func (s *ResearchService) Recommendations(ctx context.Context, ticker string) (json.RawMessage, error)

type ScreenerService

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

func (*ScreenerService) Metadata

func (s *ScreenerService) Metadata(ctx context.Context) (json.RawMessage, error)

func (*ScreenerService) Screen

func (s *ScreenerService) Screen(ctx context.Context, body interface{}) (json.RawMessage, error)

func (*ScreenerService) Search

func (s *ScreenerService) Search(ctx context.Context, query string) (json.RawMessage, error)

func (*ScreenerService) Universe

func (s *ScreenerService) Universe(ctx context.Context) (json.RawMessage, error)

type SentimentService

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

func (*SentimentService) FundOwnership

func (s *SentimentService) FundOwnership(ctx context.Context, isin string) (json.RawMessage, error)

func (*SentimentService) InsiderSentiment

func (s *SentimentService) InsiderSentiment(ctx context.Context, isin string) (json.RawMessage, error)

func (*SentimentService) InstitutionalOwnership

func (s *SentimentService) InstitutionalOwnership(ctx context.Context, isin string) (json.RawMessage, error)

func (*SentimentService) NewsSentiment

func (s *SentimentService) NewsSentiment(ctx context.Context, isin string) (json.RawMessage, error)

func (*SentimentService) PriceMetrics

func (s *SentimentService) PriceMetrics(ctx context.Context, isin string) (json.RawMessage, error)

func (*SentimentService) SectorMetrics

func (s *SentimentService) SectorMetrics(ctx context.Context) (json.RawMessage, error)

func (*SentimentService) SocialSentiment

func (s *SentimentService) SocialSentiment(ctx context.Context, isin string) (json.RawMessage, error)

type ServerError

type ServerError struct{ APIError }

type TrendsService

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

func (*TrendsService) TickerTrends

func (s *TrendsService) TickerTrends(ctx context.Context, symbol string) (json.RawMessage, error)

Jump to

Keyboard shortcuts

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