Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

wellttllew/friend-tech-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

friend.tech Bot

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.

run the bot

export PRIVATE_KEY=xxxx 
yarn run:buy

Change MAX_PRICE_PERSHARE in constants.ts, if you can accept more expensive shares.

Rebuild the list of qualified subjects

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.

PnL

Use the following cmd to analyze your PnL:

yarn run:pnl

Risk

If some spammer finds this repo and learns the strategy that I used. He may spam my bot.

About

A simple bot to buy shares.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published