MCPcopy Index your code
hub / github.com/sammchardy/python-binance / _create_margin_api_uri

Method _create_margin_api_uri

binance/base_client.py:287–294  ·  view source on GitHub ↗
(self, path: str, version: int = 1)

Source from the content-addressed store, hash-verified

285 return url + "/" + v + "/" + path
286
287 def _create_margin_api_uri(self, path: str, version: int = 1) -> str:
288 options = {
289 1: self.MARGIN_API_VERSION,
290 2: self.MARGIN_API_VERSION2,
291 3: self.MARGIN_API_VERSION3,
292 4: self.MARGIN_API_VERSION4,
293 }
294 return self.MARGIN_API_URL + "/" + options[version] + "/" + path
295
296 def _create_papi_api_uri(self, path: str, version: int = 1) -> str:
297 options = {1: self.PORTFOLIO_API_VERSION, 2: self.PORTFOLIO_API_VERSION2}

Callers 2

_request_margin_apiMethod · 0.80
_request_margin_apiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected