# hiveengine Python tools for obtaining and processing hive engine tokens
[](https://travis-ci.org/holgern/hiveengine)
## Installation ` pip install hiveengine `
## Commands Get the latest block of the sidechain ` from hiveengine.api import Api api = Api() print(api.get_latest_block_info()) `
Get the block with the specified block number of the sidechain ` from hiveengine.api import Api api = Api() print(api.get_block_info(1910)) `
Retrieve the specified transaction info of the sidechain ` from hiveengine.api import Api api = Api() print(api.get_transaction_info("e6c7f351b3743d1ed3d66eb9c6f2c102020aaa5d")) `
Get the contract specified from the database ` from hiveengine.api import Api api = Api() print(api.get_contract("tokens")) `
Get an array of objects that match the query from the table of the specified contract ` from hiveengine.api import Api api = Api() print(api.find("tokens", "tokens")) `
Get the object that matches the query from the table of the specified contract ` from hiveengine.api import Api api = Api() print(api.find_one("tokens", "tokens")) `
Get the transaction history for an account and a token ` from hiveengine.api import Api api = Api() print(api.get_history("holger80", "FOODIE")) ` ## Token transfer ` from beem import Steem from hiveengine.wallet import Wallet stm = Steem(keys=["5xx"]) wallet = Wallet("test_user", steem_instance=stm) wallet.transfer("test1",1,"TST", memo="This is a test") ` ## Buy/Sell ### Create a buy order ` from beem import Steem from hiveengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.buy("test_user", 1, "TST", 9.99) ` ### Create a sell order
` from beem import Steem from hiveengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.sell("test_user", 1, "TST", 9.99) ` ### Cancel a buy order ` from beem import Steem from hiveengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) open_buy_orders = m.get_buy_book("TST", "test_user") m.cancel("test_user", "buy", open_buy_orders[0]["_id"]) ` ### Cancel a sell order ` from beem import Steem from hiveengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) open_sell_orders = m.get_sell_book("TST", "test_user") m.cancel("test_user", "sell", open_sell_orders[0]["_id"]) ` ### Deposit Steem ` from beem import Steem from hiveengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.deposit("test_user", 10) ` ### Withdrawal ` from beem import Steem from hiveengine.market import Market stm = Steem(keys=["5xx"]) m=Market(steem_instance=stm) m.withdraw("test_user", 10) `
Release files for hiveengine 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hiveengine-0.2.2.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hiveengine-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 53.1 kB
Release files / hiveengine-0.2.2.tar.gz
| Download URL | hiveengine-0.2.2.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28d3b31de9742b6250a4e9dcac4d00ad0bf58c8a9514e5cae4a340707c690477
|
|
BLAKE2b-256 checksum How to use checksums |
8cb596e004c9896eaeebc656b3be6485b1efd3efdefa594e6551b5d160dfd400
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6
|
Release files / hiveengine-0.2.2-py2.py3-none-any.whl
| Download URL | hiveengine-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 29.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7dd766e43fea7c0a900d0cb77e878af1235f765953d32c74e002e9a2211be02f
|
|
BLAKE2b-256 checksum How to use checksums |
1826540ab1631df0c78a74903387adb7f2c8e4a6063fca18a202a87161ae9832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6
|