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)
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected