Skip to content
Snippets Groups Projects
Commit a15d9bc2 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

More fixes

parent db56ac79
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# python-bitshares documentation build configuration file, created by
# steempy documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 5 14:06:38 2015.
#
# This file is execfile()d with the current directory set to its
......@@ -48,9 +48,9 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = 'python-bitshares'
copyright = '2017, ChainSquad GmbH'
author = 'Fabian Schuh'
project = 'steempy'
copyright = '2017, ChainSquad GmbH, 2018, Holger Nahrstaedt'
author = 'Holger Nahrstaedt'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
......@@ -202,7 +202,7 @@ html_static_path = ['_static']
#html_search_scorer = 'scorer.js'
# Output file base name for HTML help builder.
htmlhelp_basename = 'python-bitsharesdoc'
htmlhelp_basename = 'steempydoc'
# -- Options for LaTeX output ---------------------------------------------
......@@ -224,7 +224,7 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'python-bitshares.tex', 'python-bitshares Documentation',
(master_doc, 'steempy.tex', 'steempy Documentation',
author, 'manual'),
]
......@@ -254,7 +254,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'python-bitshares', 'python-bitshares Documentation',
(master_doc, 'steempy', 'steempy Documentation',
[author], 1)
]
......@@ -268,8 +268,8 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'python-bitshares', 'python-bitshares Documentation',
author, 'python-bitshares', 'One line description of project.',
(master_doc, 'steempy', 'steempy Documentation',
author, 'steempy', 'One line description of project.',
'Miscellaneous'),
]
......
......@@ -55,7 +55,7 @@ Quickstart
from steempy import Steem
steem = Steem()
steem.wallet.unlock("wallet-passphrase")
steem.transfer("<to>", "<amount>", "<asset>", "[<memo>]", account="<from>")
steem.transfer("<to>", "<amount>", "<asset>", "<memo>", account="<from>")
.. code-block:: python
......@@ -81,17 +81,18 @@ Quickstart
.. code-block:: python
from steempy.market import Market
market = Market("USD:BTS")
print(market.ticker())
market.steem.wallet.unlock("wallet-passphrase")
print(market.sell(300, 100) # sell 100 USD for 300 BTS/USD
# Not working at the moment
# market = Market("STEEM:SBD")
# print(market.ticker())
# market.steem.wallet.unlock("wallet-passphrase")
# print(market.sell(300, 100) # sell 100 STEEM for 300 STEEM/SBD
.. code-block:: python
from steempy.dex import Dex
dex = Dex()
dex.steem.wallet.unlock("wallet-passphrase")
dex.adjust_collateral_ratio("SILVER", 3.5)
# not working at the moment
# dex = Dex()
# dex.steem.wallet.unlock("wallet-passphrase")
General
......
......@@ -14,7 +14,7 @@ node.
"wss://gtg.steem.house:8090",
accounts=["test"],
# on_market=pprint,
on_block=print,
# on_block=print,
on_account=print,
)
......
......@@ -242,7 +242,7 @@ class AccountUpdate(dict):
... code-block: js
{'id': '2.6.29',
{'name': 'test',
'owner': '1.2.29',
'pending_fees': 0,
'pending_vested_fees': 16310,
......@@ -262,10 +262,10 @@ class AccountUpdate(dict):
super(AccountUpdate, self).__init__(data)
else:
account = Account(data, steem_instance=self.steem)
update = self.steem.rpc.get_objects([
"2.6.%s" % (account["id"].split(".")[2])
])[0]
super(AccountUpdate, self).__init__(update)
# update = self.steem.rpc.get_objects([
# "2.6.%s" % (account["id"].split(".")[2])
# ])[0]
super(AccountUpdate, self).__init__(account)
@property
def account(self):
......@@ -273,9 +273,9 @@ class AccountUpdate(dict):
:class:`steem.account.Account` from this class, you can
use the ``account`` attribute.
"""
account = Account(self["owner"])
account = Account(self["name"])
account.refresh()
return account
def __repr__(self):
return "<AccountUpdate: {}>".format(self["owner"])
return "<AccountUpdate: {}>".format(self["name"])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment