Code Monkey home page Code Monkey logo

crypto-dca's Introduction

crypto-dca

system_architecture_diagram

Purpose

When trading cryptocurrency for speculative purposes it is generally advised to buy low and sell high. However, due to the extreme volatility of cryptocurrency prices, it is often impossible to time the market profitably in this way. The strategy implemented by this system is simple dollar cost averaging. The intent is to buy small amounts of cryptocurrency on a fixed interval (every 1 day or less) over a somewhat longer period of time (1 or more years). This system is a low-cost method to automate small dollar value cryptocurrency purchases.

High Level System Description

There are two independent AWS Lambda functions currently implemented and they both operate in the same general way. The Lambda functions are triggered by an EventBridge rule that provides a JSON input to the Lambda function. When the Lambda function is triggered, the function decrypts stored encrypted API credentials, takes the input from the EventBridge JSON input, and makes the appropriate API call to the Coinbase Pro API. When the Lambda function receives the response from the Coinbase Pro API, it returns information about the response to Simple Notification Service (SNS) which is in turn sends an e-mail notification to the system owner.

Future Enhancement

There could still be significant price volatility even over relatively short buy intervals. Instead of buying at the same time over a fixed interval, an enhancement of the system could be to buy when the price appears to be at a minimum over the interval. For example, consider a system that buys exactly once per day at exactly 00:00. An enhancement could be to allow to the system to buy once at any time between 00:00 - 23:59 if the model predicts that the price at that time will be the lowest in that 24-hour period. Example inputs to this model could be standard technical indicators based on trading price and volume but could also include things like social media sentiment.

crypto-dca's People

Contributors

elliothuang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.