Spike Demo for lookup at CCXT ticker and order books api's to verify if a trade is reversible in any direction.
- Node.js LTS 8.12.0 (best via NVM)
- NPM 6.4.1
- Typescript 3.1.3
npm install
After installing launch api by npm run start
and check the examples below.
Run npm run start:dev
or npm run start:debug
to start hacking
npm run build:prod
tbd
This repo use Prettier and TSLint+ESLint
npm run lint
npm run format
curl -X GET -H "Content-Type: application/json" --data '{"pair":"BTC/EUR","exchange":"kraken","volume":1.0,"price":5500,"direction":"buy"}' http://localhost:3000/v1/rollback/buy
curl -X GET -H "Content-Type: application/json" --data '{"pair":"BTC/EUR","exchange":"kraken","volume":1.0,"price":8000,"direction":"buy"}' http://localhost:3000/v1/rollback/buy