mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Removed source from exp (#4749)
* Removed source from exp * Removed source from other commands not using it * Added error handling
This commit is contained in:
@@ -66,39 +66,12 @@
|
||||
"Nasdaq",
|
||||
"Intrinio"
|
||||
],
|
||||
"exp": [
|
||||
"YahooFinance",
|
||||
"Tradier",
|
||||
"Nasdaq",
|
||||
"Intrinio"
|
||||
],
|
||||
"pcr": [
|
||||
"AlphaQuery"
|
||||
],
|
||||
"info": [
|
||||
"Barchart"
|
||||
],
|
||||
"chains": [
|
||||
"YahooFinance",
|
||||
"Tradier",
|
||||
"Nasdaq",
|
||||
"Intrinio"
|
||||
],
|
||||
"oi": [
|
||||
"YahooFinance",
|
||||
"Tradier",
|
||||
"Nasdaq"
|
||||
],
|
||||
"vol": [
|
||||
"YahooFinance",
|
||||
"Tradier",
|
||||
"Nasdaq"
|
||||
],
|
||||
"voi": [
|
||||
"YahooFinance",
|
||||
"Tradier",
|
||||
"Nasdaq"
|
||||
],
|
||||
"hist": [
|
||||
"ChartExchange",
|
||||
"Tradier",
|
||||
|
||||
@@ -153,7 +153,7 @@ class OptionsController(BaseController):
|
||||
else:
|
||||
self.expiry_dates = []
|
||||
|
||||
self.default_chain = get_ordered_list_sources(f"{self.PATH}chains")[0]
|
||||
self.default_chain = get_ordered_list_sources(f"{self.PATH}load")[0]
|
||||
|
||||
if session and get_current_user().preferences.USE_PROMPT_TOOLKIT:
|
||||
choices: dict = self.choices_default
|
||||
@@ -726,7 +726,6 @@ class OptionsController(BaseController):
|
||||
self.selected_date = expiry_date
|
||||
|
||||
if self.selected_date:
|
||||
self.source = ns_parser.source
|
||||
self.chain = self.full_chain[
|
||||
self.full_chain["expiration"] == self.selected_date
|
||||
]
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
> screen screens tickers based on preset
|
||||
|
||||
load load new ticker [YahooFinance, Tradier, Nasdaq, Intrinio]
|
||||
[unvl] exp see and set expiration dates[/unvl] [YahooFinance, Tradier, Nasdaq, Intrinio]
|
||||
[unvl] exp see and set expiration dates[/unvl]
|
||||
|
||||
Ticker:
|
||||
Expiry:
|
||||
|
||||
[unvl] pcr display put call ratio for ticker[/unvl] [AlphaQuery]
|
||||
[unvl] info display option information (volatility, IV rank etc)[/unvl] [Barchart]
|
||||
[unvl] chains display option chains with greeks[/unvl] [YahooFinance, Tradier, Nasdaq, Intrinio]
|
||||
[unvl] oi plot open interest[/unvl] [YahooFinance, Tradier, Nasdaq]
|
||||
[unvl] vol plot volume[/unvl] [YahooFinance, Tradier, Nasdaq]
|
||||
[unvl] voi plot volume and open interest[/unvl] [YahooFinance, Tradier, Nasdaq]
|
||||
[unvl] chains display option chains with greeks[/unvl]
|
||||
[unvl] oi plot open interest[/unvl]
|
||||
[unvl] vol plot volume[/unvl]
|
||||
[unvl] voi plot volume and open interest[/unvl]
|
||||
[unvl] hist plot option history[/unvl] [ChartExchange, Tradier, Intrinio]
|
||||
[unvl] vsurf show 3D volatility surface[/unvl] [YahooFinance]
|
||||
[unvl] grhist plot option greek history[/unvl] [Syncretism, Intrinio]
|
||||
|
||||
Reference in New Issue
Block a user