本文介绍了如何添加MtGox股票数据到一个网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经试过各种方法,目前是如下:

I've tried various approaches, the current is as follows

$(document).ready(function(){
    $('#stage').click(function(){
jQuery.getJSON('https://mtgox.com/api/1/BTCUSD/ticker?callback=showTick',function(ticker){
            $('div#tickerbox').html(ticker)}
    )})})

失去我的脑海里。 。

Losing my mind . . .

推荐答案

我建的PHP工具来使这个容易,提供纯文本行情,HTML行情,甚至像股票(以及其他工具,如RSS股票资讯提供)。

I built php tools to make this easy , providing pure text tickers, html tickers, and even image ticker( and other tools like rss ticker feeds ).

有一个看code上:

have a look at the code on : https://github.com/neofutur/bitcoin_simple_php_tools

更多细节和例子上:

这些工具包括30秒的缓存系统,所以你不会打API过于频繁,从而避免被防DDOS系统正在blackisted

the tools are including a 30 seconds caching system so you wont hit the api too often and thus avoid being blackisted by the anti-ddos system

我不认为JavaScript是添加mtgox股票最好的主意,但如果你真的希望它是JS,那里有至少一个JavaScript实现,这是Firefox的插件为那些代号:

https://github.com/joric/mtgox-ticker/blob/master/lib/main.js

I dont think javascript is the best idea to add a mtgox ticker, but if you really want it to be js, theres at least one javascript implementation, which is the firefox addon for those tickers : https://github.com/joric/mtgox-tickerhttps://github.com/joric/mtgox-ticker/blob/master/lib/main.js

也知道SE也对比特币相关的问题一个专门的空间:

你也许可以有更多的在这里的答案,所有的比特币使用者都;)

also, know that SE also have a dedicated space for bitcoin related questions : http://bitcoin.stackexchange.comyou could perhaps have had more answers here, where all bitcoiners are ;)

这篇关于如何添加MtGox股票数据到一个网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 21:06