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

Method __init__

cbpro/authenticated_client.py:29–41  ·  view source on GitHub ↗

Create an instance of the AuthenticatedClient class. Args: key (str): Your API key. b64secret (str): The secret key matching your API key. passphrase (str): Passphrase chosen when setting up key. api_url (Optional[str]): API URL. Defaults to

(self, key, b64secret, passphrase,
                 api_url="https://api.pro.coinbase.com")

Source from the content-addressed store, hash-verified

27 session (requests.Session): Persistent HTTP connection object.
28 """
29 def __init__(self, key, b64secret, passphrase,
30 api_url="https://api.pro.coinbase.com"):
31 """ Create an instance of the AuthenticatedClient class.
32
33 Args:
34 key (str): Your API key.
35 b64secret (str): The secret key matching your API key.
36 passphrase (str): Passphrase chosen when setting up key.
37 api_url (Optional[str]): API URL. Defaults to cbpro API.
38 """
39 super(AuthenticatedClient, self).__init__(api_url)
40 self.auth = CBProAuth(key, b64secret, passphrase)
41 self.session = requests.Session()
42
43 def get_account(self, account_id):
44 """ Get information for a single account.

Callers

nothing calls this directly

Calls 1

CBProAuthClass · 0.90

Tested by

no test coverage detected