Skip to content

Commit

Permalink
mod
Browse files Browse the repository at this point in the history
  • Loading branch information
you21979 committed Nov 25, 2016
1 parent 72d38dc commit 628cbbe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,32 @@ npm i @you21979/bittrex.com

* https://bittrex.com/Home/Api

## public api

```
var bittrex = require('@you21979/bittrex.com')
var api = bittrex.PublicApi;
api.getMarketSummaries().then(console.log)
```

## private api

* account.json

```
{
"APIKEY":"",
"SECRET":""
}
```

```
var bittrex = require('@you21979/bittrex.com')
var fs = require('fs');
var config = JSON.parse(fs.readFileSync("./account.json", "utf8"));
var api = bittrex.createPrivateApi(config.APIKEY, config.SECRET, "I am Bot")
api.getBalances().then(console.log)
```

## Error Handling

Expand Down

0 comments on commit 628cbbe

Please sign in to comment.