(self, params={})
| 868 | } |
| 869 | |
| 870 | def fetch_accounts(self, params={}) -> List[Account]: |
| 871 | self.load_markets() |
| 872 | response = self.privatePostGetMyAccountStatusV3(params) |
| 873 | # |
| 874 | # { |
| 875 | # "ok": "ok", |
| 876 | # "data": { |
| 877 | # "convertedCurrency": "USD", |
| 878 | # "balancesPerAccounts": { |
| 879 | # "": { |
| 880 | # "AI": { |
| 881 | # "balance": "0.000000", |
| 882 | # "balanceOnHold": "0.000000" |
| 883 | # }, |
| 884 | # "USDT": { |
| 885 | # "balance": "0.00000000", |
| 886 | # "balanceOnHold": "0.00000000" |
| 887 | # } |
| 888 | # } |
| 889 | # } |
| 890 | # } |
| 891 | # } |
| 892 | # |
| 893 | data = self.safe_dict(response, 'data', {}) |
| 894 | balances = self.safe_dict(data, 'balancesPerAccounts', {}) |
| 895 | arrays = self.to_array(balances) |
| 896 | return self.parse_accounts(arrays, params) |
| 897 | |
| 898 | def parse_account(self, account: dict) -> Account: |
| 899 | return { |
nothing calls this directly
no test coverage detected