MCPcopy Create free account
hub / github.com/danpaquin/coinbasepro-python / __call__

Method __call__

cbpro/cbpro_auth.py:15–23  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

13 self.passphrase = passphrase
14
15 def __call__(self, request):
16 timestamp = str(time.time())
17 message = ''.join([timestamp, request.method,
18 request.path_url, (request.body or '')])
19 request.headers.update(get_auth_headers(timestamp, message,
20 self.api_key,
21 self.secret_key,
22 self.passphrase))
23 return request
24
25
26def get_auth_headers(timestamp, message, api_key, secret_key, passphrase):

Callers

nothing calls this directly

Calls 1

get_auth_headersFunction · 0.85

Tested by

no test coverage detected