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

Method fetch_position

python/ccxt/pacifica.py:2279–2291  ·  view source on GitHub ↗

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={})

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

fetch_positionsMethod · 0.95
safe_dictMethod · 0.80

Tested by

no test coverage detected