package
1.2.0
Repository: https://github.com/marketdataapp/sdk-go.git
Documentation: pkg.go.dev

# Functions

CombineFundCandles merges two FundCandlesResponse structs into a single one.
CombineStockCandles merges two StockCandlesResponse structs into a single one.
CombineTickerResponses merges multiple TickersResponse instances into a single map, facilitating the aggregation of ticker data from various sources.
MapToTickersResponse aggregates a collection of Ticker structs, indexed by their ticker symbols, into a single TickersResponse struct.
SaveToCSV serializes the ticker data from a map into a CSV file.

# Structs

BulkStockCandlesResponse encapsulates the data structure for the response received from the bulk stock candles endpoint.
Candle represents a single candle in a stock candlestick chart, encapsulating the time, open, high, low, close prices, volume, and optionally the symbol, VWAP, and number of trades.
FundCandlesResponse encapsulates the data structure for the JSON response of mutual fund candles data.
IndexQuote represents a single quote for an index, encapsulating details such as the symbol, last traded price, price changes, 52-week high and low prices, volume, and the timestamp of the last update.
IndexQuotesResponse encapsulates the data for index quotes, including symbols, last prices, price changes, percentage changes, 52-week highs and lows, and update timestamps.
IndicesCandlesResponse represents the response structure for indices candles data.
MarketStatusReport encapsulates the operational status of a market on a specific date.
MarketStatusResponse encapsulates the response data for market status queries, including dates and optionally, the corresponding market statuses.
OptionLookupResponse encapsulates the response data for an option lookup request, primarily containing the option's symbol.
OptionQuote represents a single option quote with detailed information such as the symbol, underlying asset, expiration time, and pricing information.
OptionQuotesResponse represents the JSON structure of the response received for option quotes.
OptionsExpirationsResponse encapsulates the expiration dates of options and the last update timestamp.
OptionStrikes encapsulates the expiration date and available strike prices for an option contract.
OptionStrikesResponse encapsulates the response structure for a request to retrieve option strikes, including the last update timestamp and a map of strikes organized by expiration date.
StockCandlesResponse encapsulates the data structure for the JSON response of stock candles data.
StockEarningsReport represents a single earnings report for a stock, encapsulating details such as the stock symbol, fiscal year, fiscal quarter, earnings date, report date and time, currency used in the report, reported EPS, estimated EPS, surprise EPS, surprise EPS percentage, and the last update time.
StockEarningsResponse encapsulates the data received as a response to a stock earnings data request.
StockNews represents a single news article related to a stock, encapsulating details such as the stock symbol, headline, content, source, and publication date.
StockNewsResponse encapsulates the data structure for a response containing news articles related to stock symbols.
StockQuote represents a single stock quote, encapsulating various details such as prices, volumes, and timestamps.
StockQuotesResponse encapsulates the data structure for responses received from stock quote requests.
Ticker represents the detailed information of a stock ticker, including its symbol, name, type, currency, exchange, FIGI codes, CIK number, and the last update time.
TickersResponse encapsulates the data structure returned by the /v2/stocks/tickers API endpoint.

# Type aliases

ByClose implements sort.Interface for []Candle based on the Close field.
ByDate implements sort.Interface for []Candle based on the Date field.
ByHigh implements sort.Interface for []Candle based on the High field.
ByLow implements sort.Interface for []Candle based on the Low field.
ByN implements sort.Interface for []Candle based on the N field.
ByOpen implements sort.Interface for []Candle based on the Open field.
BySymbol implements sort.Interface for []Candle based on the Symbol field.
ByVolume implements sort.Interface for []Candle based on the Volume field.
ByVWAP implements sort.Interface for []Candle based on the VWAP field.