Author

Topic: Embed plaintext price from Bitstamp using API (jsonp?) (Read 1797 times)

jr. member
Activity: 56
Merit: 1
To get around the same origin policy you need to make an HTTP header with:

Code:
Access-Control-Allow-Origin: https://www.bitstamp.net

See http://en.wikipedia.org/wiki/Cross-origin_resource_sharing

newbie
Activity: 35
Merit: 0
How do I fetch Bitstamp's last price quote from their JSON ticker api and have it on my website as plain text?

Here's what I tried with no luck,

Attempt 1)
 
Code:

Buy Price:

Sell Price:


Code:

I was told that it has to be jsonp, and not json (because I'm using an external url source).

Is it possible to use JSONP just from Jquery+HTML+javascript to embed prices in plain text?

If not Bitstamp's api can I use BitcoinChart's, or Blockchain's API?

Jump to: