Socket
Socket
Sign inDemoInstall

github.com/bhambri94/asx-stocks-apis

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/bhambri94/asx-stocks-apis


Version published
Created
Source

asx-stocks-apis

This utliity is used to get a daily report for EOD Australian exchange stocks with details like Open, Close and also couple of formulas which tells us whether to buy or sell at current market price. This utility fetches the latest report daily using cronjob at end of day.

Setup


git clone https://github.com/bhambri94/asx-stocks-apis.git

cd asx-stocks-apis/

docker build -t asx-stocks-apis:v1.0 .

docker images ls

docker run -it --name asx-stocks-apis -v $PWD/src:/go/src/asx-stocks-apis asx-stocks-apis:v1.0

Cron job

To setup a Daily Cron job, please follow following steps:

cd asx-stocks-apis/

Vi bash.sh

#!/bin/bash
sudo /usr/bin/docker restart asx-stocks-apis

Save the sheet script and run command

chmod 777 bash.sh

Crontab -e

* 9 * * * /path_to_asx-stocks-apis_repo/bash.sh > /path_to_asx-stocks-apis_repo/asx-stocks-apis.logs

This above command written in crontab will run the script daily at 9AM UTC time.

FAQs

Package last updated on 01 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc