whittlem / pycryptobot

Python Crypto Bot (PyCryptoBot)
Apache License 2.0
1.97k stars 738 forks source link

SellLastBuySize option #682

Closed YalicolbDenizen closed 1 year ago

YalicolbDenizen commented 2 years ago

I'd like to start an investment strategy that seeks to collect coins over time instead of money. In the US we are taxed on realized income, when the coin is sold for USD, but not unrealized, a held coin.

I'm hoping for a SellLastBuySize. This would sell enough coin to generate what I spent and leave the remaining in whatever coin I purchased. This way I can avoid (totally legally as the tax is accrued on sold crypto) US Capital Gains Tax and still generate crypto assets.

It would need to sell all coins up to the last buy size if margin went negative if sellatloss is enabled.

SellPercent is close in that I can guess the average margin but the goal is to maximize coin generation and not increase realized income.

hubov commented 2 years ago

You can trade crypto with stable coins like Tether (USDT). It represents the value of a USD but is no FIAT (it's a cryptocurrency). I think it resolves your tax problem.

whittlem commented 1 year ago

Thanks for responding @hubov