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

Method sign

python/ccxt/hyperliquid.py:4534–4541  ·  view source on GitHub ↗
(self, path, api: Any = 'public', method='GET', params={}, headers: dict = None, body: Str = None)

Source from the content-addressed store, hash-verified

4532 return None
4533
4534 def sign(self, path, api: Any = 'public', method='GET', params={}, headers: dict = None, body: Str = None):
4535 url = self.implode_hostname(self.urls['api'][api]) + '/' + path
4536 if method == 'POST':
4537 headers = {
4538 'Content-Type': 'application/json',
4539 }
4540 body = self.json(params)
4541 return {'url': url, 'method': method, 'body': body, 'headers': headers}
4542
4543 def calculate_rate_limiter_cost(self, api, method, path, params, config={}):
4544 if ('byType' in config) and ('type' in params):

Callers

nothing calls this directly

Calls 2

implode_hostnameMethod · 0.80
jsonMethod · 0.45

Tested by

no test coverage detected