Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miraularka opened this issue Jan 11, 2022 · 0 comments
Open

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

miraularka opened this issue Jan 11, 2022 · 0 comments

Comments

@miraularka
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant