Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrenerd/coinalist
Cryptocurrency exchange-agnostic api framework
https://github.com/andrenerd/coinalist
api asset bot crypto cryptocurrency dump exchange market pump shitcoin token trade trading
Last synced: about 1 month ago
JSON representation
Cryptocurrency exchange-agnostic api framework
- Host: GitHub
- URL: https://github.com/andrenerd/coinalist
- Owner: andrenerd
- License: mit
- Created: 2018-04-27T22:12:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T21:35:53.000Z (over 4 years ago)
- Last Synced: 2024-10-15T09:19:32.037Z (2 months ago)
- Topics: api, asset, bot, crypto, cryptocurrency, dump, exchange, market, pump, shitcoin, token, trade, trading
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coinalist
High level cryptocurrency exchange-agnostic framework for real time monitoring, trading and analytics. Based on easy to use "streams" and "observables" paradigm, as specified and implemented by [ReactiveX](https://github.com/ReactiveX/rxjs).Status: alpha
```
const coinalist = require('coinalist');
const { config, exchange: { ExchangeBinance } } = coinalist;
const { BTCUSD, BTCUSDT } = config.market.values;
const { BUY, SELL } = config.side.values;const exchange = new ExchangeBinance();
exchange.init([BTCUSDT,]);const marketBook = exchange.markets[0].books[BUY];
marketBook.subscribe(marketBook => {
console.log('Order book (top etries):\n', marketBook.orders);
});
```Expected output on the order book updates:
```
...
Order book (top etries):
[ [ 7628, 4.238912 ],
[ 7627, 27.943388 ],
[ 7626.33, 0.07916 ],
[ 7626.2, 0.655634 ],
[ 7625.55, 0.001312 ],
[ 7625.07, 0.011624 ],
[ 7625.02, 0.0014 ],
[ 7625, 0.334699 ] ]
Order book (top etries):
[ [ 7628.34, 1 ],
[ 7628, 4.238912 ],
[ 7627, 27.943388 ],
[ 7626.33, 0.07916 ],
[ 7626.2, 0.655634 ],
[ 7625.55, 0.001312 ],
[ 7625.07, 0.011624 ],
[ 7625.02, 0.0014 ],
[ 7625, 0.334699 ],
[ 7612.41, 1.5 ] ]
...
```