Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
a15d9bc2
Commit
a15d9bc2
authored
7 years ago
by
Holger Nahrstaedt
Browse files
Options
Downloads
Patches
Plain Diff
More fixes
parent
db56ac79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/conf.py
+9
-9
9 additions, 9 deletions
docs/conf.py
docs/index.rst
+9
-8
9 additions, 8 deletions
docs/index.rst
docs/websocket.rst
+1
-1
1 addition, 1 deletion
docs/websocket.rst
steempy/account.py
+7
-7
7 additions, 7 deletions
steempy/account.py
with
26 additions
and
25 deletions
docs/conf.py
+
9
−
9
View file @
a15d9bc2
#!/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-bitshares
doc
'
htmlhelp_basename
=
'
steempy
doc
'
# -- 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
'
),
]
...
...
This diff is collapsed.
Click to expand it.
docs/index.rst
+
9
−
8
View file @
a15d9bc2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
docs/websocket.rst
+
1
−
1
View file @
a15d9bc2
...
...
@@ -14,7 +14,7 @@ node.
"wss://gtg.steem.house:8090",
accounts=["test"],
# on_market=pprint,
on_block=print,
#
on_block=print,
on_account=print,
)
...
...
This diff is collapsed.
Click to expand it.
steempy/account.py
+
7
−
7
View file @
a15d9bc2
...
...
@@ -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
"
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment