Skip to content

Commit

Permalink
Upbit Client Version 1.3.4
Browse files Browse the repository at this point in the history
Upbit Client Version 1.3.4
  • Loading branch information
uJhin committed May 21, 2023
1 parent 72179be commit 44a3b5c
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 57 deletions.
44 changes: 33 additions & 11 deletions source/includes/Account.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Account (계좌)

## Account_info (전체 계좌 조회)

내가 보유한 자산 리스트를 보여줍니다.

> Request Example
Expand Down Expand Up @@ -48,29 +49,30 @@ print(resp['result'])
```

### Method

**GET** `/v1/accounts`

### Operation Code

`Account.Account_info`

### 요청 (Request)

No Parameters


### 응답 (Response)

Parameter | Description
-------- | -----------
currency | 화폐를 의미하는 영문 대문자 코드
balance | 주문가능 금액/수량
locked | 주문 중 묶여있는 금액/수량
avg_buy_price | 매수평균가
avg_buy_price_modified | 매수평균가 수정 여부
unit_currency | 평단가 기준 화폐

| Parameter | Description |
| ---------------------- | -------------------------------- |
| currency | 화폐를 의미하는 영문 대문자 코드 |
| balance | 주문가능 금액/수량 |
| locked | 주문 중 묶여있는 금액/수량 |
| avg_buy_price | 매수평균가 |
| avg_buy_price_modified | 매수평균가 수정 여부 |
| unit_currency | 평단가 기준 화폐 |

## Account_wallet (입출금 현황)

입출금 현황 및 블록 상태를 조회합니다.

> Request Example
Expand All @@ -92,6 +94,7 @@ print(resp['result'])
[
{
"currency": "BTC",
"net_state": "BTC",
"wallet_state": "working",
"block_state": "normal",
"block_height": 665013,
Expand All @@ -100,6 +103,7 @@ print(resp['result'])
},
{
"currency": "POWR",
"net_state": "POWR",
"wallet_state": "working",
"block_state": "normal",
"block_height": 11609520,
Expand All @@ -108,6 +112,7 @@ print(resp['result'])
},
{
"currency": "ETH",
"net_state": "ETH",
"wallet_state": "working",
"block_state": "normal",
"block_height": 11609520,
Expand All @@ -116,6 +121,7 @@ print(resp['result'])
},
{
"currency": "ETC",
"net_state": "ETC",
"wallet_state": "working",
"block_state": "normal",
"block_height": 11947575,
Expand All @@ -127,9 +133,11 @@ print(resp['result'])
```

### Method

**GET** `/v1/status/wallet`

### Operation Code

`Account.Account_wallet`

### 요청 (Request)
Expand All @@ -142,7 +150,13 @@ No Parameters
<br/>
입출금 현황 API에서 제공하는 입출금 상태, 블록 상태 정보는 수 분 정도 지연되어 반영될 수 있습니다.
<br/>
본 API는 참고용으로만 사용하시길 바라며 실제 입출금을 수행하기 전에는 반드시 업비트 공지사항 및 입출금 현황 페이지를 참고해주시기 바랍니다.
본 API는 참고용으로만 사용하시길 바라며 실제 입출금을 수행하기 전에는 반드시 업비트 공지사항 및 입출금 현황 페이지를 참고해주시기 바랍니다.
</aside>

<aside class="notice">
<b>네트워크 타입( <code>net_type</code> )이란?</b>
<br/><br/>
디지털 자산 입출금에 활용되는 블록체인 네트워크를 뜻하며, 디지털 자산의 종류에 따라 활용되는 네트워크(체인)이 다를 수 있습니다.
</aside>

### 응답 (Response)
Expand All @@ -164,6 +178,14 @@ No Parameters
화폐를 의미하는 영문 대문자 코드
</td>
</tr>
<tr>
<td>
net_type
</td>
<td>
입출금 네트워크
</td>
</tr>
<tr>
<td>
wallet_state
Expand Down
36 changes: 34 additions & 2 deletions source/includes/Deposit.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ print(resp['result'])
"type": "deposit",
"uuid": "20c84493-6e70-4e54-83ce-90915a19d110",
"currency": "KRW",
"net_type": "KRW",
"txid": "BKD-2021-01-07-82a877188ce61d7b4b3c709dad",
"state": "ACCEPTED",
"created_at": "2021-01-07T11:59:31+09:00",
Expand All @@ -36,6 +37,7 @@ print(resp['result'])
"type": "deposit",
"uuid": "7b34ea4d-fb46-4da1-9172-8dd42b8814f5",
"currency": "KRW",
"net_type": "KRW",
"txid": "BKD-2021-01-06-fd2ba0cc92670c72fba22f78d0",
"state": "ACCEPTED",
"created_at": "2021-01-06T20:42:41+09:00",
Expand Down Expand Up @@ -170,6 +172,14 @@ print(resp['result'])
화폐를 의미하는 영문 대문자 코드
</td>
</tr>
<tr>
<td>
net_type
</td>
<td>
입금 네트워크
</td>
</tr>
<tr>
<td>
txid
Expand Down Expand Up @@ -257,6 +267,7 @@ print(resp['result'])
"type": "deposit",
"uuid": "20c84493-6e70-4e54-83ce-90915a19d110",
"currency": "KRW",
"net_type": "KRW",
"txid": "BKD-2021-01-07-82a877188ce61d7b4b3c709dad",
"state": "ACCEPTED",
"created_at": "2021-01-07T11:59:31+09:00",
Expand Down Expand Up @@ -349,6 +360,14 @@ print(resp['result'])
화폐를 의미하는 영문 대문자 코드
</td>
</tr>
<tr>
<td>
net_type
</td>
<td>
입금 네트워크
</td>
</tr>
<tr>
<td>
txid
Expand Down Expand Up @@ -433,21 +452,25 @@ print(resp['result'])
[
{
"currency": "BTC",
"net_type": "BTC",
"deposit_address": "3NVw2seiTQddGQwc1apqudKxuTqebpyL3s",
"secondary_address": null
},
{
"currency": "ETH",
"net_type": "ETH",
"deposit_address": "0x60dd373f59862d9df776596889b997e24bee42eb",
"secondary_address": null
},
{
"currency": "EOS",
"net_type": "EOS",
"deposit_address": "eosupbitsusr",
"secondary_address": "516252ca-0993-454d-bd8b-6bc9db2d4c25"
},
{
"currency": "XRP",
"net_type": "XRP",
"deposit_address": "raQwCVAJVqjrVm1Nj5SFRcX8i22BhdC9WA",
"secondary_address": "22325934"
},
Expand All @@ -470,6 +493,7 @@ No Parameters
Parameter | Description
---------------- | -----------
currency | 화폐를 의미하는 영문 대문자 코드
net_type | 입금 네트워크
deposit_address | 입금 주소
secondary_address | 2차 입금 주소

Expand All @@ -493,7 +517,8 @@ secret_key = "Your Secret Key"

client = Upbit(access_key, secret_key)
resp = client.Deposit.Deposit_coin_address(
currency='BTC'
currency='BTC',
net_type='BTC'
)
print(resp['result'])
```
Expand All @@ -503,6 +528,7 @@ print(resp['result'])
```json
{
"currency": "BTC",
"net_type": "BTC",
"deposit_address": "3NVw2seiTQddGQwc1apqudKxuTqebpyL3s",
"secondary_address": null
}
Expand All @@ -519,12 +545,14 @@ print(resp['result'])
Parameter | Description
---------------- | -----------
currency * | 화폐를 의미하는 영문 대문자 코드
net_type * | 입금 네트워크

### 응답 (Response)

Parameter | Description
---------------- | -----------
currency | 화폐를 의미하는 영문 대문자 코드
net_type | 입금 네트워크
deposit_address | 입금 주소
secondary_address | 2차 입금 주소

Expand All @@ -548,7 +576,8 @@ secret_key = "Your Secret Key"

client = Upbit(access_key, secret_key)
resp = client.Deposit.Deposit_generate_coin_address(
currency='SNT'
currency='SNT',
net_type='SNT'
)
print(resp['result'])
```
Expand All @@ -567,6 +596,7 @@ print(resp['result'])
```json
{
"currency": "SNT",
"net_type": "SNT",
"deposit_address": "0x72012d8af69263a509af8cd522374fc65c454539",
"secondary_address": null
}
Expand All @@ -583,6 +613,7 @@ print(resp['result'])
Parameter | Description
---------------- | -----------
currency * | 화폐를 의미하는 영문 대문자 코드
net_type * | 입금 네트워크

### 응답 (Response1)

Expand All @@ -597,6 +628,7 @@ message | 요청 결과에 대한 메세지
Parameter | Description
---------------- | -----------
currency | 화폐를 의미하는 영문 대문자 코드
net_type | 입금 네트워크
deposit_address | 입금 주소
secondary_address | 2차 입금 주소

Expand Down
Loading

0 comments on commit 44a3b5c

Please sign in to comment.