MikaLendingBot icon indicating copy to clipboard operation
MikaLendingBot copied to clipboard

Unknown currency

Open mike4001 opened this issue 9 years ago • 12 comments

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 ???

mike4001 avatar Oct 24 '17 04:10 mike4001

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

Nmaw avatar Oct 24 '17 07:10 Nmaw

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

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

mike4001 avatar Oct 24 '17 07:10 mike4001

Hi,

please have a look to Added Blacklist Option #570

thomas0369 avatar Oct 24 '17 12:10 thomas0369

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

utdrmac avatar Oct 24 '17 14:10 utdrmac

#570 fixes the issue.

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

mike4001 avatar Oct 24 '17 16:10 mike4001

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

chfast avatar Oct 25 '17 09:10 chfast

@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.

utdrmac avatar Oct 25 '17 13:10 utdrmac

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

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

chfast avatar Oct 25 '17 13:10 chfast

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 avatar Oct 25 '17 13:10 utdrmac

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.

utdrmac avatar Oct 25 '17 13:10 utdrmac

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.

rnevet avatar Oct 25 '17 14:10 rnevet

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.

no-response[bot] avatar Apr 14 '18 21:04 no-response[bot]