OmniAuth strategy for the Tradier API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
spec
.gitignore
.rspec
.travis.yml
.yardopts
Gemfile
Guardfile
LICENSE.md
README.md
Rakefile
omniauth-tradier.gemspec

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.