
Introducing WKOIN Seller - bot to dinamically change the price of sell orders
Repository
https://github.com/joticajulian/wkoin-seller
What is WKOIN?
WKOIN is a wrapped token for KOIN (see https://koinos.io) created and controlled on Hive-Engine by @harpagon. See the introduction post for more details.
Motivation
Hive-Engine gives the possibility to place buy/sell orders in the market. However, it is not possible to set a price that dinamically changes based on the price in external exchanges, like Uniswap.
Bot seller
This bot checks the price of Hive and Koin periodically (each 10 minutes) on coinmarketcap and uniswap respectively. And it updates the sell order on Hive Engine taking into account the new prices. The bot also uses a factor price to define how much above the current price it wants to sell in order to get a profit.
Preparation
The bot uses coinmarketcap to get the current price of Hive and an API KEY is required to use this service. Go to https://coinmarketcap.com/api/ to request a free api key.
Installation
Create a .env file taking a copy of .env.example and set the corresponding variables.
- ACCOUNT: hive account.
- ACTIVE_KEY: active key.
- QUANTITY: Amount of Wkoin placed in the sell order. When a sell order is filled a new sell order is created with the same quantity.
- PRICE_FACTOR: Multiplication factor to set the price above (or below) the current price on uniswap.
Install dependencies
$ npm run install
Start the bot
$ npm run start
Trading pair
https://hive-engine.com/?p=market&t=WKOIN
I already sent some wkoin to the market to create some liquidity.
Thanks to the fee-less transactions on Hive it is possible to make trading without using the high fees of Ethereum.
Leave Introducing WKOIN Seller - bot to dinamically change the price of sell orders to:
Read more #koinos posts
Best Posts From Julián González
We have not curated any of jga's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Julián González
- The Koinos Fund System is Live!
- Manuscript: Koinos wallet that supports hardware wallets
- Kondor v1.0.0 is live
- Nicknames: Option to update the pointing address
- New version v0.10 of Kondor Wallet
- New Tool "Arkinos": Create and deploy Koinos contracts FAST
- Governance proposal in Koinos Mainnet (second try)
- The gov proposal has been submitted in Koinos mainnet
- New Koinos System Call live in the Testnet
- Improved algorithm for Koinos Nicknames!