Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 798 Bytes

File metadata and controls

31 lines (21 loc) · 798 Bytes

A python wrapper for the Tradeking API

Usage

Obtain OAuth keys/secrets from TradeKing.

import tradeking

CONSUMER_KEY = 'consumer_key'
CONSUMER_SECRET = 'consumer_secret'
OAUTH_TOKEN = 'oauth_token'
OAUTH_SECRET = 'oauth_secret'

tkapi = tradeking.TradeKing(consumer_key=CONSUMER_KEY,
                            consumer_secret=CONSUMER_SECRET,
                            oauth_token=OAUTH_TOKEN,
                            oauth_secret=OAUTH_SECRET)

quotes = tkapi.market.quotes('IBM')

Note

In the near future the format of parsed results will return Pandas objects instead of dictionaries.