This module builds a MarketStore background worker which receives current
price data of US stocks from Alpaca's streaming market data API.
It runs as a goroutine behind the MarketStore process and keeps writing to the disk.
The module uses the websocket streaming interface (to receive real-time updates).
Configuration
alpaca.so comes with the server by default, so to start using it simply configure it
in the MarketStore configuration file.
Options
Name
Type
Default
Description
api_key
string
none
Your alpaca api key id
api_secret
string
none
The secret corresponding to your api_key
ws_server
string
wss://data.alpaca.markets/stream
The websocket server to connect to
ws_worker_count
int
10
The number of workers to use for WS message processing