LBank-exchange / lbank-official-api-docs

Official Documentation for the LBank
https://www.lbank.com
30 stars 20 forks source link

kline endpoint broken #15

Open AwooOOoo opened 5 years ago

AwooOOoo commented 5 years ago

Hi, The kline endpoint is not working. The documentation lists all 4 parameters as being required (symbol, size, type and time), but there is a problem with 'type'.

If you include all parameters except 'type' you get a 10001 error (as expected since type was missing);

https://api.lbkex.com/v1/kline.do?symbol=eth_btc&size=5&time=1541240612147

Response:

{
    "result": "false",
    "error_code": 10001
}

If you include all parameters, you get an internal server error (10000).

https://api.lbkex.com/v1/kline.do?symbol=eth_btc&type=hour1&size=5&time=1541240718783

Response:

{
    "result": "false",
    "error_code": 10000
}

Can you please fix this endpoint?

Thankyou

AwooOOoo commented 5 years ago

I found the problem, it was my mistake. The time parmeter is in 'seconds', I used milliseconds.

The following example works fine...

https://api.lbank.info/v1/kline.do?symbol=eth_btc&type=minute1&size=5&time=1541240718

taylorshuang commented 5 years ago

There are too many errors in their api doc.