Skip to content

Commit

Permalink
add futures & crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme22 committed Dec 4, 2024
1 parent ed4a70d commit 1fcbf44
Show file tree
Hide file tree
Showing 10 changed files with 481 additions and 258 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ $ pip install tastytrade-cli

Available commands:
```
tt option view chains, buy/sell equities and futures options
tt pf (portfolio) view & close positions, check margin and analyze BP usage
tt stock buy, sell, and analyze stock
tt option view chains, buy or sell equities and futures options
tt pf (portfolio) view and close positions, check margin and analyze BP usage
tt trade buy or sell stocks/ETFs, crypto, and futures
```
Unavailable commands pending development:
```
tt crypto buy, sell, and analyze cryptocurrencies
tt future buy, sell, and analyze futures
tt order view, replace, and cancel orders
tt wl (watchlist) view current prices and other data for symbols in your watchlists
```
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ authors = [
dependencies = [
"asyncclick>=8.1.7.2",
"rich>=13.8.1",
"tastytrade>=9.2",
"tastytrade>=9.3",
]

[project.urls]
Expand All @@ -29,6 +29,11 @@ dev-dependencies = [
"ruff>=0.6.7",
]

[tool.ruff.lint]
ignore = [
"E731", # lambda-assignment
]

[project.scripts]
tt = "ttcli.app:main"

Expand Down
4 changes: 2 additions & 2 deletions ttcli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ttcli.option import option
from ttcli.portfolio import portfolio
from ttcli.stock import stock
from ttcli.trade import trade
from ttcli.utils import CONTEXT_SETTINGS, VERSION, config_path


Expand All @@ -19,7 +19,7 @@ async def app():
def main():
app.add_command(option)
app.add_command(portfolio, name="pf")
app.add_command(stock)
app.add_command(trade)

# create ttcli.cfg if it doesn't exist
if not os.path.exists(config_path):
Expand Down
6 changes: 5 additions & 1 deletion ttcli/data/ttcli.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ delta-target = 0
delta-variation = 5
[portfolio.positions]
# these control whether the columns show up when running `tt pf positions`
show-mark-price = false
show-mark-price = true
show-trade-price = false
show-delta = false
show-theta = false
show-gamma = false

[option]
# the default days to expiration to use for option-related commands;
# this bypasses the date selection menu.
# default-dte = 45
[option.chain]
# these control whether the columns show up when running `tt option chain`
show-delta = true
Expand Down
Loading

0 comments on commit 1fcbf44

Please sign in to comment.