bittrex-typescript
TypeScript icon, indicating that this package has built-in type declarations

2.1.6 • Public • Published

bittrex-typescript client

Greenkeeper badge

npm version Dependency Status Build Status

About

I looked at all of the bittrex API clients that I could find. None of them supported HTTP KeepAlive. None of them did TypeScript generics well. All of them needed help. So, what else do you do? Write your own.

I'm open to a PR for removing the Node dependencies and making this work in a browser. This will likely require replacing got as the HTTP client. Maybe something with the Fetch API?

I'd like to take the good parts from agentkeepalive and just use them to see if there is any real performance benefits.

Todo: Implement the websockets portion of the API.

Usage

yarn add bittrex-typescript
import {BittrexClient} from 'bittrex-typescript';

const bittrex = new BittrexClient({
    key: '',
    secret: ''
    agent: true // Turn on HTTP KeepAlive
});

bittrex.ticker('BTC-NEO').then((ticker) => {
    console.log(ticker);
}, (error) => {
    console.log(error);
});

Donate BTC: 18zrUSJzvtxDmaGaThAZuR1GPMe2jwjmxW

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.6
    0
    • latest

Version History

Package Sidebar

Install

npm i bittrex-typescript

Weekly Downloads

20

Version

2.1.6

License

MIT

Last publish

Collaborators

  • lookfirst