Bill's Continuing Life

Tag Archives: Python

Quick and Dirty QIF export of Robinhood Buy/Sells


#!/usr/bin/python3.7 # Export all Buy/Sell to QIF format import robin_stocks as r # Creds username = ” password = ” # Account name in program account_name = ‘Robinhood’ login = r.login(username,password) all_orders = r.orders.get_all_stock_orders() all_stock_symbols = [] all_instruments = [] all_orders.reverse() total_profit = float() total_stock_value = 0 for order in all_orders: instrument = order[‘instrument’] if […]