Bitcoin Forum

Bitcoin => Project Development => Topic started by: davout on February 04, 2011, 10:35:23 PM



Title: Bitcoin-Central.net gets an API !
Post by: davout on February 04, 2011, 10:35:23 PM
Bitcoin Central now features a full fledged API that allows any user action to be fully and securely automated using XML or JSON posted data.

Authentication is possible using the user and password passed as parameters or a timestamped token.


Title: Re: Bitcoin-Central.net gets an API !
Post by: grondilu on February 05, 2011, 12:39:54 AM
Wow this sounds pretty cool.  Does that mean that we'll be able to implement our own tradebots?

Where is the doc?


Title: Re: Bitcoin-Central.net gets an API !
Post by: davout on February 05, 2011, 08:39:07 AM
Where is the doc?
Right now there's absolutely none, feel free to edit the github wiki.
Questions welcome


Title: Re: Bitcoin-Central.net gets an API !
Post by: ColdHardMetal on February 05, 2011, 09:24:14 AM
Where is the doc?

Right now there's absolutely none
, feel free to edit the github wiki.
Questions welcome

Spoken like a true coder lol


Title: Re: Bitcoin-Central.net gets an API !
Post by: sonba on July 01, 2011, 01:57:49 PM
Hi Davout,

is the API still working or did you shut it down? Was searchin for the commands but couldn't find it.


Title: Re: Bitcoin-Central.net gets an API !
Post by: davout on July 01, 2011, 03:26:31 PM
Hi Davout,

is the API still working or did you shut it down? Was searchin for the commands but couldn't find it.
Depends on which parts :)


Title: Re: Bitcoin-Central.net gets an API !
Post by: sonba on July 01, 2011, 07:33:50 PM
Especially the orderbook part :) (i.e. read orderbook in currency x)
If it's possible to place, view, and cancel orders that would also be interesting, of course.


Title: Re: Bitcoin-Central.net gets an API !
Post by: nimnul on July 13, 2011, 04:08:37 PM
Is it possible to get orderbook/market depth?


Title: Re: Bitcoin-Central.net gets an API !
Post by: davout on July 13, 2011, 04:31:29 PM
You can get the full orderbook here :

In HTML
Code:
https://bitcoin-central.net/account/trade_orders/book

In XML
Code:
https://bitcoin-central.net/account/trade_orders/book.xml

In JSON
Code:
https://bitcoin-central.net/account/trade_orders/book.json

LRUSD orders in JSON
Code:
https://bitcoin-central.net/account/trade_orders/book.json?currency=lrusd

BC is RESTful by design and supports HTTP basic auth. meaning that you can pretty much do whatever you want and pass parameters as a form, in JSON or XML, hasn't been really tested in the wild, so I'll be happy to get bug reports :)

Responses to GET requests usually only support HTML default format, but if you need a JSON/XML response just drop me a line.


Title: Re: Bitcoin-Central.net gets an API !
Post by: sonba on July 13, 2011, 08:05:29 PM
Great, thanks! Gonna test that tomorrow! I guess adding orders via API is not possible, though, right?

Cheers,

sonba


Title: Re: Bitcoin-Central.net gets an API !
Post by: davout on July 13, 2011, 08:24:32 PM
You should be able to, just post something like
Code:
{
  "amount": 10.5,
  "type": "buy",
  "ppc":  14.867,
  "currency": "LRUSD"
}
to
Code:
https://bitcoin-central.net/account/trade_orders
with HTTP auth it should just work.

If it doesn't it's a bug and will get the fix it deserves :)

The API part is mostly untested, so don't hesitate to drop me a line if you have problems.


Title: Re: Bitcoin-Central.net gets an API !
Post by: nimnul on July 18, 2011, 08:14:22 AM
It's a little offtopic, but

1) how do I add bitcoins to my account at bitcoin-central so I can trade? Should I send BTC to the address I see in the top right corner?
2) Is it possible to add LRUSD to my account at bitcoin-central? Or the only way is to trade bitcoins?

These things must be documented.



Title: Re: Bitcoin-Central.net gets an API !
Post by: davout on July 18, 2011, 10:17:41 AM
1) how do I add bitcoins to my account at bitcoin-central so I can trade? Should I send BTC to the address I see in the top right corner?
Yes

2) Is it possible to add LRUSD to my account at bitcoin-central? Or the only way is to trade bitcoins?
Yes, go to your account balances and then click "Deposit funds"

These things must be documented.
Yes, there will be a nice UI facelift by end July, this issue will be addressed.


Title: Re: Bitcoin-Central.net gets an API !
Post by: sonba on September 21, 2011, 05:17:15 PM
You can get the full orderbook here :

In HTML
Code:
https://bitcoin-central.net/account/trade_orders/book

In XML
Code:
https://bitcoin-central.net/account/trade_orders/book.xml

In JSON
Code:
https://bitcoin-central.net/account/trade_orders/book.json

LRUSD orders in JSON
Code:
https://bitcoin-central.net/account/trade_orders/book.json?currency=lrusd

BC is RESTful by design and supports HTTP basic auth. meaning that you can pretty much do whatever you want and pass parameters as a form, in JSON or XML, hasn't been really tested in the wild, so I'll be happy to get bug reports :)

Responses to GET requests usually only support HTML default format, but if you need a JSON/XML response just drop me a line.

Hi Davout,

brief question: https://bitcoin-central.net/account/trade_orders/book.json only returns me an error "HTTP 404 - The requested resource could not be found" - any clue what happened there?

Thanks :)


Title: Re: Bitcoin-Central.net gets an API !
Post by: MasterX on January 10, 2013, 12:27:03 PM
You can get the full orderbook here :

In HTML
Code:
https://bitcoin-central.net/account/trade_orders/book

In XML
Code:
https://bitcoin-central.net/account/trade_orders/book.xml

In JSON
Code:
https://bitcoin-central.net/account/trade_orders/book.json

LRUSD orders in JSON
Code:
https://bitcoin-central.net/account/trade_orders/book.json?currency=lrusd

BC is RESTful by design and supports HTTP basic auth. meaning that you can pretty much do whatever you want and pass parameters as a form, in JSON or XML, hasn't been really tested in the wild, so I'll be happy to get bug reports :)

Responses to GET requests usually only support HTML default format, but if you need a JSON/XML response just drop me a line.

Hi Davout,

brief question: https://bitcoin-central.net/account/trade_orders/book.json only returns me an error "HTTP 404 - The requested resource could not be found" - any clue what happened there?

Thanks :)

+1


Title: Re: Bitcoin-Central.net gets an API !
Post by: davout on January 10, 2013, 01:16:57 PM
That would be https://bitcoin-central.net/order_book.json


Title: Re: Bitcoin-Central.net gets an API !
Post by: Boussac on February 26, 2014, 11:38:25 AM
The doc for the new Bitcoin Central API is here:
https://github.com/Paymium/api-documentation (https://github.com/Paymium/api-documentation)

This new version is deployed as of October 2013.
Thanks to Dave and Stephan!


Title: Re: Bitcoin-Central.net gets an API !
Post by: BitDucho on March 08, 2014, 12:34:38 AM
"Like" Will lokk at during the Week-end, thanks