Jump to content

Stock Quote workflow


Recommended Posts

  • 3 weeks later...
  • 4 months later...

By changing the script just slightly, you can make this workflow also support looking up generic ticker symbols, making you go from just "stock" to allowing "stock goog" for example, showing the quote inline. You also need to set "argument optional" and check "with space"

#!/bin/bash

cat << EOB
<?xml version="1.0"?>
<items>
EOB
SYMBOLS="{query}"
if [ -z "$SYMBOLS" ]
then
  SYMBOLS=$(cat "$(pwd)/symbols" | sort -u | grep -v '^$');
fi
Edited by kopertop
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...