Ruby script that calls the Bloomberg Markets API, if running in terminal it will spit out as JSON. I've attached a quick Terminal cap of myself running it so you can see how it functions.
chmod u+x bloombergapicall ruby bloombergapicall
Written by Montana Mendy.