You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main README.md file adds parameters to the heartbeats() and heartbeats_unsubscribe() methods when the coinbase.github.io documentation indicates that these methods do not accept parameters.
I installed the coinbase-advanced-py via pip3 install coinbase-advanced-py inside a Red Hat UBI9 Python 3.12 docker container. When trying the commands listed in the README a TypeError is returned:
>>> from coinbase.websocket import WSClient,WSUserClient
>>> def on_message(msg):
... print(msg)
...
>>> client = WSClient(on_message=on_message)
>>> user_client = WSUserClient(on_message=on_message)
>>>
>>> client.open()
>>> user_client.open()
>>> client.heartbeats(product_ids=["BTC-USD", "ETH-USD"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: heartbeats() got an unexpected keyword argument 'product_ids'
>>> user_client.heartbeats(product_ids=["BTC-USD", "ETH-USD"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: heartbeats() got an unexpected keyword argument 'product_ids'
I've attached a log file with the entire docker and installation command outputs for reference: README-issue.log
Versions
MacOS Ventura 13.6.9
Docker Desktop v4.36.0
Red Hat UBI9 Python 3.12 image: registry.access.redhat.com/ubi9/python-312:9.5-1733164709 88ea2d10c741
Thank you for reporting! If this is an SDK specific issue, we will look into it and get back to you soon. If this is an API related request, report it in our Advanced API Discord instead (use this invite link if it's your first time accessing the Discord).
The main README.md file adds parameters to the
heartbeats()
andheartbeats_unsubscribe()
methods when the coinbase.github.io documentation indicates that these methods do not accept parameters.The lines in the README file are:
coinbase-advanced-py/README.md
Line 200 in 77aba43
coinbase-advanced-py/README.md
Line 206 in 77aba43
The coinbase.github.io documentation for the referenced methods are here and those docs show
(self)
as the only argument:https://coinbase.github.io/coinbase-advanced-py/coinbase.websocket.html#coinbase.websocket.WSClient.heartbeats
https://coinbase.github.io/coinbase-advanced-py/coinbase.websocket.html#coinbase.websocket.WSClient.heartbeats_unsubscribe
https://coinbase.github.io/coinbase-advanced-py/coinbase.websocket.user.html#coinbase.websocket.WSUserClient.heartbeats
https://coinbase.github.io/coinbase-advanced-py/coinbase.websocket.user.html#coinbase.websocket.WSUserClient.heartbeats_unsubscribe
Test Environment
I installed the coinbase-advanced-py via
pip3 install coinbase-advanced-py
inside a Red Hat UBI9 Python 3.12 docker container. When trying the commands listed in the README aTypeError
is returned:I've attached a log file with the entire docker and installation command outputs for reference: README-issue.log
Versions
MacOS Ventura 13.6.9
Docker Desktop v4.36.0
Red Hat UBI9 Python 3.12 image: registry.access.redhat.com/ubi9/python-312:9.5-1733164709 88ea2d10c741
Data from PIP package METADATA file:
Metadata-Version: 2.1
Name: coinbase-advanced-py
Version: 1.8.2
Summary: Coinbase Advanced API Python SDK
Home-page: https://github.com/coinbase/coinbase-advanced-py
Author: Coinbase
License: Apache 2.0
Keywords: Coinbase,Advanced Trade,API,Advanced API
Solution Suggestion
Using no input parameters results in expected behavior:
I can create a quick pull request to fix the README file if anyone wants it.
The text was updated successfully, but these errors were encountered: