Skip to content

phuphighter/cmecloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CME Cloud

Ruby library for the Chicago Mercantile Exchange (CME) DataCloud API

Try it out

Set up the configuration with your API Token/Username found here:

Cmecloud.configure do |config|
  config.username = "email@domain.com"
end

Futures and Options Example:

response = Cmecloud::futures_and_options("GetLastFutureSettlement", {Exchange: "CME", ContractSymbol: "LEM2")  
response.body["ArrayOfFutureSettlement"]["FutureSettlement"]["Settlements"]  

=> #<Hashie::Mash Settlement=#<Hashie::Mash BlockVolume="0" Delay="0" EFPVolume="0" EFRVolume="0" EFSVolume="0" EOOVolume="0" ElectronicVolume="0" FutureProductKeyId="1416" OPNTVolume="0" OpenInterest="0" OpenOutcryAndPNTVolume="0" OpenOutcryVolume="0" Outcome="Success" PNTVolume="0" Price="0" SUBVolume="0" SettlementDate="7/2/2012 12:00:00 AM" TASBlockVolume="0" TASVolume="0" TotalVolume="0">>  

About

Ruby library for the Chicago Mercantile Exchange (CME) DataCloud - http://www.cmedatacloud.com/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages