{"action":"created","issue":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/3824","repository_url":"https://api.github.com/repos/ccxt/ccxt","labels_url":"https://api.github.com/repos/ccxt/ccxt/issues/3824/labels{/name}","comments_url":"https://api.github.com/repos/ccxt/ccxt/issues/3824/comments","events_url":"https://api.github.com/repos/ccxt/ccxt/issues/3824/events","html_url":"https://github.com/ccxt/ccxt/issues/3824","id":358900236,"node_id":"MDU6SXNzdWUzNTg5MDAyMzY=","number":3824,"title":"Lack margin_infos api of bitfinex","user":{"login":"Jay54520","id":13315364,"node_id":"MDQ6VXNlcjEzMzE1MzY0","avatar_url":"https://avatars2.githubusercontent.com/u/13315364?v=4","gravatar_id":"","url":"https://api.github.com/users/Jay54520","html_url":"https://github.com/Jay54520","followers_url":"https://api.github.com/users/Jay54520/followers","following_url":"https://api.github.com/users/Jay54520/following{/other_user}","gists_url":"https://api.github.com/users/Jay54520/gists{/gist_id}","starred_url":"https://api.github.com/users/Jay54520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jay54520/subscriptions","organizations_url":"https://api.github.com/users/Jay54520/orgs","repos_url":"https://api.github.com/users/Jay54520/repos","events_url":"https://api.github.com/users/Jay54520/events{/privacy}","received_events_url":"https://api.github.com/users/Jay54520/received_events","type":"User","site_admin":false},"labels":[{"id":604886965,"node_id":"MDU6TGFiZWw2MDQ4ODY5NjU=","url":"https://api.github.com/repos/ccxt/ccxt/labels/duplicate","name":"duplicate","color":"cccccc","default":true},{"id":604886969,"node_id":"MDU6TGFiZWw2MDQ4ODY5Njk=","url":"https://api.github.com/repos/ccxt/ccxt/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"kroitor","id":1294454,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false},"assignees":[{"login":"kroitor","id":1294454,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-11T06:13:01Z","updated_at":"2018-09-11T06:19:16Z","closed_at":"2018-09-11T06:19:16Z","author_association":"NONE","body":"- OS: All\r\n- Programming Language version: Python\r\n- CCXT version: 1.17.260\r\n- Exchange: Bitfinex\r\n- Method: [margin_infos](https://docs.bitfinex.com/v1/reference#rest-auth-margin-information)\r\n\r\nLack [margin_infos](https://docs.bitfinex.com/v1/reference#rest-auth-margin-information) api of bitfinex.\r\n\r\nWe can get `margin_balance`(The USD value of all your trading assets (based on last prices)) from this API.\r\n\r\nSuppose we have 10 symbols in bitfinex margin wallet, if without this API, we must request 10 order books of the 10 symbols to get the USD value.\r\n\r\nThe api version is v1 according to the URL: `https://api.bitfinex.com/v1/margin_infos`, but I haven't found the API in `bitfinex.describe.has`:\r\n\r\n```\r\n            'has': {\r\n                'CORS': False,\r\n                'createDepositAddress': True,\r\n                'deposit': True,\r\n                'fetchClosedOrders': True,\r\n                'fetchDepositAddress': True,\r\n                'fetchTradingFees': True,\r\n                'fetchFundingFees': True,\r\n                'fetchMyTrades': True,\r\n                'fetchOHLCV': True,\r\n                'fetchOpenOrders': True,\r\n                'fetchOrder': True,\r\n                'fetchTickers': True,\r\n                'fetchTransactions': True,\r\n                'fetchDeposits': False,\r\n                'fetchWithdrawals': False,\r\n                'withdraw': True,\r\n            },\r\n```\r\n\r\nBut exist in `ccxt/async_support/bitfinex.py:110`\r\n\r\n```\r\n                    'post': [\r\n                        'account_fees',\r\n                        '...'\r\n                        'margin_infos',\r\n```"},"comment":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/comments/420159887","html_url":"https://github.com/ccxt/ccxt/issues/3824#issuecomment-420159887","issue_url":"https://api.github.com/repos/ccxt/ccxt/issues/3824","id":420159887,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDE1OTg4Nw==","user":{"login":"kroitor","id":1294454,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T06:19:16Z","updated_at":"2018-09-11T06:19:16Z","author_association":"MEMBER","body":"@Jay54520 please, read this:\r\n\r\n- https://github.com/ccxt/ccxt/wiki/Manual#implicit-api-methods\r\n- https://github.com/ccxt/ccxt/blob/master/js/bitfinex.js#L97\r\n- https://github.com/ccxt/ccxt/blob/master/python/ccxt/bitfinex.py#L110\r\n- https://github.com/ccxt/ccxt/blob/master/php/bitfinex.php#L97\r\n\r\n```Python\r\nimport ccxt\r\nfrom pprint import pprint\r\n\r\nbitfinex = ccxt.bitfinex({\r\n    'enableRateLimit': True,\r\n    'apiKey': 'YOUR_API_KEY',\r\n    'secret': 'YOUR_SECRET',\r\n})\r\n\r\npprint(bitfinex.private_post_margin_infos())\r\n```\r\n\r\nLet us know if that does not answer your question."}}
{"actor":{"display_login":"kroitor"}}