You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can pass your Access_Token generated from the site as follows:
13
+
You can pass your `apiKey` and `apiSecret` generated from the site as follows:
14
14
15
15
```node
16
-
var client =newHollaEx({ accessToken:MY_ACCESS_TOKEN });
16
+
var client =newHollaEx({ apiKey:<MY_API_KEY>, apiSecret:<MY_API_SECRET> });
17
17
```
18
18
19
+
You can also pass the field `apiExpiresAfter` which is the length of time in seconds each request is valid for. The default value is `60`.
20
+
19
21
There is a list of functions you can call which will be added later and they are not at this point implemented yet.
20
22
21
-
### getTicker
23
+
> -**Note**: v1 has a new authentication mechanism using HMAC signature. HollaEx previously was using JSON Web Token (JWT) which is now changed to HMAC authentication.
24
+
25
+
### Example:
22
26
23
27
```node
24
-
var client =newHollaEx({ accessToken:MY_ACCESS_TOKEN });
28
+
var client =newHollaEx({ apiKey:<MY_API_KEY>, apiSecret:<MY_API_SECRET> });
* @return {string} A stringified JSON object with the keys count(total number of user's deposits) and data(array of deposits as objects with keys id(number), type(string), amount(number), transaction_id(string), currency(string), created_at(string), status(boolean), fee(number), dismissed(boolean), rejected(boolean), description(string))
* @return {string} A stringified JSON object with the keys count(total number of user's withdrawals) and data(array of withdrawals as objects with keys id(number), type(string), amount(number), transaction_id(string), currency(string), created_at(string), status(boolean), fee(number), dismissed(boolean), rejected(boolean), description(string))
* @return {string} A stringified JSON object with the keys count(total number of user's completed trades) and data(array of up to the user's last 50 completed trades as objects with keys side(string), symbol(string), size(number), price(number), timestamp(string), and fee(number))
* @return {string} The selected order as a stringified JSON object with keys created_at(string), title(string), symbol(string), side(string), size(number), type(string), price(number), id(string), created_by(number), filled(number)
* @return {string} The new order as a stringified JSON object with keys symbol(string), side(string), size(number), type(string), price(number), id(string), created_by(number), and filled(number)
* @return {string} The cancelled order as a stringified JSON object with keys symbol(string), side(string), size(number), type(string), price(number), id(string), created_by(number), and filled(number)
0 commit comments