Em::Nordnet
Eventmachine driven wrapper for the Nordnet REST and Feed API. Comes with a golith plugin for connecting to the feed sockets.
Installation
Add this line to your application's Gemfile:
gem 'em-nordnet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install em-nordnet
Usage
Configuration
After installing the gem you can configure it with your own credentials
Em::Nordnet.configure do |config|
config.url = 'https://api.test.nordnet.se'
config.user = 'john'
config.password = 'doe'
config.service = 'NEXTAPI'
config.pem = <<-CERT
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkq...
-----END PUBLIC KEY-----
CERT
end
The configuration may be accessed by Em::Nordnet.config
Models
Em::Nordnet comes with a few models to make actions more Object-oriented
Em::Nordnet::Instrument
Em::Nordnet::Account
Em::Nordnet::Order
REST API
Private Feed
Public Feed
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request