Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wrighter
wrighter / download_bars.py
Last active March 28, 2024 00:55
A command line utility to download historical data from Interactive Brokers
#!/usr/bin/env python
import os
import sys
import argparse
import logging
from datetime import datetime, timedelta
from typing import List, Optional
from collections import defaultdict
@wrighter
wrighter / get_ticks.py
Created January 23, 2020 23:45
A basic Interactive Brokers command line Python application to fetch streaming market data.
#!/usr/bin/env python
""" A simple Interactive Brokers application that will fetch
current market data for a contract from the IB TWS/Gateway. """
import argparse
import logging
from typing import List
from ibapi import wrapper
@wrighter
wrighter / aapl_zipline.ipynb
Last active December 9, 2019 00:06
Shows a few simple zipline backtests
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wrighter
wrighter / iex_cloud.ipynb
Created November 15, 2019 14:31
Demonstrates some ways to use IEX Cloud to fetch financial data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wrighter
wrighter / present_value.ipynb
Last active October 1, 2019 12:55
Present Value
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.