Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - david987

Pages: [1]
1
Technical Support / Slow pybitshares calls
« on: August 10, 2018, 04:30:58 pm »
Wondering if it's normal for calls such as getbalance to take over 8 seconds to execute while connected to a <80ms node.
Connecting to BitShares via keys option (WIF)

I have scrypt and secp256k1 installed. Ubuntu 18.04, python3

2
Using this simple example:
Code: [Select]
from bitshares import BitShares
from bitshares.market import Market

bs = BitShares( 'wss://bitshares.openledger.info/ws', nobroadcast=True )

market = Market("BTS:USD", bitshares_instance=bs)
book = market.orderbook()


Throws this error
Code: [Select]
Traceback (most recent call last):
  File "test.py", line 7, in <module>
    book = market.orderbook()
  File "/home/masternode/.local/lib/python3.5/site-packages/bitshares/market.py", line 235, in orderbook
    ), orders["asks"]))
  File "/home/masternode/.local/lib/python3.5/site-packages/bitshares/market.py", line 234, in <lambda>
    blockchain_instance=self.blockchain
  File "/home/masternode/.local/lib/python3.5/site-packages/bitshares/price.py", line 484, in __init__
    super(Order, self).__init__(*args, blockchain_instance=self.blockchain, **kwargs)
TypeError: __init__() got multiple values for keyword argument 'blockchain_instance'

No idea why it's not working, any pointers?

Thanks.

Pages: [1]