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:
Colin Delahunty
2023-04-12 08:01:15 -07:00
committed by GitHub
parent d35432b6db
commit 080d37e405
3 changed files with 6 additions and 34 deletions

View File

@@ -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",

View File

@@ -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
]

View File

@@ -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]