BitBotFactory / MikaLendingBot

Automated lending on Cryptocurrency exchanges Poloniex and Bitfinex
http://poloniexlendingbot.readthedocs.io/en/latest/index.html
MIT License
1.11k stars 344 forks source link

Unknown currency #568

Closed mike4001 closed 6 years ago

mike4001 commented 7 years ago

Hi

I am getting this Error every minute since a 4-5 hours

Error API Error 400: {"message":"Unknown currency"} Requesting https://api.bitfinex.com/v1/lendbook/BTG?limit_asks=100&limit_bids=100

BTG seems to refer to Bitcoin Gold, but I didn't change anything in my config file for weeks and don't know how the bot could know about the "BTG" ticker ???

Nmaw commented 7 years ago

It is new coins on Bitfinex. If you have some BTC, after fork you also have some BTG.

mike4001 commented 7 years ago

Thanks for the info but please read my post ...

My bot is doing nothing but showing me this Error message every minute

belthor777 commented 7 years ago

Hi,

please have a look to Added Blacklist Option #570

utdrmac commented 7 years ago

I don't have BTG listed in all_currencies so why is the bot bothering to check this coin in the first place?

all_currencies = USD,BTC,ETH,BCH,ETC

mike4001 commented 7 years ago

570 fixes the issue.

And I also don't know why @utdrmac - I also don't have it listed in all_currencies.

chfast commented 7 years ago

Quick workaround: login to Bitfinex and move BTG from funding wallet to exchange wallet.

utdrmac commented 6 years ago

@chfast That isn't a valid workaround. The API call being made is public API. It has nothing to do with what you have in your individual wallets. Bitfinex isn't allowing lending of BTG at this time. That's why this error exists in the first place.

chfast commented 6 years ago

All workarounds that work are valid. And this one works.

The bot will not ask about BTG if you have 0 to lend.

utdrmac commented 6 years ago

The API error noted in this bug report has absolutely nothing to do with balances in your personal accounts. Thus, moving coins around inside your own account/wallets/etc will make no difference and this API call will continue to fail.

utdrmac commented 6 years ago

I acknowledge that by moving the coins around, the bot won't "see" a balance of BTG and will therefore not make this API call against lendingbook API in the first place. For that reason, it is a workaround but doesn't fix the original issue.

rnevet commented 6 years ago

Actually Bitfinex letting you have Lending balances that you can't lend is just weird... it is the the cause of this issue and moving the fund off the half baked Lending account is a valid temporary solution till Bitfinex either enable BTG lending or not. I guess it made sense from the idea of crediting every "Account" with BTG in the same value as BTC it was holding.

Otherwise the white list check that in #570 is also a valid code solution.

no-response[bot] commented 6 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please comment here if you have or find the answers we need so that we can investigate further.