hiveengine/steemengine - transfer/stake/unstake/sell all token at once
hive-139531·@holger80·
0.000 HBDhiveengine/steemengine - transfer/stake/unstake/sell all token at once
## Repository  https://github.com/holgern/hiveengine  https://github.com/holgern/steemengine ## hiveengine/steemengine hiveengine/steemengine is using [beem](https://github.com/holgern/beem) for broadcasting transfers and custom_json to the blockchain. hiveengine is only working when using HIVE nodes and steemengine works only when using STEEM nodes. You can check the currently set nodes with ``` beem config ``` Hive nodes can be set with ``` beem updatenodes --hive ``` For using steemengine, the nodes does not need to be changed, as always the steemit node is used. Both packages can be installed with pip / pip3: ``` pip install hiveengine ``` and/or ``` pip install steemengine ``` ## Usage After seeing that I had several tokens left in my steem-engine account and as I was to lazy to sell each token one by one, I updated the steemengine command line tool instead. When a token has aktive bids, selling tokens is now convinient. You can use the `sell` command to broadcast a sell order for each of your tokens and use then the `cancel` command to cancel all not fullfilled order after a while. Then you can try again with `sell`... I ported the changes also to hiveengine package. ## Price calculation The token price is calculated from the highest bid, or when there is currently no bid, from the last price. ## Trying with no-broadcast ``` steemengine -d command ``` or ``` hiveengine -d command ``` A command can be tested with the `-d` or `--no-broadcast` option. When using this option, broadcasting is disabled and the transaction is just printed to the terminal. ## Sell all token ``` steemengine sell -a account_name ``` or ``` hiveengine sell -a account_name ``` can now be used to go through all your tokens and sell them. The tool asks for each token if it should be sold, only when entering `y`, a sell order is broadcasted. An account can be set with `-a account_name`.  ## Transfering all tokens ``` steemengine transfer -a from_acc to_acc ``` or ``` hiveengine transfer -a from_acc to_acc ``` This command allows it to send all tokens to the specified account. You will be asked for each token, if it should be transferred. Only when pressing `y`, the token is send. ## Staking all tokens ``` steemengine stake -a account_name ``` or ``` hiveengine stake -a account_name ``` This helps in staking all token at once. You will be asked if you want to stake the specific token. Only when pressing `y`, the token is staked.  ## Unstaking all tokens ``` steemengine unstake -a account_name ``` or ``` hiveengine unstake -a account_name ``` This can be used to unstake all your staked tokens. You will be asked for each token if all staked token should be unstaked. Only when `y` is pressed, the token is unstaked.  ## Show open orders This command was enhanced so that all open orders for an account can be shown at once. ``` steemengine sellbook -a account_name ``` or ``` hiveengine sellbook -a account_name ``` or ``` steemengine buybook -a account_name ``` or ``` hiveengine buybook -a account_name ``` I tried, but I could not sell all my remaining tokens at steem-engine:  Maybe it's time for ``` steemengine transfer -a holger80 -m bye null ``` ## Cancel all open buy / sell orders ``` steemengine cancel -a account_name buy ``` or ``` hiveengine cancel -a account_name buy ``` or ``` steemengine cancel -a account_name sell ``` or ``` hiveengine cancel -a account_name sell ``` This cancels all open sell / buy orders at once. It is possible to add `--yes` to prevent being asked if the open order should be canceled. ## Show the worth of your liquid / staked token in HIVE ``` hiveengine balance -a account_name ``` This command exists only for hiveengine. The shown values are calculated by the highest bid or when not existing the latest price.  ## Feedback Let me know if you have ideas for improvements. *** *If you like what I do, consider casting a vote for me as witness on [Hivesigner](https://hivesigner.com/sign/account-witness-vote?witness=holger80&approve=1) or on [PeakD](https://peakd.com/witnesses)*.
👍 kgswallet, elleok, everyoung, stevescoins, techslut, maxuvv, swedishdragon76, dera123, crokkon, thedailysneak, paopaoza, steementertainer, gerber, nealmcspadden, amico, mice-k, steemcityrewards, ezzy, exyle, deathwing, citrus-soap, hive.curation, saboin, battlegames, dappcoder, huaren.news, goodreader, d-pend, shitsignals, felander, yogacoach, roleerob, pataty69, cadawg, reazuliqbal, bestboom, freddio, swisswitness, gallerani, dlike, triptolemus, bobby.madagascar, determine, permaculturedude, steemindian, milu-the-dog, steem.leo, leo.voter, freddio.sport, asteroids, leo.syndication, one.life, maxuvd, staryao, someguy123, dune69, caladan, blockbrothers, followjohngalt, triplea.bot, ribary, mys, rafalski, accelerator, investprosper, unconditionalove, munhenhos, tipsybosphorus, arkmy, reverendrum, mannaman, flyingbolt, hungryharish, blocktvnews, gerbo, searchbot, piratedice, folklure, sketching, abh12345, revisesociology, rycharde, ew-and-patterns, whd, benedict08, g10a, bengy, beleg, julian2013, maxuve, steembasicincome, mermaidvampire, jimcustodio, sweetkathy, archisteem, plankton.token, sbi2, anikys3reasure, sbi3, florino, mistia, sbi-tokens, krnel, sbi4, xeldal, sbi5, abitcoinskeptic, ilovecanada, sbi6, besheda, mrsbozz, sbi7, onealfa, onetin84, nerdtopiade, casberp, whack.science, triviummethod, blockchainpeople, emrebeyler, sbi8, ticketyboo, ticketywoof, borbina, hasmez, sbi9, sbi10, lelon, nokodemion, carlpei, brucutu1, brucutu2, tubiska, carioca, danielsaori, agent14, sashas, pagliozzo, kitty-kitty, themarkymark, onepercentbetter, slobberchops, borran, tarazkp, sudefteri, satren, ronaldoavelino, avel692, brucutu, jussara, djennyfloro, markkujantunen, mcoinz79, nobyeni, gagago, dalz, pocoto, cyrillo, ninnu, buildawhale, makerhacks, upmyvote, ipromote, daath, moneytron, cpt-sparrow, forecasteem, monsterjamgold, gamer00, maxer27, itchyfeetdonica, chronocrypto, merlion, thrasher666, broxi, realgoodcontent, hungrybear, iamjohn, babytarazkp, lemouth, blacklux, bubke, chrismadcboy2016, solarwarrior, anech512, kimzwarch, fw206, isnochys, akifane, lesmouths-travel, freebornsociety, angelinafx, smartvote, condeas, tabea, fulcrumleader, wildarms65, dachcolony, dollarbills, ravensavage, jacekw, eikejanssen, matschi, dreimaldad, richie.rich, sparschwein, jerrybanfield, bronkong, anli, andrepol, candyboy, maxpatternman, digital.mine, inteligente, re2pair, detetive, kingscrown, superlao, helpyou, monster.oo7, spicywoman, fengchao, properfraction, eunsik, justyy, buzzbeergeek, a-bot, cst90, szf, arcange, steempearls, ladyinblack, mytechtrail, ibc, stuntman.mike, dadview, steemitcitizen, mdosev, superbing, patricklancaster, moneybaby, furioslosi, ctl001, chromebook, drorion, likwid, flemingfarm, losi, raspibot, backinblackdevil, promobot, smon-joa, flugschwein, blue.rabbit, raphaelle, linuxbot, gringo211985, cardboard, voxmortis, elbrava, lauchmelder, samujaeger, ralph-rennoldson, cfminer, alinalazareva, ambyr00, mittwochsquickie, actifit-devil, bashadow, livingfree, oaldamster, curationvoter, eva-julia, thedevilsbride, sparstrumpf, curationhelper, steem-meetup-ffb, putu300, jongolson, putu300id, naltedtirt, brujas, funnyman, holycow2019, vaansteam, linnyplant, tonalddrump, commonlaw, ericburgoyne, yangyanje, kissi, captain.kirk, racibo, korinkrafting, kiddarko, detlev, drsensor, cryptocurator, hivewatchers, logic, steemcleaners, automaton, bilpcoinbpc, bewithbreath, lionsuit, lrekt01, netuoso, goumao, steempty, fminerten, wf9877, idiosyncratic1, canercanbolat, agathusia, oxoskva, offgridlife, superhardness, cryptojiang, solikyl, gitplait, tykee, bala41288, tomosan, iaberius, romiferns, dylanhobalart, duckmast3r, skepticology, mountaingod, kushfreeman, cryptoknight12, aanjz09123, rishi556, giftgiver, hextech, timcliff, psg3196, teenagecrypto, ketcom, picciridda2, sanjeevm, mattclarke, softworld, santigs, drakos, stranger27, brianoflondon, koosventerza, jiva3434, yuriy4, waqasrizvi, waytolifecare, kargul09, gadrian, fooblic, gadrian-sp, imbartley, marki99, bib15hash, espoem, erikah, b00m, spamfarmer, jedigeiss, tazi, yoogyart, prameshtyagi, actnearn, landshutbrauhaus, cheongpyeongyull, adwas33, borjan, ervin-lemark, jamesbattler, diebaasman, gulf41, reavercois, reaverza, pietpompies, andimywapblog12, androshchuk, dotwin1981, gamer0815, kaldewei, twinner, dein-problem, trustwallet, fingolfin, farizal, vikisecrets, saleg25, felix.herrmann, hiveupme, judasp, ozelot47, maxxie, bitt.nerd, bitt.bot, daio, theholystuhl, artpoet, famegirl, mgzayyar, the100, fauzimuhamad, drag33, jphamer1, stefano.massari, goldrooster, felixxx, giuatt07, jaguar18, circa, ttg, broncnutz, tomhall.leo, arshaka, daring-celt, sujaytechnicals, akkibadboy, stickstore, redaktion, quekery, steemillu, newsticker, steemcartel, hiq, smooms, titusfrost, pawanregmi28, nadhora, ditsch, muhammedfit, abrockman, everythingsmgirl, peakd, dkt333, steempower-001, agmoore, atnep111, tjayhas, jkramer, darewealth, sampraise, mare123, twunders, olllieeee, chinchilla, atanas007, ausbitbank, cubapl, jeanpi1908, j-p-bs, coolenglish, johnolusegun, druglord247, manwojciech, dougbudlong, marian0, achim86, ssekulji, wil.metcalfe, techtek, thisnewgirl, mattockfs, victoria-bella, jasonbu, tattytoque, cambalache, chitty, arabisouri, ahmedsy, munawar1235, quantumg, bcgator, sidwrites, andrewmusic,