Project

sygnal

0.0
No commit activity in last 3 years
No release in over 3 years
Generates sygnals for Sygnal.io prototype.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Sygnal Ruby Gem

A gem for generating market-based event notifications via Sygnal.io API

Installation

gem install sygnal

Sample Application

require 'sygnal'

sygnal_type_id = 2
api_key = 'YOUR_API_KEY'

s = SygnalGenerator.new(sygnal_type_id, api_key)

#create a theoretical event loop here that predicts if S&P 500 is likely to close near high of the day
#if s_and_p_close_near_high_probability > 0.8
	
	response = s.generate_sygnal(
		'S&P has an 80% liklihood of closing within 0.4% of the high of the day.'  
	)

	puts response.body

	#For now, generate_sygnal returns a Net::Http response object, see Net::Http docs for details

#end