-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the market data streams (#473)
* Update the market data streams * address review comments
- Loading branch information
Showing
29 changed files
with
950 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# The default "help" goal nicely prints all the available goals based on the funny looking ## comments. | ||
# Source: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | ||
.DEFAULT_GOAL := help | ||
.PHONY: help | ||
help: ## Display this help | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: install | ||
install: ## Install the SDK and its dependencies using poetry | ||
poetry install | ||
|
||
.PHONY: lint | ||
lint: ## Run the linters | ||
poetry run black --check alpaca/ tests/ | ||
|
||
.PHONY: generate | ||
generate: ## Generate the documentation | ||
./tools/scripts/generate-docs.sh | ||
|
||
.PHONY: test | ||
test: ## Run the unit tests | ||
poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
from alpaca.data.historical.stock import StockHistoricalDataClient | ||
from alpaca.data.historical.crypto import CryptoHistoricalDataClient | ||
from alpaca.data.historical.news import NewsClient | ||
from alpaca.data.historical.option import OptionHistoricalDataClient | ||
from alpaca.data.historical.screener import ScreenerClient | ||
from alpaca.data.historical.stock import StockHistoricalDataClient | ||
|
||
__all__ = [ | ||
"StockHistoricalDataClient", | ||
"CryptoHistoricalDataClient", | ||
"StockHistoricalDataClient", | ||
"NewsClient", | ||
"OptionHistoricalDataClient", | ||
"ScreenerClient", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
from alpaca.data.live.stock import StockDataStream | ||
from alpaca.data.live.crypto import CryptoDataStream | ||
from alpaca.data.live.news import NewsDataStream | ||
from alpaca.data.live.option import OptionDataStream | ||
from alpaca.data.live.stock import StockDataStream | ||
|
||
__all__ = [ | ||
"StockDataStream", | ||
"CryptoDataStream", | ||
"NewsDataStream", | ||
"OptionDataStream", | ||
"StockDataStream", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.