Last active
December 30, 2015 21:19
-
-
Save rchasman/7886377 to your computer and use it in GitHub Desktop.
A list of Market IDs from Cryptsy's API which they for some reason don't provide. Provided the script to generate this list. UPDATED: 12/21/2013 If this was helpful to you please consider donating! BTC: 1roeyDz8nU8k8dLXUsvHiPaF6voR4juej
LTC: LRoeyxsxi5XiFGJgBnFnJM3rDhrXTzGH28
This file contains 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
{ | |
"ADT/LTC": 94, | |
"ADT/XPM": 113, | |
"ALF/BTC": 57, | |
"AMC/BTC": 43, | |
"ANC/BTC": 66, | |
"ANC/LTC": 121, | |
"ARG/BTC": 48, | |
"ASC/LTC": 111, | |
"ASC/XPM": 112, | |
"BET/BTC": 129, | |
"BQC/BTC": 10, | |
"BTB/BTC": 23, | |
"BTE/BTC": 49, | |
"BTG/BTC": 50, | |
"BUK/BTC": 102, | |
"CAP/BTC": 53, | |
"CENT/LTC": 97, | |
"CENT/XPM": 118, | |
"CGB/BTC": 70, | |
"CGB/LTC": 123, | |
"CLR/BTC": 95, | |
"CMC/BTC": 74, | |
"CNC/BTC": 8, | |
"CNC/LTC": 17, | |
"COL/LTC": 109, | |
"COL/XPM": 110, | |
"CPR/LTC": 91, | |
"CRC/BTC": 58, | |
"CSC/BTC": 68, | |
"DBL/LTC": 46, | |
"DEM/BTC": 131, | |
"DGC/BTC": 26, | |
"DGC/LTC": 96, | |
"DMD/BTC": 72, | |
"DOGE/BTC": 132, | |
"DVC/LTC": 52, | |
"DVC/XPM": 122, | |
"ELC/BTC": 12, | |
"ELP/LTC": 93, | |
"EMD/BTC": 69, | |
"EZC/LTC": 55, | |
"FLO/LTC": 61, | |
"FRC/BTC": 39, | |
"FRK/BTC": 33, | |
"FST/BTC": 44, | |
"FST/LTC": 124, | |
"FTC/BTC": 5, | |
"GDC/BTC": 82, | |
"GLC/BTC": 76, | |
"GLD/BTC": 30, | |
"GLD/LTC": 36, | |
"GLX/BTC": 78, | |
"GME/LTC": 84, | |
"HBN/BTC": 80, | |
"IFC/LTC": 60, | |
"IFC/XPM": 105, | |
"IXC/BTC": 38, | |
"JKC/LTC": 35, | |
"KGC/BTC": 65, | |
"LK7/BTC": 116, | |
"LKY/BTC": 34, | |
"LTC/BTC": 3, | |
"MEC/BTC": 45, | |
"MEC/LTC": 100, | |
"MEM/LTC": 56, | |
"MNC/BTC": 7, | |
"MST/LTC": 62, | |
"NBL/BTC": 32, | |
"NEC/BTC": 90, | |
"NET/LTC": 108, | |
"NET/XPM": 104, | |
"NMC/BTC": 29, | |
"NRB/BTC": 54, | |
"NVC/BTC": 13, | |
"ORB/BTC": 75, | |
"PHS/BTC": 86, | |
"PPC/BTC": 28, | |
"PPC/LTC": 125, | |
"PTS/BTC": 119, | |
"PXC/BTC": 31, | |
"PXC/LTC": 101, | |
"PYC/BTC": 92, | |
"Points/BTC": 120, | |
"QRK/BTC": 71, | |
"QRK/LTC": 126, | |
"RED/LTC": 87, | |
"RYC/LTC": 37, | |
"SBC/BTC": 51, | |
"SBC/LTC": 128, | |
"SPT/BTC": 81, | |
"SRC/BTC": 88, | |
"SXC/LTC": 98, | |
"TAG/BTC": 117, | |
"TEK/BTC": 114, | |
"TGC/BTC": 130, | |
"TIX/LTC": 107, | |
"TIX/XPM": 103, | |
"TRC/BTC": 27, | |
"UNO/BTC": 133, | |
"WDC/BTC": 14, | |
"WDC/LTC": 21, | |
"XJO/BTC": 115, | |
"XNC/LTC": 67, | |
"XPM/BTC": 63, | |
"XPM/LTC": 106, | |
"YAC/BTC": 11, | |
"YAC/LTC": 22, | |
"ZET/BTC": 85, | |
"ZET/LTC": 127 | |
} |
This file contains 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
#!/usr/bin/env python | |
import requests | |
import json | |
r = requests.get("http://pubapi.cryptsy.com/api.php?method=marketdatav2") | |
m = r.json()['return']['markets'] | |
d = dict([(k, int(v['marketid'])) for k, v in m.iteritems()]) | |
print json.dumps(d, sort_keys=True, indent=4, separators=(',', ': ')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. Works on my Linux laptop, but on my FreeBSD 9.3 server:
Python 2.7.8 (default, Oct 3 2014, 22:32:59)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
I'll investigate and report back