AT YOUR OWN RISK!
A simple naive bot to buy shares from qualified subjects. A qualified subject satisfies any of the following requirements:
- A subject is considered qualified if the share supply of that subject is great enough (e.g > 10)
- A subject is considered qualified if a qualified subject bought his/her share.
Why define "qualified subjects" as above?
- The subject that satisfies the first condition may be a KOL. However his share is too expensive, it is riskier and capital-inefficient to buy these shares.
- The subject that satisfies the second condition could also be a KOL. And if his share is cheap, he may be just onboarding
friend.tech
. And there is a high possibility that he will gather more holders.
read this for more.
export PRIVATE_KEY=xxxx
yarn run:buy
Change MAX_PRICE_PERSHARE
in constants.ts, if you can accept more expensive shares.
The current list of qualified subjects is built at block #2521441
. If you want to rebuild the list of qualified subjects, run the following cmd:
yarn rebuild-qualified
Running this cmd would override db.sqlite
.
Use the following cmd to analyze your PnL:
yarn run:pnl
If some spammer finds this repo and learns the strategy that I used. He may spam my bot.