[Changelog] python-steem 0.2rc1

in #steem8 years ago (edited)

0.2rc1 Release 0.2rc1 - The exchange release!

This update introduces a brand new module in python-steem that allows to
trade in the internal STEEM:SBD market either using the cli_wallet or
using purely python.

Commits:

  • [exchange] add transfer operation
  • [exchange] initial work for steem exchange
  • [transactions] manual tx signing for order create and cancel

How it works:

from pprint import pprint
from steemexchange import SteemExchange

class Config():
    witness_url     = "wss://this.piston.rocks/"
    account         = "xeroc"
    # Either provide a cli-wallet RPC
    wallet_host     = "localhost"
    wallet_port     = 8092
    # or the (active) private key for your account
    wif             = ""

steem = SteemExchange(Config)
pprint(steem.buy(10, "SBD", 100))
pprint(steem.sell(10, "SBD", 100))
pprint(steem.cancel("24432422"))
pprint(steem.returnTicker())
pprint(steem.return24Volume())
pprint(steem.returnOrderBook(2))
pprint(steem.ws.get_order_book(10, api="market_history"))
pprint(steem.returnTradeHistory())
pprint(steem.returnMarketHistoryBuckets())
pprint(steem.returnMarketHistory(300))
pprint(steem.get_lowest_ask())
pprint(steem.get_higest_bid())
pprint(steem.transfer(10, "SBD", "fabian", "foobar"))

More documentation can be found on http://python-steem.readthedocs.io/en/develop/

Sort:  

Thank you for doing this @xeroc. I'm going to play around with your lib; will provide you feedback if I have any.

Sure .. drop me a line if you run into any trouble!

@xeroc I would love to see an article about how to install python and the python library on Windows. I get the basics of Python but installing python libraries always makes my mind spin.

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 56835.87
ETH 2399.86
USDT 1.00
SBD 2.39