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

Quote Currency #376

Open
rwl816 opened this issue Jul 7, 2021 · 6 comments
Open

Quote Currency #376

rwl816 opened this issue Jul 7, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@rwl816
Copy link

rwl816 commented Jul 7, 2021

I am unable to get a bot to work using the crypto markets. Would it be possible to make some code changes to allow for the "quote currency" to be set to something other than the fiat currency markets? It would be nice to be able to set up a bot for YFI-BTC or ADA-ETH. This would also make it possible to run multiple bots in the same coinbase portfolio as long as the base currencies are different and the quote currencies are different.

@hebawom
Copy link
Collaborator

hebawom commented Jul 7, 2021

I haven't done this myself, but I believe others are doing this in the current code base - without modifications.
Quote currency can be what you declare it.

@rwl816
Copy link
Author

rwl816 commented Jul 7, 2021

@hebawom Thanks. I tried a bot setup for YFI-BTC and got it to successfully trade...Yay. However, I am really wanting to set up for XLM-BTC and I'm getting errors:

| Python Crypto Bot |

| Release : v2.45.1 |

| Market : XLM-BTC |
| Granularity : 300 seconds |

| Bot Mode : LIVE - live trades using your funds! |
| Bot Started : 2021-07-07 15:13:02.609038 |

| Sell At Loss : False --sellatloss False |
| Sell At Resistance : False --sellatresistance |
| Trade Bull Only : False --disablebullonly |
| Buy Near High : False --disablebuynearhigh |
| Use Buy MACD : True --disablebuymacd |
| Use Buy OBV : True --disablebuyobv |
| Use Buy Elder-Ray : False --disablebuyelderray |
| Sell Fibonacci Low : False --disablefailsafefibonaccilow |
| Candlestick Reversal : True --disableprofitbankreversal |
| Telegram : False --disabletelegram |
| Log : True --disablelog |
| Tracker : True --disabletracker |
| Auto restart Bot : True --autorestart |

Restarting application after exception: Exception('XLM-BTC is unsuitable for trading, quote price is less than 0.0001!')
Exception('XLM-BTC is unsuitable for trading, quote price is less than 0.0001!')
Traceback (most recent call last):
File "/home/user1/PyCryptoBot/XLM-BTC-bot1/pycryptobot.py", line 160, in executeJob
raise Exception(app.getMarket() + ' is unsuitable for trading, quote price is less than 0.0001!')
Exception: XLM-BTC is unsuitable for trading, quote price is less than 0.0001!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/user1/PyCryptoBot/XLM-BTC-bot1/pycryptobot.py", line 160, in executeJob
raise Exception(app.getMarket() + ' is unsuitable for trading, quote price is less than 0.0001!')
Exception: XLM-BTC is unsuitable for trading, quote price is less than 0.0001!

@whittlem
Copy link
Owner

I see what the problem is here. XLM is a really low cost crypto and BTC is really high priced. So the cost of XLM in BTC is a lot less than 0.0001. Probably just need to adjust in the validation. How much XLM are you trying to buy and how much is that in BTC? At least that will give us an indication of what sort of precision we need.

@whittlem whittlem added the enhancement New feature or request label Jul 13, 2021
@rwl816
Copy link
Author

rwl816 commented Jul 14, 2021

@whittlem Thanks for considering adding this. I have 0.0123 BTC (~$400) that I'm trying to start the bot with, using 100% of the BTC to buy XLM.
21-7-19: ...also, I'm using coinbase.

@lazydroid
Copy link
Collaborator

@whittlem binance provides the limits and precisions for all tradable pairs, we don't have to guess, just request that information from the exchange and use it.

@bydesign
Copy link

bydesign commented Oct 4, 2021

@whittlem I'm running into a similar problem on Coinbase using SHIB-USD.
Bot for SHIB-USD got an exception: Exception('SHIB-USD is unsuitable for trading, quote price is less than 0.0001!')

Looks like the current trading price for SHIB is 0.00001047 USD. How can I work around this with PyCryptoBot?

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

No branches or pull requests

5 participants