brndnmtthws / thetagang

ThetaGang is an IBKR bot for collecting money
GNU Affero General Public License v3.0
1.89k stars 248 forks source link

Write_when Green and red bug, sending "C" to is_ok_to_write_puts function #429

Closed noamagiv closed 1 month ago

noamagiv commented 1 month ago

def is_ok_to_write_puts( symbol: str, ticker: Ticker, puts_to_write: int, ) -> bool: if puts_to_write <= 0: return False

            (can_write_when_green, can_write_when_red) = can_write_when(
                self.config, symbol, "C"
            )
noamagiv commented 1 month ago

you can assign this and 427 to me if you want:)

brndnmtthws commented 1 month ago

Nice catch, thanks. Already made a PR for this.