Category Archives: Exclusives

How do I create an efficient PHP ingest script?

‘Efficient’ is the key word here. In the case below, I’m grabbing form 4 data from the SEC (insider trading disclosures) and saving them locally on my server. 12345678910111213141516<?php $file = file_get_contents('http://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent&type=4&company=&dateb=&owner=include&start=0&count=100&output=atom');     $xml = simplexml_load_string($file); $accessionNumberArray[] = ''; //instantiates the array we'll use to keep out dupes from this pull. $accessionNumberArrayLastLog[] = ''; [...]
Posted in Exclusives | Leave a comment

How to think like a hedge fund manager

I’ve been on an investing book kick lately, and I recently read Joel Greenblatt’s classic (from the 90s), You Can Be A Stock Market Genius.  Michael Lewis mentioned the book more than once in The Big Short, indicating that it was the manual for the handful of financial whizzes who predicted the near-collapse of capitalism [...]
Also posted in Money | Leave a comment

Data trading for value investors

For all the badgering that the Chicago School has taken in the months following the market collapse, the efficient market theorists got one thing right: markets react fast to new information. There’s a lovely scene in “Fun with Dick and Jane” that illustrates this perfectly: The markets really do react this quickly! I remember an [...]
Posted in Exclusives | Leave a comment