explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Problem settings Crex as market

Open B1ackt34 opened this issue 5 years ago • 6 comments

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" },

B1ackt34 avatar Oct 22 '20 22:10 B1ackt34

Run npm start after updating settings.json, and then you can run the market sync.

uaktags avatar Oct 23 '20 01:10 uaktags

Now it gives no error but price is always zero

B1ackt34 avatar Oct 24 '20 15:10 B1ackt34

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.

uaktags avatar Oct 24 '20 19:10 uaktags

Ahhh ok, i misunderstood "exchange" :)

B1ackt34 avatar Oct 24 '20 20:10 B1ackt34

mongo
use explorerdb
db.markets.drop()
db.markets.insert({market: "crex"})
exit
cd explorer/scripts/
node sync.js market

swordfish6975 avatar Mar 02 '21 11:03 swordfish6975

Thank you!

B1ackt34 avatar Mar 02 '21 19:03 B1ackt34