All Projects → gotasty → tastypl

gotasty / tastypl

Licence: GPL-3.0 license
Track P/L, portfolio performance, net credit after rolls, for tastytraders

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to tastypl

binaryapi
Binary.com & Deriv.com API for Python
Stars: ✭ 32 (-45.76%)
Mutual labels:  trading, options-trading
trading-gmbh
Gründung einer vermögensverwaltenden GmbH
Stars: ✭ 34 (-42.37%)
Mutual labels:  trading
investopedia simulator api
A simple Python API for Investopedia's stock simulator games. This programmatically logs into Investopedia and can retrieve portfolio summary, get stock quotes & option chain lookups, execute trades - buy & sell shares, puts, calls, sell short, etc.
Stars: ✭ 22 (-62.71%)
Mutual labels:  options-trading
SlimTrade
A trade macro overlay for the game Path of Exile
Stars: ✭ 78 (+32.2%)
Mutual labels:  trading
howtrader
Howtrader is a crypto currency quant framework, you can easily develop, backtest and run your own strategy in real market. It also supports tradingview or other 3rd party signals, just simply send a post request and it will help trade automatically. Now it only support binance spot, futures and inverse futures exchange. It will support okex, ftx…
Stars: ✭ 294 (+398.31%)
Mutual labels:  trading
tellerbot
Telegram Bot for over-the-counter trading
Stars: ✭ 17 (-71.19%)
Mutual labels:  trading
TAcharts
Apply popular TA tools and charts to candlestick data with NumPy.
Stars: ✭ 131 (+122.03%)
Mutual labels:  trading
elinor-reloaded
Trading tool for Eve Online
Stars: ✭ 29 (-50.85%)
Mutual labels:  trading
tradeview
A platform for trading crypto currency pairs on crypto exchanges and running crypto currency pair strategies.
Stars: ✭ 69 (+16.95%)
Mutual labels:  trading
degiro-trading-tracker
Simplified tracking of your investments
Stars: ✭ 16 (-72.88%)
Mutual labels:  trading
pine-script-mode
GNU Emacs Major mode for Trading View pine script
Stars: ✭ 18 (-69.49%)
Mutual labels:  trading
Sequence-to-Sequence-Learning-of-Financial-Time-Series-in-Algorithmic-Trading
My bachelor's thesis—analyzing the application of LSTM-based RNNs on financial markets. 🤓
Stars: ✭ 64 (+8.47%)
Mutual labels:  trading
reactive-trader
In the coming weeks this plans to become a Gekko plugin that reacts to market changes, finding and running only the most profitable strategies.
Stars: ✭ 91 (+54.24%)
Mutual labels:  trading
Automatic-Stock-Trading
Trading Algorithm by XGBoost
Stars: ✭ 58 (-1.69%)
Mutual labels:  trading
CryptoStupidity
Проект по обучению ручной и автоматической торговли криптовалютами.
Stars: ✭ 22 (-62.71%)
Mutual labels:  trading
twitter-crypto-bot
This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes
Stars: ✭ 21 (-64.41%)
Mutual labels:  trading
bybit-api
Node.js connector for the Bybit APIs and WebSockets, with TypeScript & browser support.
Stars: ✭ 69 (+16.95%)
Mutual labels:  trading
gdax-ohlc-import
Import historical OHLC data from GDAX
Stars: ✭ 26 (-55.93%)
Mutual labels:  trading
volatile
Volatile: your day-to-day trading companion.
Stars: ✭ 53 (-10.17%)
Mutual labels:  trading
fix-decoder
Unravels FIX messages into human readable tables
Stars: ✭ 71 (+20.34%)
Mutual labels:  trading

tastypl

Description

tastypl is a Go program that imports your tastyworks transactions and figures out some statistics to help you track your performance and positions. The main motivation behind it was to track the net credit after rolls.

Demo

On the tastyworks desktop app, go to the History tab, and under "transactions" pick a start date that is before the creation of your account, then click the CSV button to export all the transactions to a file. You need all the transactions in the CSV file otherwise the numbers won't make sense.

Here is a simple example for a portfolio with an AAPL straddle, a BIDU position that has received an assignment, and a ROKU position that has been rolled.

$ go run tastypl.go -input demo.csv -printpl -positions
----- Overall statistics ----
Number of transactions:    46    (in 97 days => 0.5/day avg)
Realized P&L:            2246.00
Commissions:              -37.00 (-1.65% of P&L)
Fees:                     -19.11 (-0.85% of P&L)
Interest:                 -72.43 (-3.22% of P&L)
Gross P&L:               2117.46 (~21.83/day avg, 94.28% of P&L)
Equity:                 -25000.00 (1 positions)
Adjusted Gross P&L:     -22882.54
Net money movements:    31000.00
Outstanding premium:     5673.00
Cash on hand:           14024.46
---- Realized P&L detail ----
/NQH8    80.00
BIDU   1148.00
PCLN    896.00
ROKU    122.00
----- Current portfolio -----
AAPL  (2 positions)
  Feb 16 short 1 $170 call @ 7.2 [BEP=177.20] 
  Feb 16 short 1 $170 put  @ 5.35 [BEP=164.65] 
  --> 170 straddle @ 12.55 net credit
BIDU  (3 positions) [RPL=1148.00]
  long  100 shares @ 250.00 (adj. cost basis 247.66)
  Feb 16 short 1 $217.5 call @ 7.4 [BEP=224.90] 
  Mar 16 short 1 $250 put  @ 32 [BEP=218.00] 
ROKU  (1 position) [RPL=122.00]
  Feb 16 short 1 $44 put  @ 4.78 [BEP=38.00]  (net credit 6.00)

The -chart option will generate a graph in rpl.png that looks like this:

Realized P/L over time

On the chart, "adjusted realized P/L" is the realized P/L net of commissions, fees, interest paid if any, etc. Outstanding premium is the amount of premium sold (if positive, bought if negative) at the price it was opened – the script does not track the mark of positions over time, only opening/closing prices, as it does not have access to any historical market data. Cash on hand should match what is shown in tastyworks' account balance.

Disclaimers

tastyworks and tastytrade are not affiliated with the makers of this program and do not endorse this product. This program does not provide investment, tax, or legal advice. Options involve risk and are not suitable for all investors as the special risks inherent to options trading may expose investors to potentially significant losses. Futures and futures options trading is speculative and is not suitable for all investors.

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].