Simple Program To Buy and Sell Crypto.
- Buys and Sells are hard coded.
- Rules for determining when to buy and sell are hard coded.
brew install go
Always run the unit test coverage
make cover
make html
make run
- Authenticate
- Get list of possible buys. Hard Coded. Single Pair
- Get price
- Check price on schedule
- If price goes up 3% in a 2 hour period buy
- Raise stop order every 1% gain after 3% gain
- Sell at 8% after buy
- Sell if price goes 10% below buy.
- Unit Testing 70% requirement
- Use Mock/Imposter Interfaces where available to test packages in issolation.
- Errors will percolate to the top level processor.
- Errors at the top will result in no processing.
- What are the logging patterns here?
- Daily rotations?