Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aboutlo/devbot
https://github.com/aboutlo/devbot
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aboutlo/devbot
- Owner: aboutlo
- Created: 2020-10-18T21:53:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T21:54:21.000Z (about 4 years ago)
- Last Synced: 2024-11-07T20:45:19.741Z (about 2 months ago)
- Language: TypeScript
- Size: 83 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deversifi Bot
# prerequisites
Use Node 14.
If nvm is installed just `nvm use` the `.nvmrc` will be used to fetch the right node version# Launch the bot
- Install by running `yarn`.
- Run `yarn build` to compile
- Run `yarn start` to start the bot# Performance
Given this was an assignment to finish in 4 hours I kept everything in memory.
To improve the performance I would move everything to an event based architecture.
Then rather than use a REST endpoint I will subscribe to a socket to listen the events in real time.
OrderRepo should read and write from a proper db.
On every create, update order and event should be triggered so that the Wallet and the Strategy can update what is required.
The strategy is the consumer of the socket to decide on every tick how to adapt to the changed conditions.