Skip to content

Instantly share code, notes, and snippets.

@atomlab
Last active January 7, 2021 21:32
Show Gist options
  • Save atomlab/f72a43d97cfc57cf24f68a6e82f7c956 to your computer and use it in GitHub Desktop.
Save atomlab/f72a43d97cfc57cf24f68a6e82f7c956 to your computer and use it in GitHub Desktop.
// Switch current database to "history"
db = db.getSiblingDB('history');
// The mark for cutting initial output off
print("CUT_TO_HERE");
rs.slaveOk();
// Main output
// "toArray()" method allows to get all records
printjson( db.getCollection('LastWeekRates').find({coin: {$in:["AE", "ADA", "ARK", "BCD", "BCH", "BNB", "BSV", "BTC", "BTG", "DCR", "DGB", "EOS", "ETC", "ETH", "GAS", "GRS", "ICX", "KIN", "LTC", "NEO", "ONG", "ONT", "RVN", "TRX", "BTT","TRX-USDT", "WIN", "JST", "XLM", "XRP"]}, fiat: 'USD'}).toArray());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment