Pages:
Author

Topic: Bitcoin-Central.net API technical support thread (Read 5008 times)

legendary
Activity: 1372
Merit: 1008
1davout
Is there a way to get all account_operations (withouth the pagination stuff)?
No.
We can pull them for you if you request it.

Is there any information about "Real-time updates using Socket.io" ?
It is being used in production, but the API isn't considered stable enough yet to be properly documented.

There have been promises of improvements and big announcements but nothing much moves. Not even answers to our concerns/questions here.

I'm starting to feel a little disappointed in bitcoin-central.
Could you be a little more specific ?
donator
Activity: 2772
Merit: 1019
There have been promises of improvements and big announcements but nothing much moves. Not even answers to our concerns/questions here.

I'm starting to feel a little disappointed in bitcoin-central.
newbie
Activity: 9
Merit: 0
Is there any information about "Real-time updates using Socket.io" ?
donator
Activity: 2772
Merit: 1019
I'm trying to get a csv of account_operations.

Is there a way to get all account_operations (withouth the pagination stuff)?
full member
Activity: 202
Merit: 100
Thank you davout.

Now, I noticed that if one user creates quotes for many thousand EUR, that may significantly drive the quote's rate higher for another user.
This gives me concern that any API user can create many quotes maliciously driving the rate for quotes higher and rendering it impossible for merchants to provide a near-market price when using the invoice API.

Could you please speak to that.
legendary
Activity: 1372
Merit: 1008
1davout
I noticed that after having more than 20 quotes (even expired ones)
Quote

returns only the first 20 quotes instead of showing the whole list of all the quotes.

You'll need to read the "Pagination" section.
full member
Activity: 202
Merit: 100
I noticed that after having more than 20 quotes (even expired ones)
Quote

returns only the first 20 quotes instead of showing the whole list of all the quotes.
legendary
Activity: 1372
Merit: 1008
1davout
I copy-pasted you line
Quote
$ curl -X POST https://bitcoin-central.net/api/v1/trade_orders -d '{ "amount" : 1, "type" : "buy", "currency" : "EUR" }' -u '[email protected]:***' -H 'Content-Type: application/json'
replacing only the username:password part
and I still get
{"error":"Invalid or expired Google Authenticator OTP"}
You need to disable Google Authenticator in order to be able to authenticate against the API for the time being.
A second authentication factor is useless from a security point of view if you can bypass it by hitting an API instead of a web interface.

I'm looking into this issue as we speak, in the meantime the only way to use the API is to disable Google Authenticator.

full member
Activity: 202
Merit: 100
I copy-pasted you line
Quote
$ curl -X POST https://bitcoin-central.net/api/v1/trade_orders -d '{ "amount" : 1, "type" : "buy", "currency" : "EUR" }' -u '[email protected]:***' -H 'Content-Type: application/json'
replacing only the username:password part
and I still get
{"error":"Invalid or expired Google Authenticator OTP"}
legendary
Activity: 1372
Merit: 1008
1davout
Are you sure you're curling it right ?
Here's how I do it. Does it work that way for you ?

Code:
$ curl -X POST https://bitcoin-central.net/api/v1/trade_orders -d '{ "amount" : 1, "type" : "buy", "currency" : "EUR" }' -u '[email protected]:***' -H 'Content-Type: application/json'
{
    "amount": 1.0,
    "created_at": "2013-01-24T18:34:03+01:00",
    "instructed_amount": 1.0,
    "price": null,
    "state": "pending_execution",
    "type": "buy",
    "updated_at": "2013-01-24T18:34:09+01:00",
    "uuid": "d5455fae-0002-4046-a91b-83909b445a7a"
}

$ curl -X GET https://bitcoin-central.net/api/v1/trade_orders/d5455fae-0002-4046-a91b-83909b445a7a -u '[email protected]:***' | python -mjson.tool
{
    "amount": 1.0,
    "created_at": "2013-01-24T18:34:03+01:00",
    "instructed_amount": 1.0,
    "price": null,
    "state": "insufficient_funds",
    "type": "buy",
    "updated_at": "2013-01-24T18:34:09+01:00",
    "uuid": "d5455fae-0002-4046-a91b-83909b445a7a"
}
full member
Activity: 202
Merit: 100
Thank you davout,
I'm now able to login through the website. I logged in and out a couple of times. Then I logged out again and tried the API calls.
I issued the same calls with curl as I already mentioned.
Now with the correct password I get:
{"error":"Invalid or expired Google Authenticator OTP"}
When I enter an incorrect password, I get:
{"error":"Invalid email or password"}

So, even though I can log in on the website, I can't use the API calls.
Please help me.
legendary
Activity: 1372
Merit: 1008
1davout
1. How long will the account be locked for?
You'll need to unlock it from the web interface.

2. Is GAuth required when authenticating via API?
Currently the only authentication mechanism is HTTP Basic, but that leaves out everyone using a second authentication factor.
OAuth2 will be implemented shortly and should solve this problem as well as allowing a much better control over the API security.
full member
Activity: 202
Merit: 100
davout, I was trying to get the hang of using the API, apparently I provided the wrong password a number of times.
Now a curious thing happens. When I submit a request with a correct password

Quote
I get
...
{"error":"Invalid or expired Google Authenticator OTP"}

when I submit a request with an incorrect password

Quote
I get
...
{"error":"Your account is locked"}

Please advise:
1. How long will the account be locked for?
2. Is GAuth required when authenticating via API?

Thanks.
legendary
Activity: 1372
Merit: 1008
1davout
The new API is live.

The remaining calls will now be progressively disabled now that the API v1 is deployed and documented.

You'll find the documentation here : https://gist.github.com/4593591

The online version of it will be updated shortly.
pvz
newbie
Activity: 53
Merit: 0
At this moment I am looking for a interface able to use different exchanges.

I was wondering if it is possible to connect MExBtcAPI with Bitcoin-Central.
Or is there another (generic) interface Bitcoin-Central supports and promotes?

Here is the link:
https://github.com/goncalopp/mexbtcapi

Please let us know.
legendary
Activity: 1372
Merit: 1008
1davout
Please see this thread for an important announcement regarding the API.
legendary
Activity: 1372
Merit: 1008
1davout
Yes, what about orderbook depth and trades (bid/ask) channels?
These are not developed yet.
I'm focusing on the account-specific channel right now.

But the channels you mention will come.
sr. member
Activity: 379
Merit: 250
Yes, what about orderbook depth and trades (bid/ask) channels?
legendary
Activity: 1372
Merit: 1008
1davout
I found only one mentioning of the Socket.IO interface. But I cannot see any datails to be sure whether this interface is up and functional?

Can you clear this question?
The socket.io interface is up and running, the documentation about it is a little outdated because I'm in the process of adding lots of stuff to it.
When I'm done you'll be able to listen in realtime for pretty much any event impacting your account.
If you have a specific question about it I'll happily answer.
sr. member
Activity: 379
Merit: 250
I found only one mentioning of the Socket.IO interface. But I cannot see any datails to be sure whether this interface is up and functional?

Can you clear this question?
Pages:
Jump to: