Skip to content

Commit

Permalink
bybit ret_msg can be both 'OK' and 'success'
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed May 25, 2023
1 parent 765637f commit 28298df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_profit_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def main():
transferred = await bot.transfer_from_derivatives_to_spot(args.quote, to_transfer)
logging.info(f"income: {profit} transferred {to_transfer} {args.quote}")
if exchange == "bybit":
if "ret_msg" not in transferred or transferred["ret_msg"] != "OK":
if "ret_msg" not in transferred or transferred["ret_msg"] not in ["OK", "success"]:
print(f"error with transfer {transferred}")
continue
logging.info(f"{transferred}")
Expand Down

0 comments on commit 28298df

Please sign in to comment.