Skip to content
Permalink
Browse files

update 2019-10-21

  • Loading branch information
daiki-ojima committed Oct 21, 2019
1 parent 4e2d601 commit 7789e2662f73722c021ef91a2fef6ad90f44873a
Showing with 77 additions and 57 deletions.
  1. +21 −1 CHANGELOG.md
  2. +9 −1 errors.md
  3. +9 −1 errors_JP.md
  4. +19 −27 rest-api.md
  5. +19 −27 rest-api_JP.md
@@ -1,4 +1,24 @@
# CHANGELOG for Bitbank's API (2019-10-03)
# CHANGELOG for Bitbank's API (2019-10-18)
---
## 2019-10-18
* Added new error codes to `errors.md`.
### Rest API
* New order status: REJECTED
* The conditions to become REJECTED are as follows.
* Market order (FOK) does not match the conditions and not fulfilled.
* Limit order quantity is excessive for the order book.
* Changes to order behavior
* The order execution condition for a market order is changed to FOK (Fill or Kill).
* FOK (Fill or Kill) is an order execution condition that rejects (cancels) order if all ordered quantities are not filled.
* Order may become invalid if an excessive quantity is placed against the order book.
* New Exchange status: GET /spot/status
* HALT
* All order and cancel request suspended.
* New Pair statuses: GET /spot/pairs
* is_enabled
* stop_order
* stop_order_and_cancel

---
## 2019-10-03
* Added wscat sample code to `public-stream.md`.
@@ -1,6 +1,6 @@
[日本語](errors_JP.md)

# Error codes for Bitbank (2019-09-27)
# Error codes for Bitbank (2019-10-18)

Here is the format of error JSON payload:

@@ -79,3 +79,11 @@ The following is the list of Bitbank's error codes.
- `70009` Market order has been temporarily restricted. Please use limit order instead.
- `70010` Minimum Order Quantity is increased temporarily.
- `70011` System is busy. Please try again.
- `70012` System error.
- `70013` Order and cancel has been temporarily restricted.
- `70014` Withdraw and cancel request has been temporarily restricted.
- `70015` Lending and cancel request has been temporarily restricted.
- `70016` Lending and cancel request has been restricted.
- `70017` Orders on pair have been suspended.
- `70018` Order and cancel on pair have been suspended.
- `70019` Order cancel request is in process.
@@ -1,6 +1,6 @@
[English](errors.md)

# エラーコード一覧 (2019-09-27)
# エラーコード一覧 (2019-10-18)

プライベートAPIでエラーが起きた場合は下記のようなレスポンスが返ります。

@@ -79,3 +79,11 @@
- 70009 ただいま成行注文を一時的に制限しています。指値注文をご利用ください
- 70010 ただいまシステム負荷が高まっているため、最小注文数量を一時的に引き上げています
- 70011 ただいまリクエストが混雑してます。しばらく時間を空けてから再度リクエストをお願いします
- 70012 システムエラーが発生しました。サポートにお問い合わせ下さい
- 70013 ただいまシステム負荷が高まっているため、注文および注文キャンセルを一時的に制限しています
- 70014 ただいまシステム負荷が高まっているため、出金申請および出金申請キャンセルを一時的に制限しています
- 70015 ただいまシステム負荷が高まっているため、貸出申請および貸出申請キャンセルを一時的に制限しています
- 70016 貸出申請および貸出申請キャンセル停止中のため、リクエストを承ることができません
- 70017 指定された銘柄は注文停止中のため、リクエストを承ることができません
- 70018 指定された銘柄は注文およびキャンセル停止中のため、リクエストを承ることができません
- 70019 注文はキャンセル中です
@@ -28,7 +28,7 @@

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# Private REST API for Bitbank (2019-09-27)
# Private REST API for Bitbank (2019-10-18)

## General API Information

@@ -758,7 +758,7 @@ None
Name | Type | Description
------------ | ------------ | ------------
pair | string | pair
status | string | enum: `NORMAL`, `BUSY`, `VERY_BUSY`
status | string | enum: `NORMAL`, `BUSY`, `VERY_BUSY`, `HALT`
min_amount| string | minimum order amount (The busier the exchange is, the higher the min_amount will be)

**Sample code:**
@@ -768,12 +768,7 @@ min_amount| string | minimum order amount (The busier the exchange is, the highe
<p>

```sh
export API_KEY=___your api key___
export API_SECRET=___your api secret___
export ACCESS_NONCE="$(date +%s)"
export ACCESS_SIGNATURE="$(echo -n "$ACCESS_NONCE/v1/spot/status" | openssl dgst -sha256 -hmac "$API_SECRET")"
curl -H 'ACCESS-KEY:'"$API_KEY"'' -H 'ACCESS-NONCE:'"$ACCESS_NONCE"'' -H 'ACCESS-SIGNATURE:'"$ACCESS_SIGNATURE"'' https://api.bitbank.cc/v1/spot/status
curl https://api.bitbank.cc/v1/spot/status
```

</p>
@@ -818,17 +813,18 @@ name | string | pair name
base_asset | string | base asset
quote_asset | string | quote asset
maker_fee_rate_base | string | maker fee (base asset)
taker_fee_rate_base| string |taker fee (base asset)
maker_fee_rate_quote| string |maker fee (quote asset)
taker_fee_rate_quote| string |taker fee (quote asset)
unit_amount| string | minimum order amount
limit_max_amount| string |max order amount
market_max_amount| string |market order max amount
market_allowance_rate| string |market order allowance rate
price_digits| number | price digits count
amount_digits| number | amount digits count
is_stop_buy| boolean | buy order suspended flag
is_stop_sell| boolean | sell order suspended flag
taker_fee_rate_base | string | taker fee (base asset)
maker_fee_rate_quote | string | maker fee (quote asset)
taker_fee_rate_quote | string | taker fee (quote asset)
unit_amount | string | minimum order amount
limit_max_amount | string | max order amount
market_max_amount | string | market order max amount
market_allowance_rate | string | market order allowance rate
price_digits | number | price digits count
amount_digits | number | amount digits count
is_enabled | boolean | pair enable flag
stop_order | boolean | order suspended flag
stop_order_and_cancel | boolean | order and cancel suspended flag

**Sample code:**

@@ -837,12 +833,7 @@ is_stop_sell| boolean | sell order suspended flag
<p>

```sh
export API_KEY=___your api key___
export API_SECRET=___your api secret___
export ACCESS_NONCE="$(date +%s)"
export ACCESS_SIGNATURE="$(echo -n "$ACCESS_NONCE/v1/spot/pairs" | openssl dgst -sha256 -hmac "$API_SECRET")"
curl -H 'ACCESS-KEY:'"$API_KEY"'' -H 'ACCESS-NONCE:'"$ACCESS_NONCE"'' -H 'ACCESS-SIGNATURE:'"$ACCESS_SIGNATURE"'' https://api.bitbank.cc/v1/spot/pairs
curl https://api.bitbank.cc/v1/spot/pairs
```

</p>
@@ -869,8 +860,9 @@ curl -H 'ACCESS-KEY:'"$API_KEY"'' -H 'ACCESS-NONCE:'"$ACCESS_NONCE"'' -H 'ACCESS
"market_allowance_rate": "string",
"price_digits": 0,
"amount_digits": 0,
"is_stop_buy": true,
"is_stop_sell": true
"is_enabled": true,
"stop_order": false,
"stop_order_and_cancel": false
}
]
}
@@ -29,7 +29,7 @@

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# Private REST API一覧 (2019-09-27)
# Private REST API一覧 (2019-10-18)

## API 概要

@@ -746,7 +746,7 @@ None
Name | Type | Description
------------ | ------------ | ------------
pair | string | 通貨ペア
status | string | 取引所ステータス: `NORMAL`, `BUSY`, `VERY_BUSY`
status | string | 取引所ステータス: `NORMAL`, `BUSY`, `VERY_BUSY`, `HALT`
min_amount| string | 取引所ステータスに応じた最小注文数量(負荷が高いほど大きくなります)


@@ -757,12 +757,7 @@ min_amount| string | 取引所ステータスに応じた最小注文数量(
<p>

```sh
export API_KEY=___your api key___
export API_SECRET=___your api secret___
export ACCESS_NONCE="$(date +%s)"
export ACCESS_SIGNATURE="$(echo -n "$ACCESS_NONCE/v1/spot/status" | openssl dgst -sha256 -hmac "$API_SECRET")"
curl -H 'ACCESS-KEY:'"$API_KEY"'' -H 'ACCESS-NONCE:'"$ACCESS_NONCE"'' -H 'ACCESS-SIGNATURE:'"$ACCESS_SIGNATURE"'' https://api.bitbank.cc/v1/spot/status
curl https://api.bitbank.cc/v1/spot/status
```

</p>
@@ -807,17 +802,18 @@ name | string | 銘柄名
base_asset | string | 原資産
quote_asset | string | クオート資産
maker_fee_rate_base | string | メイカー手数料率(原資産)
taker_fee_rate_base| string |テイカー手数料率(原資産)
maker_fee_rate_quote| string |メイカー手数料率(クオート資産)
taker_fee_rate_quote| string |テイカー手数料率(クオート資産)
unit_amount| string |最小注文数量
limit_max_amount| string |最大注文数量
market_max_amount| string |成行注文時の最大数量
market_allowance_rate| string |成行買注文時の余裕率
price_digits| number |価格切り捨て対象桁数(0起点)
amount_digits| number |数量切り捨て対象桁数(0起点)
is_stop_buy| boolean |買注文停止ステータス
is_stop_sell| boolean |売注文停止ステータス
taker_fee_rate_base | string | テイカー手数料率(原資産)
maker_fee_rate_quote | string | メイカー手数料率(クオート資産)
taker_fee_rate_quote | string | テイカー手数料率(クオート資産)
unit_amount| string | 最小注文数量
limit_max_amount | string | 最大注文数量
market_max_amount | string | 成行注文時の最大数量
market_allowance_rate | string | 成行買注文時の余裕率
price_digits | number | 価格切り捨て対象桁数(0起点)
amount_digits | number | 数量切り捨て対象桁数(0起点)
is_enabled | boolean | 通貨ペアステータス(有効/無効)
stop_order | boolean | 注文停止ステータス
stop_order_and_cancel | boolean | 注文および注文キャンセル停止ステータス


**サンプルコード:**
@@ -827,12 +823,7 @@ is_stop_sell| boolean |売注文停止ステータス
<p>

```sh
export API_KEY=___your api key___
export API_SECRET=___your api secret___
export ACCESS_NONCE="$(date +%s)"
export ACCESS_SIGNATURE="$(echo -n "$ACCESS_NONCE/v1/spot/pairs" | openssl dgst -sha256 -hmac "$API_SECRET")"
curl -H 'ACCESS-KEY:'"$API_KEY"'' -H 'ACCESS-NONCE:'"$ACCESS_NONCE"'' -H 'ACCESS-SIGNATURE:'"$ACCESS_SIGNATURE"'' https://api.bitbank.cc/v1/spot/pairs
curl https://api.bitbank.cc/v1/spot/pairs
```

</p>
@@ -860,8 +851,9 @@ curl -H 'ACCESS-KEY:'"$API_KEY"'' -H 'ACCESS-NONCE:'"$ACCESS_NONCE"'' -H 'ACCESS
"market_allowance_rate": "string",
"price_digits": 0,
"amount_digits": 0,
"is_stop_buy": true,
"is_stop_sell": true
"is_enabled": true,
"stop_order": false,
"stop_order_and_cancel": false
}
]
}

0 comments on commit 7789e26

Please sign in to comment.
You can’t perform that action at this time.