golosscripts.bitshares_helper
¶
Module Contents¶
-
class
BitSharesHelper
(node: Union[str, list] = None, loop: asyncio.BaseEventLoop = None)[source]¶ A helper class to interact with BitShares network.
Note
This class sets shared bitshares instance, see
bitshares.aio.instance.set_shared_bitshares_instance()
.-
async
get_market_buy_price_pct_depth
(self, market: str, depth_pct: float)[source]¶ Measure QUOTE volume and BASE/QUOTE price for [depth] percent deep starting from highest bid.
-
async
get_market_sell_price_pct_depth
(self, market: str, depth_pct: float)[source]¶ Measure QUOTE volume and BASE/QUOTE price for [depth] percent deep starting from lowest ask.
-
async
get_market_buy_price
(self, market: str, quote_amount: float = 0, base_amount: float = 0)[source]¶ Returns the BASE/QUOTE price for which [depth] worth of QUOTE could be sold.
-
async
get_market_sell_price
(self, market: str, quote_amount: float = 0, base_amount: float = 0)[source]¶ Returns the BASE/QUOTE price for which [depth] worth of QUOTE could be bought.
-
async
get_market_center_price
(self, market: str, base_amount: float = 0, quote_amount: float = 0, depth_pct: float = 0)[source]¶ Returns the center price of market.
-
async
get_price_across_2_markets
(self, market: str, via: str, depth_pct: float = 20)[source]¶ Derive cross-price for A/C from A/B, B/C markets.
-
async