Problem settings Crex as market
I have edited settings.json to add crex as markets but running
node scripts/sync.js market
it says
error: entry for crex does not exists in markets db.
settings.json looks like
"markets": { "coin": "BTAD", "exchange": "crex", "enabled": ["crex"], "ccex_key" : "Get-Your-Own-Key", "default": "crex" },
Run npm start after updating settings.json, and then you can run the market sync.
Now it gives no error but price is always zero
set this
"exchange": "crex",
to
"exchange": "btc",
in your settings.json.
https://github.com/iquidus/explorer/blob/c6813065cb1fed9d7d55fbc572fef684d516803e/lib/markets/crex.js#L7 The api is calling for "BTAD-CREX" in your current setting which is not a ticker.
Probably could use a better naming scheme for that setting.
Ahhh ok, i misunderstood "exchange" :)
mongo
use explorerdb
db.markets.drop()
db.markets.insert({market: "crex"})
exit
cd explorer/scripts/
node sync.js market
Thank you!