Bitfinex margin info errors on both bitfinex.py and bitfinex2.py
See original GitHub issue- 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!! 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:28 (15 by maintainers)
Top GitHub Comments
Bitfinex actually already answered:
I just tested it… seems to work now!