GithubHelp home page GithubHelp logo

tmac33 / sharesies-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deividfortuna/sharesies-bot

0.0 0.0 0.0 34 KB

Dollar-cost averaging on NZ Market Exchange ๐Ÿ’ฐ๐Ÿ‡ณ๐Ÿ‡ฟ

License: MIT License

Dockerfile 2.54% Makefile 0.96% Go 96.50%

sharesies-bot's Introduction

Auto Invest Sharesies NZ (Work in progress)

Currently, Sharesies NZ only support auto-invest for managed funds what creates the need for this application to apply dollar-cost averaging for companies on NZ Market Exchange.

The project is under heavy development so interfaces and structure of the configuration files might/will change. The current implementation is an MVP put together in a couple of hours.

Scheduler

Linux crontab compatible instruction for executing orders

Predefined

Entry Description Equivalent To
@yearly (or @annually) Run once a year, midnight, Jan. 1st 0 0 1 1 *
@monthly Run once a month, midnight, first of month 0 0 1 * *
@weekly Run once a week, midnight between Sat/Sun 0 0 * * 0
@daily (or @midnight) Run once a day, midnight 0 0 * * *
@hourly Run once an hour, beginning of hour 0 * * * *

More information:

Configuration

config/auto_invest.yml

sharesies:
  username: [email protected]
  password: password

balance:
  scheduler: 0 0 1 */6 * # 6 Month
  holds: 
    - reference: Delegat Group
      id: 0545fbc5-b579-4944-9057-55d01849a493
      weight: 50 # 50%
    - reference: ANZ
      id: 860a502e-d07c-435e-9dcc-7d4631a4ee21
      weight: 50 # 50%

buy:
  scheduler: "0 8 * * MON" # Monday 8am
  orders:
    - reference: Delegat Group # Only for log purpose
      id: 0545fbc5-b579-4944-9057-55d01849a493
      amount: 1.00
    - reference: ANZ # Only for log purpose
      id: 860a502e-d07c-435e-9dcc-7d4631a4ee21
      amount: 1.00

Docker Compose

version: "3"

services:
  sharesiesbot:
    image: deividfortuna/sharesies-bot:latest
    container_name: sharesies-bot
    volumes:
      - './config/:/config'
    restart: unless-stopped

sharesies-bot's People

Contributors

deividfortuna 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.