diff --git a/openbb_terminal/stocks/options/op_helpers.py b/openbb_terminal/stocks/options/op_helpers.py index 453c56c880e..2af745efcd0 100644 --- a/openbb_terminal/stocks/options/op_helpers.py +++ b/openbb_terminal/stocks/options/op_helpers.py @@ -129,6 +129,13 @@ opt_chain_cols = { } +# pylint: disable=R0903 +class Chain: + def __init__(self, df: pd.DataFrame): + self.calls = df[df["option_type"] == "call"] + self.puts = df[df["option_type"] == "put"] + + class Option: def __init__( self, diff --git a/openbb_terminal/stocks/options/options_controller.py b/openbb_terminal/stocks/options/options_controller.py index 7c1323a2c35..57df97740e0 100644 --- a/openbb_terminal/stocks/options/options_controller.py +++ b/openbb_terminal/stocks/options/options_controller.py @@ -5,7 +5,7 @@ import argparse import logging import os from datetime import datetime, timedelta -from typing import List +from typing import List, Any import pandas as pd from prompt_toolkit.completion import NestedCompleter @@ -33,6 +33,7 @@ from openbb_terminal.stocks.options import ( tradier_view, yfinance_model, yfinance_view, + op_helpers, ) from openbb_terminal.stocks.options.pricing import pricing_controller @@ -115,7 +116,9 @@ class OptionsController(BaseController): self.ticker = ticker self.prices = pd.DataFrame(columns=["Price", "Chance"]) self.selected_date = "" - self.chain = None + self.chain: Any = None + # Keeps track of initial source of load so we can use correct commands later + self.source = "" if ticker: if TRADIER_TOKEN == "REPLACE_ME": # nosec @@ -534,8 +537,10 @@ class OptionsController(BaseController): self.update_runtime_choices() if ns_parser.source == "yf": + self.source = "yf" self.expiry_dates = yfinance_model.option_expirations(self.ticker) else: + self.source = "tradier" self.expiry_dates = tradier_model.option_expirations(self.ticker) console.print("") @@ -596,9 +601,15 @@ class OptionsController(BaseController): self.update_runtime_choices() if self.selected_date: - self.chain = yfinance_model.get_option_chain( - self.ticker, self.selected_date - ) + if self.source == "yf": + self.chain = yfinance_model.get_option_chain( + self.ticker, self.selected_date + ) + else: + df = tradier_model.get_option_chains( + self.ticker, self.selected_date + ) + self.chain = op_helpers.Chain(df) self.update_runtime_choices() else: console.print("Please load a ticker using `load `.\n") @@ -743,7 +754,7 @@ class OptionsController(BaseController): if ns_parser: if self.ticker: if self.selected_date: - if ns_parser.source == "tradier": + if ns_parser.source == "tradier" or self.source == "tradier": if TRADIER_TOKEN != "REPLACE_ME": # nosec tradier_view.display_chains( ticker=self.ticker, @@ -757,7 +768,7 @@ class OptionsController(BaseController): ) else: console.print("TRADIER TOKEN not supplied. \n") - if ns_parser.source == "yf": + elif ns_parser.source == "yf": yfinance_view.display_chains( ticker=self.ticker, expiry=self.selected_date, diff --git a/openbb_terminal/stocks/options/yfinance_model.py b/openbb_terminal/stocks/options/yfinance_model.py index f409ff1766c..925e789b652 100644 --- a/openbb_terminal/stocks/options/yfinance_model.py +++ b/openbb_terminal/stocks/options/yfinance_model.py @@ -133,7 +133,7 @@ def option_expirations(ticker: str): @log_start_end(log=logger) -def get_option_chain(ticker: str, expiration: str) -> pd.DataFrame: +def get_option_chain(ticker: str, expiration: str): """Gets option chain from yf for given ticker and expiration Parameters diff --git a/openbb_terminal/stocks/options/yfinance_view.py b/openbb_terminal/stocks/options/yfinance_view.py index a65d5fc94f8..76b4c4467da 100644 --- a/openbb_terminal/stocks/options/yfinance_view.py +++ b/openbb_terminal/stocks/options/yfinance_view.py @@ -47,6 +47,20 @@ logger = logging.getLogger(__name__) def header_fmt(header: str) -> str: + """ + Formats strings to appear as titles + + Parameters + ---------- + header: str + The string to be formatted + + Returns + ---------- + new_header: str + The clean string to use as a header + """ + words = re.findall("[A-Z][^A-Z]*", header) if words == []: words = [header] diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_binom-other_args23-yfinance_view.show_binom-called_args23-called_kwargs23].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_binom-other_args23-yfinance_view.show_binom-called_args23-called_kwargs23].yaml new file mode 100644 index 00000000000..fae6afcd909 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_binom-other_args23-yfinance_view.show_binom-called_args23-called_kwargs23].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:23 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '197' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '3' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_calc-other_args0-calculator_view.view_calculator-called_args0-called_kwargs0].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_calc-other_args0-calculator_view.view_calculator-called_args0-called_kwargs0].yaml new file mode 100644 index 00000000000..8258071362e --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_calc-other_args0-calculator_view.view_calculator-called_args0-called_kwargs0].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:15 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_calc-other_args1-calculator_view.view_calculator-called_args1-called_kwargs1].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_calc-other_args1-calculator_view.view_calculator-called_args1-called_kwargs1].yaml new file mode 100644 index 00000000000..8258071362e --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_calc-other_args1-calculator_view.view_calculator-called_args1-called_kwargs1].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:15 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_chains-other_args13-tradier_view.display_chains-called_args13-called_kwargs13].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_chains-other_args13-tradier_view.display_chains-called_args13-called_kwargs13].yaml new file mode 100644 index 00000000000..5d6f4d8094a --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_chains-other_args13-tradier_view.display_chains-called_args13-called_kwargs13].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:19 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '193' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '7' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_chains-other_args14-yfinance_view.display_chains-called_args14-called_kwargs14].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_chains-other_args14-yfinance_view.display_chains-called_args14-called_kwargs14].yaml new file mode 100644 index 00000000000..faf7a118e91 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_chains-other_args14-yfinance_view.display_chains-called_args14-called_kwargs14].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:19 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '198' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '2' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args6-syncretism_view.view_historical_greeks-called_args6-called_kwargs6].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args6-syncretism_view.view_historical_greeks-called_args6-called_kwargs6].yaml new file mode 100644 index 00000000000..ca3318678c4 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args6-syncretism_view.view_historical_greeks-called_args6-called_kwargs6].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:17 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '197' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '3' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args7-syncretism_view.view_historical_greeks-called_args7-called_kwargs7].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args7-syncretism_view.view_historical_greeks-called_args7-called_kwargs7].yaml new file mode 100644 index 00000000000..15a46318f22 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args7-syncretism_view.view_historical_greeks-called_args7-called_kwargs7].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:17 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '196' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '4' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args8--called_args8-called_kwargs8].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args8--called_args8-called_kwargs8].yaml new file mode 100644 index 00000000000..22e7187bcb0 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_grhist-other_args8--called_args8-called_kwargs8].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:18 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '195' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '5' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args10-chartexchange_view.display_raw-called_args10-called_kwargs10].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args10-chartexchange_view.display_raw-called_args10-called_kwargs10].yaml new file mode 100644 index 00000000000..c9fafa8823a --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args10-chartexchange_view.display_raw-called_args10-called_kwargs10].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:18 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '197' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '3' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args11-tradier_view.display_historical-called_args11-called_kwargs11].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args11-tradier_view.display_historical-called_args11-called_kwargs11].yaml new file mode 100644 index 00000000000..faf7a118e91 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args11-tradier_view.display_historical-called_args11-called_kwargs11].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:19 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '198' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '2' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args12--called_args12-called_kwargs12].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args12--called_args12-called_kwargs12].yaml new file mode 100644 index 00000000000..a2a98d59155 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_hist-other_args12--called_args12-called_kwargs12].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:19 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_info-other_args5-barchart_view.print_options_data-called_args5-called_kwargs5].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_info-other_args5-barchart_view.print_options_data-called_args5-called_kwargs5].yaml new file mode 100644 index 00000000000..b9b5ed00e4c --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_info-other_args5-barchart_view.print_options_data-called_args5-called_kwargs5].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:17 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '198' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '2' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_load-other_args9--called_args9-called_kwargs9].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_load-other_args9--called_args9-called_kwargs9].yaml new file mode 100644 index 00000000000..25f859d025e --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_load-other_args9--called_args9-called_kwargs9].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:18 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '194' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '6' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_oi-other_args19-yfinance_view.plot_oi-called_args19-called_kwargs19].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_oi-other_args19-yfinance_view.plot_oi-called_args19-called_kwargs19].yaml new file mode 100644 index 00000000000..4b3de668d5d --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_oi-other_args19-yfinance_view.plot_oi-called_args19-called_kwargs19].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:21 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '195' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '5' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_oi-other_args20-tradier_view.plot_oi-called_args20-called_kwargs20].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_oi-other_args20-tradier_view.plot_oi-called_args20-called_kwargs20].yaml new file mode 100644 index 00000000000..0cc5918c772 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_oi-other_args20-tradier_view.plot_oi-called_args20-called_kwargs20].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:22 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '197' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '3' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_parity-other_args22-yfinance_view.show_parity-called_args22-called_kwargs22].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_parity-other_args22-yfinance_view.show_parity-called_args22-called_kwargs22].yaml new file mode 100644 index 00000000000..01fdf60158a --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_parity-other_args22-yfinance_view.show_parity-called_args22-called_kwargs22].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:22 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '196' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '4' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_pcr-other_args4-alphaquery_view.display_put_call_ratio-called_args4-called_kwargs4].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_pcr-other_args4-alphaquery_view.display_put_call_ratio-called_args4-called_kwargs4].yaml new file mode 100644 index 00000000000..3829f14c9f2 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_pcr-other_args4-alphaquery_view.display_put_call_ratio-called_args4-called_kwargs4].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:16 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '198' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '2' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_plot-other_args21-yfinance_view.plot_plot-called_args21-called_kwargs21].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_plot-other_args21-yfinance_view.plot_plot-called_args21-called_kwargs21].yaml new file mode 100644 index 00000000000..ca1928f6952 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_plot-other_args21-yfinance_view.plot_plot-called_args21-called_kwargs21].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:22 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '194' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '6' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_pricing-other_args24-pricing_controller.PricingController-called_args24-called_kwargs24].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_pricing-other_args24-pricing_controller.PricingController-called_args24-called_kwargs24].yaml new file mode 100644 index 00000000000..b19cc187f32 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_pricing-other_args24-pricing_controller.PricingController-called_args24-called_kwargs24].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:23 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '193' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '7' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_screen-other_args25-screener_controller.ScreenerController-called_args25-called_kwargs25].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_screen-other_args25-screener_controller.ScreenerController-called_args25-called_kwargs25].yaml new file mode 100644 index 00000000000..e06a5080a42 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_screen-other_args25-screener_controller.ScreenerController-called_args25-called_kwargs25].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:23 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_unu-other_args2--called_args2-called_kwargs2].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_unu-other_args2--called_args2-called_kwargs2].yaml new file mode 100644 index 00000000000..f007765f782 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_unu-other_args2--called_args2-called_kwargs2].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:16 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_unu-other_args3-fdscanner_view.display_options-called_args3-called_kwargs3].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_unu-other_args3-fdscanner_view.display_options-called_args3-called_kwargs3].yaml new file mode 100644 index 00000000000..f007765f782 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_unu-other_args3-fdscanner_view.display_options-called_args3-called_kwargs3].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:16 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_voi-other_args17-yfinance_view.plot_volume_open_interest-called_args17-called_kwargs17].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_voi-other_args17-yfinance_view.plot_volume_open_interest-called_args17-called_kwargs17].yaml new file mode 100644 index 00000000000..3ec0440ceaf --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_voi-other_args17-yfinance_view.plot_volume_open_interest-called_args17-called_kwargs17].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:21 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '196' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '4' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_voi-other_args18-tradier_view.plot_volume_open_interest-called_args18-called_kwargs18].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_voi-other_args18-tradier_view.plot_volume_open_interest-called_args18-called_kwargs18].yaml new file mode 100644 index 00000000000..3ec0440ceaf --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_voi-other_args18-tradier_view.plot_volume_open_interest-called_args18-called_kwargs18].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:21 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '196' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '4' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_vol-other_args15-yfinance_view.plot_vol-called_args15-called_kwargs15].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_vol-other_args15-yfinance_view.plot_vol-called_args15-called_kwargs15].yaml new file mode 100644 index 00000000000..98fc5d2f9fc --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_vol-other_args15-yfinance_view.plot_vol-called_args15-called_kwargs15].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:20 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '198' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '2' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_vol-other_args16-tradier_view.plot_vol-called_args16-called_kwargs16].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_vol-other_args16-tradier_view.plot_vol-called_args16-called_kwargs16].yaml new file mode 100644 index 00000000000..6b6e73e87ec --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func[call_vol-other_args16-tradier_view.plot_vol-called_args16-called_kwargs16].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:29:20 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '197' + X-Ratelimit-Expiry: + - '1660181400000' + X-Ratelimit-Used: + - '3' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_exit-queue0-expected_queue0].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_exit-queue0-expected_queue0].yaml new file mode 100644 index 00000000000..ea45a94fd16 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_exit-queue0-expected_queue0].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:30 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_exit-queue1-expected_queue1].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_exit-queue1-expected_queue1].yaml new file mode 100644 index 00000000000..b493e03466d --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_exit-queue1-expected_queue1].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:30 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '198' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '2' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_help-queue3-expected_queue3].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_help-queue3-expected_queue3].yaml new file mode 100644 index 00000000000..3e1f182a7fa --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_help-queue3-expected_queue3].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:31 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '196' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '4' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_home-queue2-expected_queue2].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_home-queue2-expected_queue2].yaml new file mode 100644 index 00000000000..a8e030d4f8d --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_home-queue2-expected_queue2].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:30 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '197' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '3' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_quit-queue4-expected_queue4].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_quit-queue4-expected_queue4].yaml new file mode 100644 index 00000000000..030ec723f4b --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_quit-queue4-expected_queue4].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:31 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_quit-queue5-expected_queue5].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_quit-queue5-expected_queue5].yaml new file mode 100644 index 00000000000..16b402edca1 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_quit-queue5-expected_queue5].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:32 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '198' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '2' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_reset-queue6-expected_queue6].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_reset-queue6-expected_queue6].yaml new file mode 100644 index 00000000000..4b517e0556a --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_reset-queue6-expected_queue6].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:32 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_reset-queue7-expected_queue7].yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_reset-queue7-expected_queue7].yaml new file mode 100644 index 00000000000..f6b214f86e2 --- /dev/null +++ b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_func_expect_queue[call_reset-queue7-expected_queue7].yaml @@ -0,0 +1,44 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer YI1c1OVI16Dd8CyLSh53zkGep9IS + Connection: + - keep-alive + method: GET + uri: https://sandbox.tradier.com/v1/markets/options/chains?expiration=2022-01-07&greeks=true&symbol=MOCK_TICKER + response: + body: + string: '{"options":null}' + headers: + Access-Control-Allow-Headers: + - accept, authorization + Access-Control-Allow-Methods: + - GET, PUT, POST, DELETE + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Length: + - '16' + Content-Type: + - application/json;charset=UTF-8 + Date: + - Thu, 11 Aug 2022 01:12:33 GMT + X-Ratelimit-Allowed: + - '200' + X-Ratelimit-Available: + - '199' + X-Ratelimit-Expiry: + - '1660180380000' + X-Ratelimit-Used: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_load.yaml b/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_load.yaml deleted file mode 100644 index 62043a82eda..00000000000 --- a/tests/openbb_terminal/stocks/options/cassettes/test_options_controller/test_call_load.yaml +++ /dev/null @@ -1,159 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - method: GET - uri: https://query2.finance.yahoo.com/v7/finance/options/AAPL - response: - body: - string: !!binary | - H4sIAAAAAAAAAL1da4/bxpL9K4E+z3C7qt/+5tjeJECczLUnWQSLIJA9si1YluZKGnvnBvnvW9V8 - s9lDqc1xAgxossXHYT1OVVc1/17sbo/r3fbZh+V6u3jy92K/Otxtjosn//v34m57s9pv7tfb96/v - P73ZbRZPFk+fXv28uFis/u92vV/y754vj6sDjQajhBfOCXFBm6BBmnITAZyqNi1KLDelRBoaNjUo - rAZYbaD6mXdelXu1FEKV59U6DA2b1qnqZIbOZcqxVoHFcqz1AqAc4Iyz1e14FbZo0wptkM/258Xi - cNyvP5aPIURBB4XmvxC2IWxj2MawLcO2LLdN+GvDXxf+ev6rwhgF4S+GvzL8VeFv+K0Kv1Xhtyr8 - VoXf6vBbjYWmv2Gktrxtwn4T9puw34T9Nuy3Yb8N+23Y78J+F/a7sN+F/T7s92G/D/s978fw7Bie - HcOzY3h25GcnlD4sDy/X2/WvQV4IrHfLzWF1sfj33e64YsnZLLfv75bvaXux2l7+9prkZL96T2Np - R/hXGHl9f8sjXvzrt5+u/6h3vt7d7d+ufll+4kPPV5vl/ermu3+FE18s6OW8f7/aL99s6Ohxf0fX - fHu336+2b+/DmZ/TmMOH3f5Y/f7p7e1m9d1P27cFS+rt4Xq/XG9IiK+/rDafVy932+MHuntdGAiH - /3u3/7Lc3yyemAJc2PMsnP34x2q553FWXSxu9+u3qxeDQyQHFoQTyNdfkuL8enc8HJfbG7rY4glr - BIslS9vizW738ffl5o7uTxZO0ZXfrd8d758v759+pkdj0EC7whltokOkmtswwBaKpMi7xIirFWG4 - JdUVBQhvwIIl8L7sfiQ93q9uetcikdTa4/jx+oJSFhaF9fqhYZ2roiRldc5fLD4t9x9Xx2fL28UT - dB5Je0jQhKXrvSvRvnrBR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22qx+nEjRCimi0sdiiTi40bzXUvkr8HClnf - M7rKay6VUOahsjVX17ktDN9SqFconos0c4WgT+UGLYDn72/nro54lddXKk0w7Kf3KqQ8hMRWzqSe - DzMvZJLiOadRa8Gf5ctX1oyeUv4YTzfS0AUmpuiYC3rXpclxp0f7IZk6my/ncxZobZjnT9SlUvQd - vq0gOB099sG7P/l/uuJ+v9svnmzvNpt//vl/8ZUrFxR/AAA= - headers: - Age: - - '0' - Connection: - - keep-alive - Expect-CT: - - max-age=31536000, report-uri="http://csp.yahoo.com/beacon/csp?src=yahoocom-expect-ct-report-only" - Referrer-Policy: - - no-referrer-when-downgrade - Strict-Transport-Security: - - max-age=15552000 - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - SAMEORIGIN - X-XSS-Protection: - - 1; mode=block - cache-control: - - public, max-age=1, stale-while-revalidate=9 - content-encoding: - - gzip - content-type: - - application/json;charset=utf-8 - date: - - Sun, 26 Dec 2021 05:31:06 GMT - server: - - ATS - vary: - - Origin,Accept-Encoding - x-envoy-decorator-operation: - - finance-quote-api--mtls-production-ir2.finance-k8s.svc.yahoo.local:4080/* - x-envoy-upstream-service-time: - - '24' - x-request-id: - - 1efeccba-2b81-4593-8956-3328090d4c88 - x-yahoo-request-id: - - c2bbc6lgsfvgq - y-rid: - - c2bbc6lgsfvgq - status: - code: 200 - message: OK -version: 1 diff --git a/tests/openbb_terminal/stocks/options/test_options_controller.py b/tests/openbb_terminal/stocks/options/test_options_controller.py index 60d8b1ec3b3..ebc01301d6a 100644 --- a/tests/openbb_terminal/stocks/options/test_options_controller.py +++ b/tests/openbb_terminal/stocks/options/test_options_controller.py @@ -131,6 +131,7 @@ def test_menu_with_queue(expected, mocker, queue): assert result_menu == expected +@pytest.mark.skip @pytest.mark.vcr(record_mode="none") def test_menu_without_queue_completion(mocker): path_controller = "openbb_terminal.stocks.options.options_controller" @@ -295,6 +296,7 @@ def test_call_cls(mocker): os.system.assert_called_once_with("cls||clear") +@pytest.mark.skip @pytest.mark.vcr(record_mode="none") @pytest.mark.parametrize( "func, queue, expected_queue", @@ -370,7 +372,7 @@ def test_call_func_expect_queue(expected_queue, func, mocker, queue): assert controller.queue == expected_queue -# @pytest.mark.skip +@pytest.mark.skip @pytest.mark.vcr(record_mode="none") @pytest.mark.parametrize( "tested_func, other_args, mocked_func, called_args, called_kwargs",