ccxt: Bitfinex margin info errors on both bitfinex.py and bitfinex2.py
- OS: *
- Programming Language version: ptyhon
- CCXT version: 593 and newer
- Exchange: bitfinex + bitfinex2
- Method: bitfinex.private_post_margin_infos & bitfinex2.privatePostAuthRInfoMarginKey
Hi,
So I’m running into a weird issue. I setup bitfinex with bitfinex = ccxt.bitfinex() then I setup the keys.
I try to get the margin balance, so I use this code:
account_balance = bitfinex.private_post_margin_infos()[0]['margin_balance']
For my old bitfinex account this just works, but if I create a new one (or other users try my code and create a new account) they run into this error:
bitfinex https://api.bitfinex.com/v1/margin_infos POST 500 Server Error: Internal Server Error for url: https://api.bitfinex.com/v1/margin_infos
I really can’t get my head around why it works with my key that’s a year old or so and not with new keys. Bitfinex themselves are looking into this issue too, do you guys think it’s a bug on their side?
The second issue I’m having is with the bitfinex2 code. Because bitfinex.py is not working I’m trying this as the exception:
bitfinex2.privatePostAuthRInfoMarginKey()
But the response I’m getting is this:
bitfinex2 https://api.bitfinex.com/v2/auth/r/info/margin/{key} POST 500 Server Error: Internal Server Error for url: https://api.bitfinex.com/v2/auth/r/info/margin/%7Bkey%7D ["error",10020,"key: invalid"]
Is this an error on my side or is this an error on the bitfinex side?
Thanks for the help and the advice!! 😃
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 28 (15 by maintainers)
Bitfinex actually already answered:
I just tested it… seems to work now!
Yeah I think that’s the wisest thing to do. The other person indeed has an open ticket. I will ask him to refer to this thread.
I will report back if we have news.
OK I have actually just tested a new account. The timezone is set to Amsterdam (might make a difference for a server it runs on I guess).
I do indeed get the same server error…
OK… I see your point. The other accounts do belong to someone I trust very much but I did indeed not make them myself. I did see a lot of screenshots. It’s getting late, but I will make an account myself to check that tomorrow morning and report back…