peerplays.bettingmarket module

class peerplays.bettingmarket.BettingMarket(data, klass=None, space_id=1, object_id=None, lazy=False, use_cache=True, *args, **kwargs)

Bases: peerplays.blockchainobject.BlockchainObject

Read data about a Betting Market on the chain

Parameters:
  • identifier (str) – Identifier
  • blockchain_instance (peerplays) – PeerPlays() instance to use when accesing a RPC
bettingmarketgroup
refresh()
type_id = 25
class peerplays.bettingmarket.BettingMarkets(betting_market_group_id, *args, **kwargs)

Bases: list, peerplays.instance.BlockchainInstance

List of all available BettingMarkets

Parameters:betting_market_group_id (str) – Market Group ID (1.24.xxx)
cache = {}