Documentation Index
Fetch the complete documentation index at: https://finance.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Chart API provides historical OHLCV data, real-time quotes, and charting configuration.
Methods
GetHistoricalBars(params *HistoricalBarsParams)
bars, err := client.Chart.GetHistoricalBars(&aries.HistoricalBarsParams{
Symbol: "AAPL",
FromDate: "2025-01-01",
ToDate: "2025-01-15",
Resolution: "1D",
})
if err != nil {
log.Fatal(err)
}
for _, bar := range bars {
fmt.Printf("%s: O:%.2f H:%.2f L:%.2f C:%.2f V:%d\n",
bar.Timestamp, bar.Open, bar.High, bar.Low, bar.Close, bar.Volume)
}
GetQuotes(symbols []string)
quotes, err := client.Chart.GetQuotes([]string{"AAPL", "GOOGL"})
GetSymbolInfo(symbol string)
info, err := client.Chart.GetSymbolInfo("AAPL")
GetConfig()
config, err := client.Chart.GetConfig()
GetServerTime()
timestamp, err := client.Chart.GetServerTime()