44<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
55** Table of Contents** * generated with [ DocToc] ( https://github.com/thlorenz/doctoc ) *
66
7- - [ Public REST API for Bitbank (2023-04-27 )] ( #public-rest-api-for-bitbank-2023-04-27 )
7+ - [ Public REST API for Bitbank (2023-11-17 )] ( #public-rest-api-for-bitbank-2023-11-17 )
88 - [ General API Information] ( #general-api-information )
99 - [ General endpoints] ( #general-endpoints )
1010 - [ Ticker] ( #ticker )
1313 - [ Depth] ( #depth )
1414 - [ Transactions] ( #transactions )
1515 - [ Candlestick] ( #candlestick )
16+ - [ Circuit Break Info] ( #circuit-break-info )
1617
1718<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1819
19- # Public REST API for Bitbank (2023-04-27 )
20+ # Public REST API for Bitbank (2023-11-17 )
2021
2122## General API Information
2223
3940
4041Get Ticker information
4142
43+ Except for circuit_break_info.mode is ` NONE ` , sell and buy price possibly cross.
44+
4245``` txt
4346GET /{pair}/ticker
4447```
@@ -84,6 +87,8 @@ response format:
8487
8588Get All Tickers information
8689
90+ Except for circuit_break_info.mode is ` NONE ` , sell and buy price possibly cross.
91+
8792``` txt
8893GET /tickers
8994```
@@ -129,6 +134,8 @@ response format:
129134
130135Get All JPY Pair Tickers information
131136
137+ Except for circuit_break_info.mode is ` NONE ` , sell and buy price possibly cross.
138+
132139``` txt
133140GET /tickers_jpy
134141```
@@ -174,6 +181,17 @@ response format:
174181
175182Get Depth information.
176183
184+ #### In circuit_break_info.mode is ` NONE ` or estimated price is null
185+
186+ - Asks and bids data is restricted to 200 entries each from best bid offer.
187+ - Asks and bids price never cross.
188+
189+ #### In circuit_break_info.mode is not ` NONE ` and estimated price is not null
190+
191+ - Asks and bids data is restricted to 200 entries each around the estimated price. (Max 400 entries)
192+ - Asks and bids price possibly cross.
193+ - asks_under, bids_over possibly includes the quantity of orders which price is out of range.
194+
177195``` txt
178196GET /{pair}/depth
179197```
@@ -190,6 +208,12 @@ Name | Type | Description
190208------------ | ------------ | ------------
191209asks | [ string, string] [ ] | array of [ price, amount]
192210bids | [ string, string] [ ] | array of [ price, amount]
211+ asks_over | string | the quantity of asks over the highest price of asks orders.
212+ bids_under | string | the quantity of bids under the lowest price of bids orders.
213+ asks_under | string | the quantity of asks under the lowest price of asks orders.
214+ bids_over | string | the quantity of bids over the highest price of bids orders.
215+ timestamp | number | published at timestamp
216+ sequenceId | number | sequence id, increased monotonically but not always consecutive
193217
194218response format:
195219
@@ -206,7 +230,13 @@ response format:
206230 [
207231 " string" , " string"
208232 ]
209- ]
233+ ],
234+ "asks_over" : " string" ,
235+ "bids_under" : " string" ,
236+ "asks_under" : " string" ,
237+ "bids_over" : " string" ,
238+ "timestamp" : 0 ,
239+ "sequenceId" : " string"
210240 }
211241}
212242```
@@ -306,3 +336,54 @@ response format:
306336 }
307337}
308338```
339+
340+ ### Circuit Break Info
341+
342+ Get circuit break informations.
343+
344+ ``` txt
345+ GET /{pair}/circuit_break_info
346+ ```
347+
348+ ** Parameters:**
349+
350+ Name | Type | Mandatory | Description
351+ ------------ | ------------ | ------------ | ------------
352+ pair | string | YES | pair enum: [ pair list] ( pairs.md )
353+
354+ ** Response:**
355+
356+ Name | Type | Description
357+ ------------ | ------------ | ------------
358+ mode | string | enum: ` NONE ` , ` CIRCUIT_BREAK ` , ` FULL_RANGE_CIRCUIT_BREAK ` , ` RESUMPTION ` , ` LISTING `
359+ estimated_itayose_price | string \| null | estimated price. Null if mode is ` NONE ` or when there is no estimated price.
360+ estimated_itayose_amount | string \| null | estimated amount. Null if mode is ` NONE ` .
361+ itayose_upper_price | string \| null | itayose price range upper limit. Null if mode is in ` NONE ` , ` FULL_RANGE_CIRCUIT_BREAK ` or ` LISTING ` .
362+ itayose_lower_price | string \| null | itayose price range lower limit. Null if mode is in ` NONE ` , ` FULL_RANGE_CIRCUIT_BREAK ` or ` LISTING ` .
363+ upper_trigger_price | string \| null | upper trigger price. Null if mode is not ` NONE ` .
364+ lower_trigger_price | string \| null | lower trigger price. Null if mode is not ` NONE ` .
365+ fee_type | string | enum: ` NORMAL ` , ` SELL_MAKER ` , ` BUY_MAKER ` , ` DYNAMIC `
366+ reopen_timestamp | number \| null | reopen timestamp(milliseconds). Null if mode is ` NONE ` , or reopen timestamp is undetermined yet.
367+ timestamp | number | ticked at unix timestamp (milliseconds)
368+
369+ For details on ` mode ` and ` fee_type ` , please check the [ Circuit breaker system] ( https://bitbank.cc/docs/circuit-breaker-mode/ ) page.
370+
371+ response format:
372+
373+ ``` json
374+ {
375+ "success" : 1 ,
376+ "data" : {
377+ "mode" : " string" ,
378+ "estimated_itayose_price" : " string" ,
379+ "estimated_itayose_amount" : " string" ,
380+ "itayose_upper_price" : " string" ,
381+ "itayose_lower_price" : " string" ,
382+ "upper_trigger_price" : " string" ,
383+ "lower_trigger_price" : " string" ,
384+ "fee_type" : " string" ,
385+ "reopen_timestamp" : 0 ,
386+ "timestamp" : 0
387+ }
388+ }
389+ ```
0 commit comments