Bitcoin Forum
November 09, 2024, 10:38:04 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: get btc/doge/ltc price in usd API  (Read 1531 times)
shark255 (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
March 25, 2015, 11:28:19 AM
 #1

Can someone advice me a service where I can get usd price of btc/doge/ltc average on last 24h - just needed JSON or plain text return, wihthout html .

Thanks!
emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
March 25, 2015, 11:38:50 AM
 #2

exchanges have ticker api support generally.

for example, for poloniex: https://poloniex.com/public?command=returnTicker

just parse the output w/ json and you're good to go.
esotericizm
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500



View Profile
March 25, 2015, 12:19:37 PM
 #3

exchanges have ticker api support generally.

for example, for poloniex: https://poloniex.com/public?command=returnTicker

just parse the output w/ json and you're good to go.

Doesn't give you the price in USD though. I'm working on an altcoin JSON api for this reason but its still a while away.

Coinmarketcap's API will give you the last trade price in USD (not the 24hr average though afaik) for a given ticker.

http://coinmarketcap-nexuist.rhcloud.com/api/ltc
amacar
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500


View Profile
March 25, 2015, 04:30:13 PM
 #4

You can use bitcoinaverage for btc 24h average price.
JJ12880
Hero Member
*****
Offline Offline

Activity: 671
Merit: 501


Blockchain and stuff


View Profile
March 26, 2015, 12:46:02 AM
 #5

Do you mean something like this?  

http://easybyc.azurewebsites.net/api.aspx


I did this awhile back, not hard at all.
It should be pretty easy to setup for most major coins on bittrex, maybe a few hours tops I think.


JJ

Radium  Bringing Advanced Utility to the Blockchain!
BTC Thread | Telegram
jxm262
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile WWW
March 27, 2015, 05:42:30 AM
 #6

Maybe follow me on github.  I don't have this currently, but will be actively working towards this...

https://github.com/jxm262

my xchange api gives the USD for a few exchanges - https://github.com/jxm262/xchange.js



PM me if you'd like.  Can change my priorities if needed.
emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
March 27, 2015, 09:08:20 AM
 #7

Maybe follow me on github.  I don't have this currently, but will be actively working towards this...

https://github.com/jxm262

my xchange api gives the USD for a few exchanges - https://github.com/jxm262/xchange.js



PM me if you'd like.  Can change my priorities if needed.

cool!

do have any plans to deploy it somewhere with like a JSON api?
coinpr0n
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000



View Profile
March 27, 2015, 09:33:18 AM
 #8

Kraken happens to have all those coins (BTC, DOGE and LTC) on their exchange ... perhaps you can look into using them for your API calls. I'm not sure about the volumes though. They are the highest BTC-EUR exchange but not so sure about USD.

jxm262
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile WWW
March 27, 2015, 02:52:06 PM
 #9

@emrebey

Yeah , eventually.  For the moment, I'm just creating Node modules for other devs to use (so there can be a bunch of websites using the same backing code). 

If you don't plan to make a ton of requests, I can throw up a basic Node server with a Rest endpoint for you.  Just pm me here or on that slack group, would only take me a few mins to do.


Eventually, I'll make a much bigger website with some cool features.  But that will be after I have the infrastructure in place.
jxm262
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile WWW
March 27, 2015, 03:09:28 PM
 #10

Just realized you said 'average on last 24h' .  I have another module for analytics like that Smiley

https://github.com/jxm262/btc-stats
https://www.npmjs.com/package/btc-stats


Again, it's currently just for a few exchanges.  It's part of the plan to add everything though.
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!