Skip to content

Commit

Permalink
fix: adjust option historical data client
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio committed Feb 6, 2024
1 parent 857293d commit b7b6168
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 41 deletions.
6 changes: 2 additions & 4 deletions alpaca/data/historical/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
format_snapshot_data,
parse_obj_as_symbol_dict,
)
from alpaca.data.models.quotes import Quote, QuoteSet
from alpaca.data.models.quotes import Quote
from alpaca.data.models.snapshots import Snapshot
from alpaca.data.models.trades import Trade, TradeSet
from alpaca.data.models.trades import Trade
from alpaca.data.requests import (
OptionChainRequest,
OptionLatestQuoteRequest,
OptionLatestTradeRequest,
OptionQuotesRequest,
OptionSnapshotRequest,
OptionTradesRequest,
)


Expand Down
34 changes: 0 additions & 34 deletions alpaca/data/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,6 @@ class StockQuotesRequest(BaseTimeseriesDataRequest):
feed: Optional[DataFeed] = None


class OptionQuotesRequest(BaseTimeseriesDataRequest):
"""
This request class is used to submit a request for option quote data.
See BaseTimeseriesDataRequest for more information on available parameters.
Attributes:
symbol_or_symbols (Union[str, List[str]]): The option identifier or list of option identifiers.
start (Optional[datetime]): The beginning of the time interval for desired data. Timezone naive inputs assumed to be in UTC.
end (Optional[datetime]): The end of the time interval for desired data. Defaults to now. Timezone naive inputs assumed to be in UTC.
limit (Optional[int]): Upper limit of number of data points to return. Defaults to None.
sort (Optional[Sort]): The chronological order of response based on the timestamp. Defaults to ASC.
"""

pass


# ############################## Trades ################################# #


Expand Down Expand Up @@ -188,23 +171,6 @@ class CryptoTradesRequest(BaseTimeseriesDataRequest):
pass


class OptionTradesRequest(BaseTimeseriesDataRequest):
"""
This request class is used to submit a request for option trade data.
See BaseTimeseriesDataRequest for more information on available parameters.
Attributes:
symbol_or_symbols (Union[str, List[str]]): The option identifier or list of option identifiers.
start (Optional[datetime]): The beginning of the time interval for desired data. Timezone naive inputs assumed to be in UTC.
end (Optional[datetime]): The end of the time interval for desired data. Defaults to now. Timezone naive inputs assumed to be in UTC.
limit (Optional[int]): Upper limit of number of data points to return. Defaults to None.
sort (Optional[Sort]): The chronological order of response based on the timestamp. Defaults to ASC.
"""

pass


# ############################## Latest Endpoints ################################# #


Expand Down
3 changes: 0 additions & 3 deletions tests/data/test_historical_option_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
from alpaca.data import Quote, Snapshot, Trade
from alpaca.data.enums import Exchange
from alpaca.data.historical.option import OptionHistoricalDataClient
from alpaca.data.models import QuoteSet, TradeSet
from alpaca.data.requests import (
OptionLatestQuoteRequest,
OptionLatestTradeRequest,
OptionQuotesRequest,
OptionSnapshotRequest,
OptionTradesRequest,
)


Expand Down

0 comments on commit b7b6168

Please sign in to comment.