cryptotrader icon indicating copy to clipboard operation
cryptotrader copied to clipboard

[X] Error while making a call. Message: size must be a number

Open miraularka opened this issue 2 years ago • 0 comments

I'm trying to figure out what exactly this error is referring to. I'm playing around with a small amount of money (around $10 USD worth) to test the waters, and when the uptrend hits the threshold, it attempts to sell for profit, however it also returns the above error.

**php7.4 bots/uptrendsurfer.php -p BTC-USD -bw 10 -g 0.1 -nib [i] Trading BTC-USD [i] Will buy 10 USD in BTC [i] Will sell when BTC will gain 0.1%, meaning when it's worth 10.01 USD

====== BOT STARTING ======

[i] 10 USD currently is 0.000237 BTC Current worth: 10.01200101 Change: +0.01 USD [!!] Coins gained 0.1%, will sell the profits of 0.01 USD now! [X] Error while making a call. Message: size must be a number [BTC] Now still holding 0.0002368 BTC (sold 2.0E-7) [i] Will sell profits again when it's worth 10.01 USD Current worth: 10.018875392 Change: +0.02 USD [!!] Coins gained 0.1%, will sell the profits of 0.02 USD now! [X] Error while making a call. Message: size must be a number [BTC] Now still holding 0.0002363 BTC (sold 5.0E-7) [i] Will sell profits again when it's worth 10.01 USD**

Any insight of how I can correct this?

miraularka avatar Jan 11 '22 02:01 miraularka