Skip to content

Instantly share code, notes, and snippets.

View montelai's full-sized avatar

Monte Lai montelai

  • Hong Kong
View GitHub Profile
@montelai
montelai / download_bars.py
Created August 15, 2021 01:35 — forked from wrighter/download_bars.py
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