# Functions

DefaultLogger returns a Logger that uses the standard go log package to print leveled logs to the standard error.
ErrorOnlyLogger returns a Logger that only logs errors to the standard error.
NewCryptoClient returns a new CryptoClient that will connect to the crypto feed and whose default configurations are modified by opts.
NewNewsClient returns a new NewsClient that will connect the news stream.
NewOptionClient returns a new OptionClient that will connect to the option feed and whose default configurations are modified by opts.
NewStocksClient returns a new StocksClient that will connect to feed data feed and whose default configurations are modified by opts.
WithBars configures initial bar symbols to subscribe to and the handler.
WithBaseURL configures the base URL.
WithBufferFillCallback runs the callback function whenever the buffer is full and msg cannot be delivered.
WithBufferSize sets the size for the buffer that is used for messages received from the server.
WithCancelErrors configures initial trade cancel errors handler.
WithConnectCallback runs the callback function after the streaming connection is setup.
WithCorrections configures initial trade corrections handler.
WithCredentials configures the key and secret to use.
WithCryptoBars configures initial bar symbols to subscribe to and the handler.
WithCryptoDailyBars configures initial daily bar symbols to subscribe to and the handler.
WithCryptoOrderbooks configures initial orderbook symbols to subscribe to and the handler.
WithCryptoPerpPricing configures initial pricing symbols to subscribe to and the handler.
WithCryptoQuotes configures initial quote symbols to subscribe to and the handler.
WithCryptoTrades configures initial trade symbols to subscribe to and the handler.
WithCryptoUpdatedBars configures initial updated bar symbols to subscribe to and the handler.
WithDailyBars configures initial daily bar symbols to subscribe to and the handler.
WithDisconnectCallback runs the callback function after the streaming connection disconnects.
WithImbalances configures initial imbalance handler.
WithLogger configures the logger.
WithLULDs configures initial LULD symbols to subscribe to and the handler.
WithNew configures initial symbols to subscribe to and the handler.
WithOptionQuotes configures initial quote symbols to subscribe to and the handler.
WithOptionTrades configures initial trade symbols to subscribe to and the handler.
WithProcessors configures how many goroutines should process incoming messages.
WithQuotes configures initial quote symbols to subscribe to and the handler.
WithReconnectSettings configures how many consecutive connection errors should be accepted and the delay (that is multiplied by the number of consecutive errors) between retries.
WithStatuses configures initial trading status symbols to subscribe to and the handler.
WithTrades configures initial trade symbols to subscribe to and the handler.
WithUpdatedBars configures initial updated bar symbols to subscribe to and the handler.

# Variables

ErrBadAuthResponse is returned when the client could not successfully authenticate.
ErrConnectCalledMultipleTimes is returned when Connect has been called multiple times on a single client.
ErrConnectionLimitExceeded is returned when the client has exceeded their connection limit.
ErrInsufficientScope is returned when the token used by the user doesn't have proper scopes for data stream.
ErrInsufficientSubscription is returned when the user does not have proper subscription for the requested feed (e.g.
ErrInvalidCredentials is returned when invalid credentials have been sent by the user.
ErrNoConnected is returned when the client did not receive the welcome message from the server.
ErrSlowClient is returned when the server has detected a slow client.
ErrSubResponse is returned when the client's subscription request was not acknowledged.
ErrSubscriptionChangeAfterTerminated is returned when client attempts to change subscriptions after the client has been terminated.
ErrSubscriptionChangeAlreadyInProgress is returned when a subscription change is called concurrently with another.
ErrSubscriptionChangeBeforeConnect is returned when the client attempts to change subscriptions before calling Connect.
ErrSubscriptionChangeInterrupted is returned when a subscription change was in progress when the client has terminated.
ErrSubscriptionChangeInvalidForFeed is returned when a subscription change is invalid for the feed.
ErrSubscriptionChangeTimeout is returned when the server does not return a proper subscription response after a subscription change request.
ErrSymbolLimitExceeded is returned when the client has subscribed to too many symbols.

# Structs

Bar is an aggregate of trades.
No description provided by the author
CryptoClient is a client that connects to an Alpaca stream server and handles communication both ways.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Imbalance is an order imbalance message during LULD halts for a security.
LULD is a Limit Up Limit Down message.
No description provided by the author
No description provided by the author
OptionClient is a client that connects to an Alpaca stream server and handles communication both ways.
OptionQuote is an option quote from the market.
OptionTrade is an option trade that happened on the market.
Quote is a stock quote from the market.
StocksClient is a client that connects to the Alpaca stream server and handles communication both ways.
Trade is a stock trade that happened on the market.
No description provided by the author
No description provided by the author
TradingStatus is a halt or resume status for a security.

# Interfaces

CryptoOption is a configuration option for the CryptoClient.
Logger wraps methods for leveled, formatted logging.
No description provided by the author
Option is a configuration option that can be used for both StockClient and CryptoClient.
No description provided by the author
StockOption is a configuration option for the StockClient.