Bitcoin Forum
August 03, 2021, 12:17:35 AM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Btcchina API discussion  (Read 2967 times)
qxzn
Hero Member
*****
Offline Offline

Activity: 609
Merit: 505



View Profile
November 09, 2013, 07:03:51 AM
 #1

Up until today, I had been using https://data.btcchina.com/data/orderbook for the order book, but it stopped updating when things got busy. I discovered that the authenticated API has an order book method: "getMarketDepth" that is updating properly (though it sends a warning that the method is deprecated).

Now trade data is another story. Again, https://data.btcchina.com/data/trades is not updating. Yet there must be a real time feed somewhere, as BitcoinWisdom is getting updates as I write this. Does anyone know how?

Please use this thread to collect other tips about the Btcchina API.

Also, a copy of the API documentation can be found here (the documentation wiki site is currently down): https://github.com/timmolter/XChange/issues/191#issuecomment-27330764
1627949855
Hero Member
*
Offline Offline

Posts: 1627949855

View Profile Personal Message (Offline)

Ignore
1627949855
Reply with quote  #2

1627949855
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
cosurgi
Sr. Member
****
Offline Offline

Activity: 298
Merit: 250


View Profile
November 23, 2013, 03:07:34 AM
 #2

Hi,

did you manage to find btcchina api with trade info?

I want to add BTC/CNY to my charts http://153.19.40.40/~jkozicki/use/graphs/ but I can't find a place to download trades data.

qxzn
Hero Member
*****
Offline Offline

Activity: 609
Merit: 505



View Profile
November 23, 2013, 11:27:04 AM
 #3

https://data.btcchina.com/data/trades seems to be working intermittently (not at this moment, but I think it was earlier today)
naur
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
November 23, 2013, 02:54:09 PM
 #4

https://data.btcchina.com/data/trades seems to be working intermittently (not at this moment, but I think it was earlier today)


Btcchina API is very unstable.
Their system usually can't login and can't trade in the peak of transaction time.
Their IT guys is a group of shits.
btcticker
Full Member
***
Offline Offline

Activity: 131
Merit: 100


View Profile
November 23, 2013, 06:02:12 PM
 #5

Up until today, I had been using https://data.btcchina.com/data/orderbook for the order book, but it stopped updating when things got busy. I discovered that the authenticated API has an order book method: "getMarketDepth" that is updating properly (though it sends a warning that the method is deprecated).

Now trade data is another story. Again, https://data.btcchina.com/data/trades is not updating. Yet there must be a real time feed somewhere, as BitcoinWisdom is getting updates as I write this. Does anyone know how?

Please use this thread to collect other tips about the Btcchina API.

Also, a copy of the API documentation can be found here (the documentation wiki site is currently down): https://github.com/timmolter/XChange/issues/191#issuecomment-27330764

I'm interested as well how other sites are getting the trading data when the usual api url appears to be returning nothing.......

btcticker
Full Member
***
Offline Offline

Activity: 131
Merit: 100


View Profile
November 23, 2013, 06:28:14 PM
 #6

Looks like it's from here https://data.btcchina.com/data/historydata?since=5000

Where 5000 is the tradeid. Never knew that existed. Much better than the url I was using Smiley

OhShei8e
Legendary
*
Offline Offline

Activity: 1540
Merit: 1022



View Profile
November 23, 2013, 11:09:45 PM
 #7

Hi,

did you manage to find btcchina api with trade info?

I want to add BTC/CNY to my charts http://153.19.40.40/~jkozicki/use/graphs/ but I can't find a place to download trades data.

What do you using for plotting these? I use RRDS but I don't have candlesticks with this.
cosurgi
Sr. Member
****
Offline Offline

Activity: 298
Merit: 250


View Profile
November 24, 2013, 10:49:01 AM
 #8

What do you using for plotting these? I use RRDS but I don't have candlesticks with this.
gnuplot

OhShei8e
Legendary
*
Offline Offline

Activity: 1540
Merit: 1022



View Profile
November 27, 2013, 12:01:31 AM
 #9

What do you using for plotting these? I use RRDS but I don't have candlesticks with this.
gnuplot

Thank you! I will check this out.
Cortex7
Full Member
***
Offline Offline

Activity: 238
Merit: 106


View Profile
August 01, 2014, 02:04:32 PM
 #10

So the other day I contacted BTC china:

Quote
...

At the moment your API has this command:

//return 10 trade records starting from id 5000.
https://data.btcchina.com/data/historydata?since=5000&limit=10

----------------------------------------------------------------------------------

My Question: Would it be possible for you to add this command option:

//return 10 trade records where trade_unix_time >= 1383374245
https://data.btcchina.com/data/historydata?date=1383374245&limit=10

----------------------------------------------------------------------------------

Of course I thought my request was entering "maybe space".

I was suprised and pleased when I got a reply email within 24 hours:

Quote
Upon your request, we just finish the API that you want.

See more details here:
http://btcchina.org/api-market-data-documentation-en?&#trade_history

One simple example:
//return 10 trade records where trade_unix_time >= 1383374245
https://data.btcchina.com/data/historydata?since=1383374245&sincetype=time&limit=10


Very nice!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!