Skip to content

tomily1/taapi_ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

taapi_ruby

Simple Wrapper to make API request to TAAPI.io API.

Installation

Add this line to your application's Gemfile:

gem 'taapi_ruby'

And then execute:

bundle install

Or install it yourself as:

gem install taapi_ruby

Usage

Configuration

First, configure the gem with your TAAPI.io API key. You can do this in an initializer file in a Rails application or at the start of your script:

TaapiRuby.configure do |config|
  config.api_key = 'your_api_key_here'
end

Making API Requests

Create a client instance and use it to make requests to the TAAPI.io API. For example, to get the RSI indicator:

client = TaapiRuby::Client.new
response = client.get_indicator('rsi', symbol: 'BTC/USDT', interval: '1h', exchange: 'binance')
puts response

Example Response

The response will be a parsed JSON object. For example:

{
  "value": 70
}

About

Simple Wrapper to make API request to TAAPI.io API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages