Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 17 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 0 |
1 | /*jslint node: true, nomen: true, regexp: true, plusplus: true */ |
||
2 | 1 | (function () { |
|
3 | |||
4 | "use strict"; |
||
5 | |||
6 | 1 | const Blockfolio = require("./lib/blockfolio"); |
|
7 | |||
8 | 1 | const PLATFORM = "APIClient", |
|
9 | API_URL = "https://api-v0.blockfolio.com/rest/", |
||
10 | SIGNAL_API = "https://signal-api.blockfolio.com/", |
||
11 | MAGIC_TOKEN = "edtopjhgn2345piuty89whqejfiobh89-2q453", // Common token to pseudo-authenticate API Client |
||
12 | LOCALE = "en-US", |
||
13 | FIAT_CURRENCY = "usd", |
||
14 | PER_SECOND_RATE_LIMIT = 10; // Throttle for the old school API |
||
15 | |||
16 | 1 | module.exports = new Blockfolio(FIAT_CURRENCY, API_URL, MAGIC_TOKEN, LOCALE, PLATFORM, SIGNAL_API, PER_SECOND_RATE_LIMIT); |
|
17 | |||
18 | })(); |