Skip to content

K line information

bitstarcom edited this page Jun 27, 2017 · 1 revision

URI:
  https://www.bitstar.com/api/v1/market/kline/{businessType}/{ktype}?size={size} (GET)
Parameter description:
businessType:See the first chapter(General parameter specification
ktype The kline type
  1min:one minute kline ,
  5min:five minute kline ,
  15min:fifteen minute kline ,
  30min:thirty minute kline ,
  1hour:one hour kline ,
  2hour:two hour kline ,
  4hour:four hour kline ,
  12hour:twelve hour kline ,
  1day:one day kline ,
  1week:one week kline ,
  1month:one month kline
size:the amount of deepth information,not nessary,default 300.
Return value format:

    {   
    	"list":[  
    	       {    
            		"time":<timestamp>,    
            		"open",<open price>,   
            		"high",<highest price>,   
            		"close",<close price>,  
            		"low",<lowest price>,    
            		"vol",<trading volume>  
    	       },   
    	       {    
            		"time":<timestamp>,    
            		"open",<open price>,   
            		"high",<highest price>,   
            		"close",<close price>,  
            		"low",<lowest price>,    
            		"vol",<trading volume>  
    	       },   
    	       ...  
    	]   
    }   

additional illustrations:
time:type is long,vol is the amount of digital cash

Clone this wiki locally