A sample FaaS function that gets a stock quote and 30 day history by symbol and returns a HTML page with a generates SVG sparkline.

faas stonks

This uses serverless technology to get a stock quote and 30 day sparkline from Yahoo Finance.

Deployment

  • Nimbella account
  • Namespace with object storage enabled
  • Deploy command: nim project deploy stonks --remote-build

Note: the --remote-build is required to build this Go function into a binary before deploying the action.

Development

Note: dev/run includes the build tag dev, this includes the main function file which conflicts during builds in production

Special thanks

DigitalOcean Referral Badge

Similar Resources

Pi-hole data right from your terminal. Live updating view, query history extraction and more!

Pi-hole data right from your terminal. Live updating view, query history extraction and more!

Pi-CLI Pi-CLI is a command line program used to view data from a Pi-Hole instance directly in your terminal.

Dec 12, 2022

Integrated console application library, using Go structs as commands, with menus, completions, hints, history, Vim mode, $EDITOR usage, and more ...

Integrated console application library, using Go structs as commands, with menus, completions, hints, history, Vim mode, $EDITOR usage, and more ...

Gonsole - Integrated Console Application library This package rests on a readline console library, (giving advanced completion, hint, input and histor

Nov 20, 2022

Pure Go command line prompt with history, kill-ring, and tab completion

Prompt Prompt is a command line prompt editor with history, kill-ring, and tab completion. It was inspired by linenoise and derivatives which eschew u

Nov 20, 2021

Pure Go line editor with history, inspired by linenoise

Liner Liner is a command line editor with history. It was inspired by linenoise; everything Unix-like is a VT100 (or is trying very hard to be). If yo

Jan 3, 2023

Create new commands from your shell history or terminal.

overdub Create new commands from your shell history or terminal. TODO list for initial release Filter out unlikely commands (e.g. package managers) fr

Aug 9, 2022

🏗️ Fetch a specific commit without any history (shallow depth w/o cloning)

shallow-fetch-sha 🏗️ For a given git repository and commit, fetch and checkout just that commit without any history. This can be extremely useful in

Nov 27, 2021

A simple CLI tool that outputs the history of connections to Amazon EC2 instances using AWS Session Manager.

ssmh This is a simple CLI tool that outputs the history of connections to Amazon EC2 instances using AWS Session Manager. Installation brew install mi

Dec 10, 2021

Alfred workfow for search safari history.

Alfred workfow for search safari history.

Alfred Safari Toolkit This is an Alfred workflow for Safari. I have been using tupton/alfred-safari-history for years, but it runs with Python2 which

Dec 17, 2022

Mirror - Mirror is command line tool for mirroring a web page

Mirror - Mirror is command line tool for mirroring a web page

mirror mirror is command line tool for mirroring a web page. Caution Do not abus

May 29, 2022
Make any Go function into a API (FaaS)

faas Make any (Go) function into an API with one HTTP request. This is a FaaS: functions as a service. But, in actuality, its more of a FaaSSS: functi

Dec 30, 2022
🎭👄 Like cowsay but it's random anime quote
🎭👄 Like cowsay but it's random anime quote

?? ?? weebsay - cowsay but it's random anime quote ?? aesthetics inspired by TorchedSammy follow him he is a good guy Installation ?? go get -u github

Dec 11, 2022
Client for birthday quote API.

Birthday Quote API Client This is the client for a silly project I've made. The client will try to get a random birthday quote from the API and write

Dec 8, 2021
OS Command Execution and Gets the output

OS Command Execution and Gets the output https://stackoverflow.com/questions/24095661/os-exec-sudo-command-in-go/24095983#24095983 https://stackoverfl

Dec 24, 2021
Gets joke from icanhazdadjoke.com, prints it

hakjoke Gets joke from icanhazdadjoke.com, prints it Installation go get -u github.com/hakluke/hakjoke Usage Run command. Get joke. ~$ hakjoke Why di

Jul 21, 2022
Terminal stock ticker with live updates and position tracking
Terminal stock ticker with live updates and position tracking

Ticker Terminal stock watcher and stock position tracker Features Live stock price quotes Track value of your stock positions Support for multiple cos

Jan 8, 2023
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal.
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal.

Stonks is a terminal based stock visualizer and tracker. Installation Requirements: golang >= 1.13 Manual Clone the repo Run make && make install Pack

Dec 16, 2022
Boss-Stock Fiber (Go) and MongoDB REST API

Boss-Stock Fiber (Go) and MongoDB REST API An API built with Fiber and MongoDB. Installation go mod init go get -u github.com/gofiber/fiber/v2 go get

Apr 25, 2022
Print day progress in your terminal

Day progress Print day progress in your terminal Install go install github.com/tsivinsky/day-progress@latest Usage day-progress By default, day-progre

Jan 10, 2022
🎄 Go code coverage to SVG treemap

?? Go cover to Treemap Useful when you have large project with lots of files and packages $ go install github.com/nikolaydubina/go-cover-treemap@lates

Jan 9, 2023