Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

OmniAuth Tradier

Gem Version Build Status Dependency Status Coverage Status

This is the official OmniAuth strategy for authenticating with Tradier's API. To use it, you'll need a Client ID and Secret which can be obtained from developer.tradier.com.

Usage

Add the strategy to your Gemfile:

gem 'omniauth-tradier'

Then integrate the strategy into your middleware:

use OmniAuth::Builder do
  provider :tradier, ENV['CLIENT_ID'], ENV['SECRET']
end

In Rails, you'll want to add to the middleware stack:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :tradier, ENV['CLIENT_ID'], ENV['SECRET']
end

Scopes

Tradier's API lets you set scopes to provide granular access to different types of data:

use OmniAuth::Builder do
  provider :tradier, ENV['CLIENT_ID'], ENV['SECRET'], :scope => "read,write,trade"
end

For more information on available scopes, refer to Tradier's API documentation.

Copyright

Copyright (c) 2013 Tradier Inc. See LICENSE for details.

About

OmniAuth strategy for the Tradier API

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.