Created
October 26, 2015 21:09
-
-
Save danared/1323bbe050e150c4cbca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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