wellttllew / friend-tech-bot

A simple bot to buy shares.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:TypeScript 100.0%