File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ wrapper for upbit API
3
3
4
4
### Installation
5
5
``` sh
6
- $ npm run ci
6
+ $ npm ci
7
7
```
8
8
9
9
### Build
@@ -18,6 +18,15 @@ wrapper for upbit API
18
18
$ npm run format # Check prettier
19
19
```
20
20
21
+ ### How to Use
22
+ ``` typescript
23
+ import * as ApiUpbit from ' node-upbit-api' ;
24
+
25
+ new ApiUpbit (' accessKey' , ' secretKey' ).getAccounts ().then ((accounts ) => {
26
+ console .log (accounts );
27
+ });
28
+ ```
29
+
21
30
### Available API List
22
31
- Exchange API
23
32
- Assets
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { v4 as uuidV4 } from 'uuid';
22
22
/**
23
23
* UPBIT API DOCUMENTS: https://docs.upbit.com/docs
24
24
*/
25
- export class ApiUpbit {
25
+ export default class ApiUpbit {
26
26
/**
27
27
* UPBIT API Authorization Policy
28
28
* Get Authroization Key: https://upbit.com/service_center/open_api_guide
Original file line number Diff line number Diff line change 1
1
import { GetOrdersResponse } from './get-orders-response.interface' ;
2
2
3
- export type PostOrdersResponse = GetOrdersResponse & { avg_price : string } ;
3
+ export type PostOrdersResponse = GetOrdersResponse & {
4
+ /** Average Price */
5
+ avg_price : string ;
6
+ } ;
You can’t perform that action at this time.
0 commit comments