Does BTC-E have an API for alternate currencies?

5

2

BTC-E appears to have an API available at https://btc-e.com/api/1/ticker but this only lists the BTC/USD pair data. They also offer pairs of BTC against alternate currencies like Ixcoin and Tenebrix. I've tried the obvious stuff a la https://btc-e.com/api/2/ticker but no dice.

I'll take an API from any other multi-currency exchange as well, really I just need a way to grab price easily from code without having to scrape HTML and deal with regex.

David Perry

Posted 2011-10-06T23:44:29.240

Reputation: 13 848

I am interested in this, too. Sent a PM yesterday but no answer yet.kermit 2011-10-07T14:15:16.820

@phelix - see my answer. Not the best answer, but this is what we have.ripper234 2011-10-07T16:06:35.057

Answers

7

dodoking

Posted 2011-10-06T23:44:29.240

Reputation: 26

1Looks like they finally implemented the /api/#/... stuff for the alternate currencies. As for the number of links, keep asking & answering questions, you get more privileges with more rep, and that includes more links. Right now the automated system is still trying to decide if you're a spammer or not ;)David Perry 2012-01-16T21:20:00.790

Thank you for the explanation on the privileges. Glad I could help with the information on the API's :)dodoking 2012-01-17T23:11:13.360

1

I didn't find a working API, if all you need is the price then you can just parse their html. I just used these regexes for the min/max prices and averaged them:

<span id='min_price'>(\\d+(?:\\.)\\d+)
<span id='max_price'>(\\d+(?:\\.)\\d+)

ripper234

Posted 2011-10-06T23:44:29.240

Reputation: 25 192