MCPcopy Create free account
hub / github.com/ccxt/ccxt / load_accounts

Method load_accounts

python/ccxt/async_support/base/exchange.py:1040–1049  ·  view source on GitHub ↗
(self, reload=False, params={})

Source from the content-addressed store, hash-verified

1038 return await self.fetch2(path, api, method, params, headers, body, config)
1039
1040 async def load_accounts(self, reload=False, params={}):
1041 if reload:
1042 self.accounts = await self.fetch_accounts(params)
1043 else:
1044 if self.accounts:
1045 return self.accounts
1046 else:
1047 self.accounts = await self.fetch_accounts(params)
1048 self.accountsById = self.index_by(self.accounts, 'id')
1049 return self.accounts
1050
1051 async def edit_limit_buy_order(self, id: str, symbol: str, amount: float, price: Num = None, params={}):
1052 return await self.edit_limit_order(id, symbol, 'buy', amount, price, params)

Callers 15

fetch_balanceMethod · 0.45
fetch_trading_feesMethod · 0.45
create_orderMethod · 0.45
create_ordersMethod · 0.45
fetch_orderMethod · 0.45
fetch_open_ordersMethod · 0.45
fetch_closed_ordersMethod · 0.45
cancel_orderMethod · 0.45
cancel_all_ordersMethod · 0.45
fetch_positionsMethod · 0.45
modify_margin_helperMethod · 0.45
set_leverageMethod · 0.45

Calls 2

fetch_accountsMethod · 0.95
index_byMethod · 0.95

Tested by

no test coverage detected