Passed
Push — develop ( 4fbefd...2501c0 )
by Johan
02:45
created

index.js   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 11
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 17
ccs 4
cts 4
cp 1
crap 1
rs 9.85
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
})();