https://github.com/andrebraghini/killb-challenge
https://github.com/andrebraghini/killb-challenge
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrebraghini/killb-challenge
- Owner: andrebraghini
- Created: 2023-01-11T21:03:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T21:38:50.000Z (over 3 years ago)
- Last Synced: 2025-02-25T03:26:31.819Z (over 1 year ago)
- Language: TypeScript
- Size: 116 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KillB Challenge
## Install
Make sure you have Node.js installed.
Then run the commands below to install dependencies and run the service.
Before start the service, you can change the list of exchanges to use in the `.env` file.
```bash
# Install dependencies
npm install
# Start service
npm start
```
## Usage
Run the command below to make one or more arbitrages.
```bash
curl --location --request POST 'http://localhost:3000/arbitrage' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"symbol": "USD/MXN",
"value": 50
},
{
"symbol": "USDC/BRL",
"value": 50000
}
]'
```
## Tasks
- [x] Code scaffolding
- [ ] Setup database and repositories
- [x] Connect to exchanges
- [x] Develop arbitrage algorithm
- [x] Adapt arbitrage algorithm to deal with multiple entries
- [ ] Implement data records
- [ ] Dump database with 30 operations during a 2h period
- [ ] Write readme instructions
- [ ] Upload source code to git repo