bitbns-official / bitbnspy

MIT License
9 stars 6 forks source link

getTickerApi() giving error : AttributeError: 'str' object has no attribute 'pop' #28

Closed boral closed 3 years ago

boral commented 3 years ago

While running the following code, it is giving error :

bitbnsObj = bitbns(key, secretKey)

bitbnsObj
Out[23]: <bitbnspy.bitbnspy.bitbns at 0x224b0b8b2b0>

bitbnsObj.getTickerApi( 'MATIC' )
Traceback (most recent call last):

  File "<ipython-input-24-17c6c2c9e69c>", line 1, in <module>
    bitbnsObj.getTickerApi( 'MATIC' )

  File "C:\anaconda\lib\site-packages\bitbnspy\bitbnspy.py", line 99, in getTickerApi
    req[key].pop('yes_price', None)

AttributeError: 'str' object has no attribute 'pop'
sanket-buyhatke commented 3 years ago

HI @boral , could you please describe your environment ?

boral commented 3 years ago

@sanket-buyhatke I am using Python 3.8.5

its-mohnish commented 3 years ago

Hi @boral, Are you still facing this issue? I have tried running this with python 3.8.5, and did not face this issue.

boral commented 3 years ago

No, it is working fine now. On Jun 7, 2021, 2:20 PM +0530, its-mohnish @.***>, wrote:

@.***, Are you still facing this issue? I have tried running this with python 3.8.5, and did not face this issue. —You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

sanket-buyhatke commented 3 years ago

great, will be closing this issue, feel free to re-open if you face the issue again.