Skip to content

Instantly share code, notes, and snippets.

@danared
Created October 26, 2015 21:09
Show Gist options
  • Select an option

  • Save danared/1323bbe050e150c4cbca to your computer and use it in GitHub Desktop.

Select an option

Save danared/1323bbe050e150c4cbca to your computer and use it in GitHub Desktop.
use marketdata //switches to the marketdata DB
db.minbars.findOne() //shows one sample document from the collection
{
"_id" : ObjectId("55fc881eb8c8b6db875e13fe"),
"Symbol" : "MSFT",
"Timestamp" : "2009-08-24 09:31",
"Day" : 24,
"Open" : 24.32,
"High" : 24.33,
"Low" : 24.28,
"Close" : 24.3,
"Volume" : 207651
}
>db.minbars.find().sort({Timestamp: 1}) //this show the first 20 records sorted - note they are every minute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment