0.0
No release in over 3 years
Low commit activity in last 3 years
Client library for Massive.com's REST and Websocket API's. Massive (formerly Polygon.io) is an API for real-time and historical market data for stocks, crypto, and forex.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.3
~> 3.0
~> 3.0
~> 5.0
~> 13.0
~> 1.50
~> 6.0

Runtime

 Project Readme

Massive (Ruby)

Ruby client library for Massive.com (formerly Polygon.io) - Real-time and historical market data for stocks, crypto, and forex.

Table of Contents

  • Background
  • Installation
  • Usage
  • Ruby Support

Background

This is a client library for Massive.com's market data API. Please see Massive.com for full API documentation.

Ruby Support

  • Ruby 3.4+ supported
  • Uses Faraday 2.x for HTTP requests
  • ActiveSupport 7.x

Installation

Add this line to your application's Gemfile:

gem 'massiveclient'

And then execute:

$ bundle install

Usage

Create an instance of the client:

All methods follow the documentation found at Massive.com API Docs:

client = MassiveClient::Rest::Client.new(api_key)

# See tests for a full reference of all of methods
client.reference.tickers.list

client.stocks.list_exchanges

client.forex.historic_ticks

client.crypto.list # list exchanges

MassiveClient::Websocket::Client.new("crypto", api_key).subscribe("XQ.BTC-USD") do |event|
  pp "Incoming message"
  pp event
end