Author Topic: Python blockchain_instance error when calling orderbook() -  (Read 812 times)

0 Members and 1 Guest are viewing this topic.

Offline david987

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

bs = BitShares( 'wss://', nobroadcast=True )

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

Throws this error
Code: [Select]
Traceback (most recent call last):
  File "", line 7, in <module>
    book = market.orderbook()
  File "/home/masternode/.local/lib/python3.5/site-packages/bitshares/", line 235, in orderbook
    ), orders["asks"]))
  File "/home/masternode/.local/lib/python3.5/site-packages/bitshares/", line 234, in <lambda>
  File "/home/masternode/.local/lib/python3.5/site-packages/bitshares/", 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?


Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12915
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Python blockchain_instance error when calling orderbook() -
« Reply #1 on: May 01, 2018, 03:36:58 pm »
This is a bug that came as I was trying to make code more compatible with other graphene chains.
It should be fixed in latest develop branch .. sorry for the inconvenience.
Give BitShares a try! Use the provided by powered by ChainSquad GmbH