Automated trading of crypto with Coinbase Pro using C# utilizing technical analysis.
The source code can be adapted to work with equities (stocks), forex, commodities, or any markets where price/volume instruments can be gauged.
THIS IS A PROOF OF CONCEPT.
THIS IS NOT PRODUCTION QUALITY CODE.
TAKE THE KEY ASPECTS OF THE LOGIC AND CODE IT THE "RIGHT" WAY (CODING IT IN RUST INSTEAD OF C#).
TRADING IN CRYPTOCURRENCY INVOLVES A LOT OF RISKS.
KNOW WHAT YOU'RE DOING OR YOU'RE GOING TO END UP LOSING EVERYTHING.
I GURANTEE IT.
I (THE AUTHOR OF THIS WORK) TAKE NO RESPONSBILITY OF WHAT HAPPENS TO YOU OR YOUR TRADING ACCOUNT(S) IF YOU USE ANY ASPECT OF THIS WORK.
THE SOURCE CODE AVAILABLE IN THIS PROJECT IS ONLY FOR EDUCATIONAL STUDY.
TRADING PURELY ON TECHNICAL ANALYSIS ALSO CARRY RISKS AS THERE ARE "FALSE SIGNALS" (I.E. BEAR/BULL TRAPS)
- Coinbase Pro account with API credentials
- MongoDB 5.x
- Microsoft .NET 6.0
- Microsoft Visual Studio
- MongoDB Compass
- Coinbase.Pro
- MongoDB.Driver
- Newtonsoft.Json
- Skender.Stock.Indicators
- Tulip.NETCore
- WebSocketSharp-netstandard
- Create a MongoDB database and setup the collections from the folder - "MongoDB_Schema".
- Create a CLI (command line interface) project and add the source code from this project.
- Add the required project dependencies listed above into your project solution.
- Fill in the Coinbase Pro API key information inside the collection "0_app_settings".
- Program.cs is the entry point.
YouTube discussing the critical parts:
https://www.youtube.com/watch?v=kl9Kju9Hur0
The project was built using Apple MacOS so there are OS specific calls that you will need to workaround (if you're on a different platform). An example, to trigger the audio sound when buying/selling a coin - the code utilizes the command line "afplay" which is MacOS specific. Windows/Linux systems can substitute with VLCPLayer command interface to mimic the same functionality.