Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valb3r/gtc-all-repo
Spring Boot cryptocurrency trading bot
https://github.com/valb3r/gtc-all-repo
bitcoin cryptocurrency java microservices spring-boot trading-bot
Last synced: 19 days ago
JSON representation
Spring Boot cryptocurrency trading bot
- Host: GitHub
- URL: https://github.com/valb3r/gtc-all-repo
- Owner: valb3r
- License: mit
- Created: 2018-06-16T08:18:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T09:47:24.000Z (almost 5 years ago)
- Last Synced: 2024-10-10T05:37:37.129Z (about 1 month ago)
- Topics: bitcoin, cryptocurrency, java, microservices, spring-boot, trading-bot
- Language: Java
- Homepage:
- Size: 763 KB
- Stars: 14
- Watchers: 5
- Forks: 9
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Microservice-based cryptocurrency trading bot (WebSocket API)
This is crypto-trading bot with support for multiple crypto-exchanges using their websocket API for book retreival,
orders in most cases are placed using REST api (with rate limiting).It that has following strategies:
1. cross-exchange arbitrage strategy
2. neural-network strategy to estimate future price when trading on single exchange.**Supported exchanges**
- Binance
- Bitfinex
- Gdax
- Hitbtc
- Huobi
- Okex
- TheRockTrading
- Wex**Main components (microservices)**
- Provider (inbound adapter). Ingests websocket book data from exchange and transforms it into internal structure.
- Xo-Opportunity-Trader. Statemachine-based bot that creates orders based on selected strategy.
- Shared. Common repository
- Gateway (outbound adapter). Submits orders and provides common order management interface.
- Persistor. Stupid-simple component that allows to persist historical order book data.**Order creation sequence diagram (module level)**
![Order creation diagram](http://www.plantuml.com/plantuml/proxy?src=https://raw.githubusercontent.com/valb3r/GTC-all-repo/master/flow-sequence.puml&fmt=png&vvv=1)**Extra dependencies**
You need MySQL instance for Xo-Opportunity-Trader to work - it persists opened/closed orders, statistics and audit there,
all other modules do not have extra dependencies.**Deployment**
Each executable module is supplied with Google Cloud-Kubernetes deploy file located in gce/deploy.yaml