Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem settings Crex as market #423

Open
B1ackt34 opened this issue Oct 22, 2020 · 6 comments
Open

Problem settings Crex as market #423

B1ackt34 opened this issue Oct 22, 2020 · 6 comments

Comments

@B1ackt34
Copy link

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

@uaktags
Copy link
Collaborator

uaktags commented Oct 23, 2020

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

@B1ackt34
Copy link
Author

Now it gives no error but price is always zero

@uaktags
Copy link
Collaborator

uaktags commented Oct 24, 2020

set this

"exchange": "crex",

to

"exchange": "btc",

in your settings.json.

var url=base_url + '/tickers?instrument=' + coin.toUpperCase() + '-' + exchange.toUpperCase();

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.

@B1ackt34
Copy link
Author

Ahhh ok, i misunderstood "exchange" :)

@swordfish6975
Copy link

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

@B1ackt34
Copy link
Author

B1ackt34 commented Mar 2, 2021

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants