Coder Social home page Coder Social logo

coinboss's Introduction

serverless Coverage-Status Build-Status


Automagically buy BTC, ETH or LTC on Coinbase, based on user defined thresholds.

Tradingbots: Typically, bots perform tasks that are both simple and structurally repetitive, at a much higher rate than would be possible for a human alone.

Architecture

coinboss

Prerequisites

Yarn

For node module management Coinboss uses Yarn over NPM.

To install yarn globally on your machine please check Installing Yarn.

After that you can install all service dependencies with:

yarn

Coinbase

You need a Coinbase.com API key with the following permissions:

  • wallet:accounts:read
  • wallet:buys:create
  • wallet:payment-methods:read
  • wallet:sells:create

Quick Start

  1. Setup project

This is a convenience method to install a pre-made Serverless Service locally by downloading the Github repo and unzipping it. Services are listed below.

serverless install -u https://github.com/nicka/coinboss
  1. Install development dependencies
yarn
  1. Setup environment
cp .env.example .env.dev
  1. Update configuration within .env.dev

  2. Deploy your Coinboss

STAGE="dev" yarn run deploy

How

cloudwatch-dashboard

Coinboss is triggered based on CloudWatch alarms. The thresholds can be found within the projects .env.example.

Test

For testing Coinboss uses Jest, for more information please check their documentation.

NOTE: To update Jest snapshots supply -- -u to any of the test commands.

Running the tests

yarn run test

Code coverage

In order to inspect code coverage:

open coverage/lcov-report/index.html

Simulate

Local API Gateway simulation.

STAGE="dev" yarn run serve

Build

Create build artifacts.

STAGE="dev" yarn run build

Deploy

Deploy build artifacts.

STAGE="dev" yarn run deploy

Todo

  • Increase test coverage
  • Add support for percentage thresholds
  • Add more currency alarms

coinboss's People

Contributors

nicka avatar svdgraaf avatar

Watchers

James Cloos avatar Trevor Harwell 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.