fetch the current authenticated sub-account https://api.docs.extended.exchange/#get-account-details :param dict [params]: extra parameters specific to the exchange API endpoint :returns dict: an `account structure `
(self, params={})
| 1458 | return self.safe_balance(result) |
| 1459 | |
| 1460 | def fetch_account(self, params={}) -> Account: |
| 1461 | """ |
| 1462 | fetch the current authenticated sub-account |
| 1463 | |
| 1464 | https://api.docs.extended.exchange/#get-account-details |
| 1465 | |
| 1466 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 1467 | :returns dict: an `account structure <https://docs.ccxt.com/?id=account-structure>` |
| 1468 | """ |
| 1469 | response = self.v1PrivateGetUserAccountInfo(params) |
| 1470 | # |
| 1471 | # { |
| 1472 | # "status": "OK", |
| 1473 | # "data": { |
| 1474 | # "accountId": 3342, |
| 1475 | # "description": "Main account", |
| 1476 | # "accountIndex": 0, |
| 1477 | # "status": "ACTIVE", |
| 1478 | # "l2Key": "0x...", |
| 1479 | # "l2Vault": "500343", |
| 1480 | # "bridgeStarknetAddress": "0x...", |
| 1481 | # "apiKeys": [ |
| 1482 | # "..." |
| 1483 | # ], |
| 1484 | # "accountIndexForKeyGeneration": 0 |
| 1485 | # } |
| 1486 | # } |
| 1487 | # |
| 1488 | data = self.safe_dict(response, 'data', {}) |
| 1489 | return self.parse_account(data) |
| 1490 | |
| 1491 | def fetch_accounts(self, params={}) -> List[Account]: |
| 1492 | """ |
no test coverage detected