Skip to content

Commit 74e6f26

Browse files
committed
Remove properties from bitshares_engine.py and bitshares_feed.py
Since changing the _market -> market and _account to account was made these properties conflicted with the variable names thus removed.
1 parent 73fd4d5 commit 74e6f26

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

dexbot/orderengines/bitshares_engine.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -682,15 +682,6 @@ def retry_action(self, action, *args, **kwargs):
682682
else:
683683
raise
684684

685-
@property
686-
def account(self):
687-
""" Return the full account as :class:`bitshares.account.Account` object!
688-
Can be refreshed by using ``x.refresh()``
689-
690-
:return: object | Account
691-
"""
692-
return self.account
693-
694685
@property
695686
def balances(self):
696687
""" Returns all the balances of the account assigned for the worker.
@@ -745,13 +736,6 @@ def own_orders(self):
745736
"""
746737
return self.get_own_orders()
747738

748-
@property
749-
def market(self):
750-
# TODO: property, also in price feed, need to consider inheritance priority
751-
""" Return the market object as :class:`bitshares.market.Market`
752-
"""
753-
return self.market
754-
755739
@staticmethod
756740
def get_updated_limit_order(limit_order):
757741
""" Returns a modified limit_order so that when passed to Order class,

dexbot/pricefeeds/bitshares_feed.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,6 @@ def get_market_spread(self, quote_amount=0, base_amount=0):
335335

336336
return ask / bid - 1
337337

338-
@property
339-
def market(self):
340-
""" Return the market object as :class:`bitshares.market.Market`
341-
"""
342-
return self.market
343-
344338
@staticmethod
345339
def sort_orders_by_price(orders, sort='DESC'):
346340
""" Return list of orders sorted ascending or descending by price

0 commit comments

Comments
 (0)