All Projects → Tucsky → aggr-server

Tucsky / aggr-server

Licence: other
Cryptocurrency trades aggregator (server side)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aggr-server

binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (-46.34%)
Mutual labels:  trading
wolf
🐺 Binance trading bot for node.js
Stars: ✭ 76 (-7.32%)
Mutual labels:  trading
openmev-sdk
@openmev/sdk
Stars: ✭ 19 (-76.83%)
Mutual labels:  trading
coincube
A Python/Vue.js crypto portfolio management and trade automation program with support for 10 exchanges.
Stars: ✭ 85 (+3.66%)
Mutual labels:  trading
trading-bot
Trading bot for cryptocurrencies and stocks
Stars: ✭ 21 (-74.39%)
Mutual labels:  trading
rl trading
No description or website provided.
Stars: ✭ 14 (-82.93%)
Mutual labels:  trading
awesome-tradingview
Curated list of noteworthy TradingView Strategies, Indicators and Alert Scripts for Trading Bots (PineScript)
Stars: ✭ 173 (+110.98%)
Mutual labels:  trading
hurtrade
An Open Source Forex Trading Platform
Stars: ✭ 22 (-73.17%)
Mutual labels:  trading
pancakeswap-prediction-winner
🔥 PancakeSwap is afraid of this CHROME EXTENSION (and CLI)! This bot wins almost every 5 minute BNB-USD option on PancakeSwap (and Candle Genie).
Stars: ✭ 229 (+179.27%)
Mutual labels:  trading
btrccts
BackTest and Run CryptoCurrency Trading Strategies
Stars: ✭ 100 (+21.95%)
Mutual labels:  trading
Mida
The open-source and cross-platform trading framework
Stars: ✭ 263 (+220.73%)
Mutual labels:  trading
Insider-Trading
This program extracts insider trading data from the sec website and stores it in excel file for the specified time frame.
Stars: ✭ 43 (-47.56%)
Mutual labels:  trading
algobox
Open Source algorithmic trading platform in Java / Python
Stars: ✭ 90 (+9.76%)
Mutual labels:  trading
gym-mtsim
A general-purpose, flexible, and easy-to-use simulator alongside an OpenAI Gym trading environment for MetaTrader 5 trading platform (Approved by OpenAI Gym)
Stars: ✭ 196 (+139.02%)
Mutual labels:  trading
dukascopy-tools
✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
Stars: ✭ 128 (+56.1%)
Mutual labels:  trading
btrader
Triangle arbitrage trading bot for Binance
Stars: ✭ 197 (+140.24%)
Mutual labels:  trading
binaryapi
Binary.com & Deriv.com API for Python
Stars: ✭ 32 (-60.98%)
Mutual labels:  trading
guncontrol
🔔 GunControl • Custom *nix launcher for GunBot
Stars: ✭ 16 (-80.49%)
Mutual labels:  trading
Directory
General information about the Open Markets Initiative
Stars: ✭ 31 (-62.2%)
Mutual labels:  trading
tradingview-alert-binance-trader
This trading bot listens to the TradingView alert emails on your inbox and executes trades on Binance based on the parameters set on the TD alerts.
Stars: ✭ 153 (+86.59%)
Mutual labels:  trading

aggr-server

Autonomous multi market trades monitoring, storing and resampling solution.

How to install

  1. Clone the repo and get into the working dir
git clone https://github.com/Tucsky/aggr-server
cd aggr-server
  1. Install dependencies
npm install
  1. If you want to configure server using json, move exemple as "config.json" inside root directory and edit configuration.
cp config.json.example config.json
nano config.json
  1. Run server
node index

Configuration

All settings are optional and can be changed in the server configuration file (rename config.json.example into config.json).

// see [server configuration file](src/config.js) for all server options

All options can be set using CLI

  • Setting port node index port=3001
  • Setting port & pair node index port=3002 pairs="COINBASE:ETH-USD"
  • Setting port & multiple pairs node index port=3002 pair="COINBASE:ETH-USD,BINANCE:ethusdt"

You may use specific config file using the config argument :

node index config=custom.config.json

Working with clusters

When watching hundred of markets you may want to run multiple instances of this project.

This server is now designed to work with multiple collectors instances + one api node

  • A collector is dedicated to listening for trades and storing the data of a given set of markets (using influxDB)
  • A api node serves the data to the client, using influxDB as a main source but WILL query the collectors in order to ensure ALL data is send including the one NOT YET stored in influxdb

Say you have 2 config files using influx storage :

  • one for the api node (api set to true, collect set to false)
  • one for the collectors nodes (api false and collect true) Both with influxCollectors enabled

Then use with 1 api instance and 2 collectors

node index config=api.config.json
node index config=collector.config.json pairs="COINBASE:ETH-USD,BITSTAMP:ethusdt"
node index config=collector.config.json pairs="COINBASE:BTC-USD,BITSTAMP:btcusdt"

How to install: Docker

➜ docker-compose build
➜ docker-compose up -d

This will give you a running server on http://127.0.0.1:3000 with mounted ./data volume.

See ./env file for some basic configuration.

Watch logs using docker logs -f st-server.

Uncomment influx part in docker-compose.yml and set STORAGE=influx in .env to start using influxdb as a storage.

If you like what is being done here, consider supporting this project !

ETH 0xe3c893cdA4bB41fCF402726154FB4478Be2732CE
BTC 3PK1bBK8sG3zAjPBPD7g3PL14Ndux3zWEz
XMR 48NJj3RJDo33zMLaudQDdM8G6MfPrQbpeZU2YnRN2Ep6hbKyYRrS2ZSdiAKpkUXBcjD2pKiPqXtQmSZjZM7fC6YT6CMmoX6
COINBASE https://commerce.coinbase.com/checkout/c58bd003-5e47-4cfb-ae25-5292f0a0e1e8

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].