Code Monkey home page Code Monkey logo

finnhub-stock-analysis-go's Introduction

FinnHub stocks analysis

This project is implemented as a part of a homework exercise for [077] - Real Time Embedded Systems course of ECE Department, AUTh.

This fetches stock information changes as they happen in real time, using websockets, runs some analysis and persists the information as it becomes available. It should consume the least cpu it can as it should be able to be deployed in a microcontroller.

Getting Started

Prerequisites

  1. Go To install them on variant Linux distributions follow the instructions below

Fedora

$ sudo dnf upgrade --refresh # updates installed packages and repositories metadata
$ sudo dnf install golang # or follow official instructions https://go.dev/doc/install

Ubuntu

$ sudo apt-get update && sudo apt-get upgrade # updates installed packages and repositories metadata
$ sudo apt-get install golang # or follow official instructions https://go.dev/doc/install

Build & Run

First, go to finnhub.io and get a free API Key. Save it for later use.

Then to build the application:

  1. Fetch the dependencies; this is optional as go will fetch all needed deps during build
    $ go mod download
  2. Compile the project
    $ go build -o finnhub-stock-analysis-go # in the -o flag add whatever name you want.  
    To cross-compile for Raspberry Pi, just add the environment param GOARCH=arm or GOARCH=arm64 depending on the architecture of your RP.
    $ GOARCH=arm64 go build -o finnhub-stock-analysis-go
    If you are compiling on the RP, just run the first command. GO compiler should pick your architecture automatically.
  3. Run the binary
    $ ./finnhub-stock-analysis-go  --token <your-finnhub-token> --stocks <stockSymbol> --stocks <stockSymbol>

finnhub-stock-analysis-go's People

Contributors

pkarakal avatar

Stargazers

 avatar

Watchers

 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.