hstradeking: Tradeking API bindings for Haskell

[ bsd3, finance, library, program ] [ Propose Tags ] [ Report a vulnerability ]

This is a Haskell binding for the TradeKing developers API (https:/developers.tradeking.com).

It currently supports retrieving quotes and stock information, as well as the quote and trade streaming API.

Support for the other TradeKing API endpoints is forthcoming.

To use, install the package via cabal. This will create an executable called tradeking. To connect to the TradeKing API, you will need to create a new personal application from the TradeKing developers site. This should give you four strings: an OAuth consumer key, an OAuth consumer secret, an OAuth Token, and an OAuth Token Secret. You supply these into the tradeking application using a configuration file (either `$(HOME)/.tradeking` or `etctradeking.conf`). This configuration file should look like:

consumer-key = <tradeking consumer key>
consumer-secret = <tradeking consumer secret>
oauth-token = <tradeking oauth token>
oauth-token-secret = <tradeking oauth token secret>

Now you can run `tradeking quote SPY` to have it return the current quote for the S&P 500 ETF. `tradeking info MSFT` will provide information on Microsoft, and `tradeking stream MSFT` will provide a live stream of MSFT quotes. All commands accept more than one stock, so `tradeking quote MSFT AAPL`, `tradeking info MSFT SPY`, and `tradeking stream SPY AAPL` work as expected (subject to TradeKing) limits.

You can also request quotes programmatically, using the API described here.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0
Dependencies aeson (>=0.6), attoparsec, base (>=3 && <5), bytestring (>=0.9), case-insensitive, conduit (>=1.0.12), configurator (>=0.2.0.2), containers, hoauth (>=0.3.5), hstradeking (==0.1.0), http-conduit (>=2.0.0.0), lifted-base (>=0.2), numbers, old-locale, resourcet (>=0.4), RSA (<=1.2.2.0), safe, text (>=0.11.3.1), time, transformers (>=0.3), vector [details]
License BSD-3-Clause
Author
Maintainer Travis Athougies <travis@athougies.net>
Category Finance
Source repo head: git clone git://github.com/tathougies/hstradeking.git
Uploaded by TravisAthougies at 2014-03-12T06:05:03Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables tradeking
Downloads 1156 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]