Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc3a40b

Browse files
authored
Merge pull request #270 from achamely/master
add dibcv2 price index
2 parents ba269bc + 638240b commit dc3a40b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

updatePrices.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def getSource(sp):
3737
#89:{"id":"DIBC","source":"coinmarketcap"},
3838
#90:"https://market.bitsquare.io/api/trades?market=sfsc_btc",
3939
#149:{"cmcid":"1642","name":"ALT","source":"coinmarketcap"},
40+
351:{"cmcid":"1612","id":"DIBC","name":"Dibcoin V2","source":"coinmarketcap"},
4041
701:{"cmcid":"3850","id":"OTO","name":"OTOCash","source":"coinmarketcap"},
4142
732:"https://api.dex-trade.com/v1/public/trades?pair=HTDBTC"
4243
}
@@ -129,7 +130,8 @@ def updateBTC():
129130
else:
130131
upsertRate('Fiat', fpid, 'Bitcoin', 0, value, source, timestamp)
131132
if len(new) > 0:
132-
printdebug(("New Symbols not in db",new),5)
133+
#printdebug(("New Symbols not in db",new),5)
134+
printdebug(("New Symbols not in db"),5)
133135
except requests.exceptions.RequestException as e:
134136
#error or timeout, skip for now
135137
printdebug(("Error updating BTC Price",e),3)
@@ -266,6 +268,7 @@ def main():
266268

267269
try:
268270
updatePrices()
271+
printdebug(("Update Complete",now),5)
269272
except Exception as e:
270273
#Catch any issues and stop processing. Try to undo any incomplete changes
271274
print "updatePrices: Problem with ", e

0 commit comments

Comments
 (0)