Skip to content

a service of checking rollback possibilities by a given trade at ccxt api's

Notifications You must be signed in to change notification settings

valkuere/ccxt-rollback-service

Repository files navigation

ccxt-rollback-service

Spike Demo for lookup at CCXT ticker and order books api's to verify if a trade is reversible in any direction.

Prerequisites

  • Node.js LTS 8.12.0 (best via NVM)
  • NPM 6.4.1
  • Typescript 3.1.3

Installing

npm install

Getting Started

After installing launch api by npm run start and check the examples below.

Development

Run npm run start:dev or npm run start:debug to start hacking

Build

npm run build:prod

Tests

tbd

Linting + Formatting

This repo use Prettier and TSLint+ESLint

  • npm run lint
  • npm run format

Examples

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

About

a service of checking rollback possibilities by a given trade at ccxt api's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published