Simple Wrapper to make API request to TAAPI.io API.
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
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
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
The response will be a parsed JSON object. For example:
{
"value": 70
}