fetch data on an open position https://docs.pacifica.fi/api-documentation/api/rest-api/account/get-positions :param str symbol: unified market symbol of the market the position is held in :param dict [params]: extra parameters specific to the exchange API endpoint
(self, symbol: str, params={})
| 2277 | }, market) |
| 2278 | |
| 2279 | def fetch_position(self, symbol: str, params={}): |
| 2280 | """ |
| 2281 | fetch data on an open position |
| 2282 | |
| 2283 | https://docs.pacifica.fi/api-documentation/api/rest-api/account/get-positions |
| 2284 | |
| 2285 | :param str symbol: unified market symbol of the market the position is held in |
| 2286 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 2287 | :param str [params.account]: will default to walletAddress if not provided |
| 2288 | :returns dict: a `position structure <https://docs.ccxt.com/?id=position-structure>` |
| 2289 | """ |
| 2290 | positions = self.fetch_positions([symbol], params) |
| 2291 | return self.safe_dict(positions, 0, {}) |
| 2292 | |
| 2293 | def fetch_positions(self, symbols: Strings = None, params={}) -> List[Position]: |
| 2294 | """ |
nothing calls this directly
no test coverage detected