- Support for dynamic markets which come with their own triggers and allow later setting up of betting market groups according to a dynamic metric, such as handicap and overunder values.
- Support for cancel events.
- Improve API endpoint responses when taking incidents from data proxy
- Massive improvements in unit testing and coverage.
- Fix leadtime_max so that events are created at a later point in time.
- Improve code structure and documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
from peerplays import PeerPlays | |
from peerplaysbase.account import PrivateKey, Address, PublicKey | |
import hashlib | |
from binascii import hexlify, unhexlify | |
ppy = PeerPlays("wss://node.peerplays.download") | |
pubkey = PublicKey("04e745a55c9ca90b1d022627f04fb5b8dfcec3f708285b327320822e05cea6ec9be3dfd95eaa5365ed87727f8004c1d90f2be7056eec0fcd0ba91a934d1ddc4d7c") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from peerplaysbase import operations | |
from peerplays import PeerPlays | |
from peerplays.account import Account | |
from peerplays.asset import Asset | |
from peerplaysbase import asset_permissions | |
from getpass import getpass | |
# The name of the issuer account | |
issuer = "nathan" | |
symbol = "BTC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
from peerplays import PeerPlays | |
from peerplaysbase.account import PrivateKey, Address, PublicKey | |
import hashlib | |
from binascii import hexlify, unhexlify | |
ppy = PeerPlays("wss://node.peerplays.download") | |
pubkey = PublicKey("04e745a55c9ca90b1d022627f04fb5b8dfcec3f708285b327320822e05cea6ec9be3dfd95eaa5365ed87727f8004c1d90f2be7056eec0fcd0ba91a934d1ddc4d7c") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
from peerplays import PeerPlays | |
from peerplaysbase.account import PrivateKey, Address | |
import hashlib | |
from binascii import hexlify, unhexlify | |
ppy = PeerPlays("wss://node.peerplays.download") | |
soll_address = "PPYEnWS9v8NrzuJGsrDpXUGAhNPArBweR8je" |
In other cryptocurrencies like bitcoin and ethereum, there is an "address" which is hex-string. How are accounts different?
An account can be seen as a registered name that only you own. This this accomplished by linking your cryptographic secret (private/public key pair) with your account, publicly. By this, only those entities that have access to the correct private keys can access a particular accounts. This comes with another advantages and that is, accounts can be setup to grant access not just to one key, but to many and allows sophisticated multi-signature setups for every account. Even accounts can be allowed to have access to other accounts. That said,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from peerplays import PeerPlays | |
from peerplays.account import Account | |
from peerplaysbase.operations import Account_update | |
from pprint import pprint | |
from getpass import getpass | |
pwd = getpass() | |
ppy = PeerPlays(nobroadcast=True) | |
ppy.wallet.unlock(pwd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
from datetime import datetime | |
from elasticsearch import Elasticsearch | |
from elasticsearch_dsl import Search | |
from bitshares.account import Account | |
from bitshares.blockchainobject import BlockchainObject | |
from bitshares.instance import shared_bitshares_instance | |
class ES: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from elasticsearch import Elasticsearch | |
from elasticsearch_dsl import Search | |
from bitshares.account import Account | |
ip = "176.9.44.67" | |
account = Account("xeroc") | |
account_id = account["id"] | |
es = Elasticsearch(ip, timeout=60) |