greinacker / py-tradervue-api

Python API and utilities for interacting with TraderVue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Tradervue API

This repository contains a Python implementation of the Tradervue API and small command line client example. The API currently supports all publicly available Tradervue endpoints:

  • Trade management
  • Importing & querying trade executions
  • User management
  • Journal entry management
  • Journal notes management

Documentation

Example usage

import datetime
from tradervue import Tradervue
tv = Tradervue(username, password, user_agent)
trades = tv.get_trades(symbol = 'OEX', startdate = datetime.date(2015, 9, 1))
for t in trades:
  print "Trade %s Profit/Loss: $%s" % (t['id'], t['gross_pl'])

API TODO

  • Convert times to datetime objects
  • Make returned dicts objects with attributes instead

About

Python API and utilities for interacting with TraderVue

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%