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

Method __init__

cbpro/public_client.py:21–30  ·  view source on GitHub ↗

Create cbpro API public client. Args: api_url (Optional[str]): API URL. Defaults to cbpro API.

(self, api_url='https://api.pro.coinbase.com', timeout=30)

Source from the content-addressed store, hash-verified

19 """
20
21 def __init__(self, api_url='https://api.pro.coinbase.com', timeout=30):
22 """Create cbpro API public client.
23
24 Args:
25 api_url (Optional[str]): API URL. Defaults to cbpro API.
26
27 """
28 self.url = api_url.rstrip('/')
29 self.auth = None
30 self.session = requests.Session()
31
32 def get_products(self):
33 """Get a list of available currency pairs for trading.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected