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

Use better endpoint for bittrex pct-chg scripts #9

Open
nmielnik opened this issue Dec 27, 2017 · 0 comments
Open

Use better endpoint for bittrex pct-chg scripts #9

nmielnik opened this issue Dec 27, 2017 · 0 comments

Comments

@nmielnik
Copy link
Owner

Right now the pct-chg-bittrex and trade-bittrex scripts are both querying for the last 200 trades for each coin individually, and building up a cache over time to monitor big swings. However, since it's on the last 200 trades, for coins with a lot of volume the script can't built up much of a history until it's been running for a while.

There is a public url that's not documented which could make this a lot easier to do, since it's the same url used to get the candlestick data for generating the graphs (this is the exact kind of data needed by the script)

https://bittrex.com/Api/v2.0/pub/market/GetTicks?marketName=BTC-ARK&tickInterval=oneMin

That url should work for any coin, changing BTC-ARK to be any specific pair...from there, might even be able to get the last ticker value for all coins in a single query and just ping that every 30 seconds or so...we'll see.

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

1 participant