Hey everyone,
A little while back, I shared a script I use to automatically sell HBD for HIVE on the internal market because, well, I'm lazy and prefer to automate things. I've now taken that concept a step further and expanded the tool!
Introducing Hive-Engine Token Selling to auto-market
I've bundled the original HBD seller and this new Hive-Engine token seller functionality into a single project, now available in its own Git repository:
https://github.com/TheCrazyGM/auto-market
The big addition is a script/module that allows you to automatically sell specified Hive-Engine tokens for SWAP.HIVE. Just like the HBD seller, it's designed to:
- Work across multiple accounts using the active key authority of a primary account.
- Read configuration from a YAML file (for accounts, keys, and which tokens to whitelist for a total sell off).
- Check balances and place sell orders on the Hive-Engine.
Why No Code in This Post?
Since the HBD seller and the new Hive-Engine token seller now share some underlying logic for account handling, configuration, and Hive blockchain interaction, it's no longer a simple standalone script that's easy to drop into a blog post. The full, functional code with its shared components lives in the auto-market
GitHub repository linked above.
Quick Look:
To give you an idea, here's a screenshot of the Hive-Engine seller in action, automatically selling some BEE tokens for SWAP.HIVE from a couple of accounts:
The script checks the balance of the specified token (in this case, BEE), looks at the current market price on Hive-Engine, finds the best buy order to take, and places the sell order.
This is another tool built out of my own desire for automation and to avoid manual clicking through market UIs, especially when managing multiple accounts or wanting to consistently convert small amounts of various tokens.
If you're interested in automating your Hive or Hive-Engine market sells, feel free to check out the auto-market
repository. As always, remember that using your active keys in any script requires caution and understanding of what the script does.
Happy automating!
As always,
Michael Garcia a.k.a. TheCrazyGM