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

Bittrex getCandles support #17

Open
talvasconcelos opened this issue Dec 18, 2017 · 1 comment
Open

Bittrex getCandles support #17

talvasconcelos opened this issue Dec 18, 2017 · 1 comment

Comments

@talvasconcelos
Copy link

Hi, would you care about adding getCandles, buy and sell endpoints available for the Bittrex v2.0 API?

Best regards,
Tiago

@passabilities
Copy link
Owner

This will definitely be on the todo list, but since not every exchange offers this data you could just use the internal Bittrex npm package that includes this endpoint.

NOTE: that because the package reference isn't created until the constructor is called, you will have to do this:

let CE = require('crypto-exchange')
let bittrex = new CE.bittrex
bittrex.getcandles({
  marketName: 'USDT-BTC',
  tickInterval: 'fiveMin', // intervals are keywords
}, function( data, err ) {
  console.log( data );
})

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

2 participants