Request for help: error bad operand type for unary +:'str' 111

Author: Summer Fertilizer, Created: 2022-11-15 18:41:02, Updated:

As shown in the following example, 11.9 at 4:02-4:59 the market is highly volatile, and the disk log frequently shows error bad operand type for unary +: str 111 Frequent ordering on the exchange, which had been running for half a month before, the error occurred only once, but the transaction was quickly normal.

It's also the first language in the world to be written in Python.

Who knows what the reason is and how to avoid this mistake?

2022-11-09 04:55:03 Futures_Binance Selling open - swap market price list 174.51 2022-11-09 04:55:01 information error bad operand type for unary +: str 111 2022-11-09 04:55:01 Futures_Binance Buy a flat - swap market price list 178.89 2022-11-09 04:54:59 information bnb empty-handed opening of 1 2022-11-09 04:54:59 Futures_Binance Selling open - swap market price list 178.89 2022-11-09 04:54:56 information error bad operand type for unary +: str 111 2022-11-09 04:54:56 Futures_Binance Buy and hold - swap Market price list 174.63 2022-11-09 04:54:54 information bnb empty-handed opening of 2 2022-11-09 04:54:54 Futures_Binance Sells open - swap market price list 174.63 2022-11-09 04:54:52 information error bad operand type for unary +: str 111 2022-11-09 04:54:52 Futures_Binance Buy and hold - swap Market price list 179.12 2022-11-09 04:54:50 information bnb empty-headed opening of 1 2022-11-09 04:54:50 Futures_Binance Selling open - swap market price list 179.12 2022-11-09 04:54:47 information error bad operand type for unary +: str 111 2022-11-09 04:54:47 Futures_Binance Buy and hold - swap Market price list 174.93 2022-11-09 04:54:45 information bnb empty-handed opening of 2 2022-11-09 04:54:45 Futures_Binance Selling open - swap market price list 174.93 2022-11-09 04:54:43 information error bad operand type for unary +: str 111 2022-11-09 04:54:43 Futures_Binance Buy and hold - swap Market price list 179.42 2022-11-09 04:54:41 information bnb empty opening of 1


More

The Little DreamHello, did you write this policy yourself? This error message is bad operand type for unary +:'str' 111

The Little Dream> In addition to the basic settings of the deployment host, are there any special settings that are required for a Linux server running a Python-written robot? If some third-party libraries are used in the policy, these libraries need to be installed on the host; nothing else needs to be set up. > I didn't write it, I used someone else's strategy, I can't see the source code, I think it's a problem with the Python version. There may be a problem with the Python version, which is the best and the policy author confirms that the Python version of the policy can run normally. What's up? error bad operand type for unary What's up? This error is thought to be caused by data types on both sides of the equation that were not handled correctly, and can be confirmed with the policy author.

Summer FertilizerI'm not writing it, I'm using someone else's policy, I can't see the source code, I think it's the python language version, I searched, as if the version after python 3.6 will appear like this, look online it says, not so much.