(self, reload=False, params={})
| 5547 | return self.fetch2(path, api, method, params, headers, body, config) |
| 5548 | |
| 5549 | def load_accounts(self, reload=False, params={}): |
| 5550 | if reload: |
| 5551 | self.accounts = self.fetch_accounts(params) |
| 5552 | else: |
| 5553 | if self.accounts: |
| 5554 | return self.accounts |
| 5555 | else: |
| 5556 | self.accounts = self.fetch_accounts(params) |
| 5557 | self.accountsById = self.index_by(self.accounts, 'id') |
| 5558 | return self.accounts |
| 5559 | |
| 5560 | def build_ohlcvc(self, trades: List[Trade], timeframe: str = '1m', since: float = 0, limit: float = 2147483647): |
| 5561 | # given a sorted arrays of trades(recent last) and a timeframe builds an array of OHLCV candles |
no test coverage detected