Skip to content

Commit 96e69f2

Browse files
committed
fixed bug submit as string
1 parent 9bc7a4a commit 96e69f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schwab_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ async def sell_option(self, ticker, option_type, option_date, strike, mid_price,
336336

337337
logging.getLogger().custom(f"Go short {symbol} at LIMIT {mid_price_floored} with mispricing: {best_mispricing} strike: {strike} oi: {best_open_interest} bid: {best_bid_price} ask: {best_ask_price}.")
338338
if not self.config["DRY_RUN"]:
339-
order = option_sell_to_open_limit(symbol, int(1), mid_price_floored).build()
339+
order = option_sell_to_open_limit(symbol, int(1), str(mid_price_floored)).build()
340340

341341
logging.getLogger().custom(f"Placing order to SELL {symbol} at {mid_price_floored}...")
342342
await self.client_manager.place_order(self.config["SCHWAB_ACCOUNT_HASH"], order)

0 commit comments

Comments
 (0)