Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: stcupp on January 13, 2012, 12:17:46 AM



Title: MtGox API question
Post by: stcupp on January 13, 2012, 12:17:46 AM
https://mtgox.com/api
Quote
All of the API methods below have cached results, ticker, depth . . . have a 10 seconds cache . No need to poll more often, you wont have more results, you could just be blocked by the prolexic anti ddos features.

I need to get the prices for all currencies. To do this I would have to go to the ticker for each currency. Eg.
Code:
http://mtgox.com/api/0/data/ticker.php?Currency=USD
http://mtgox.com/api/0/data/ticker.php?Currency=AUD
http://mtgox.com/api/0/data/ticker.php?Currency=EUR
etc.
Will doing this get my server blocked from the DDOS protection?


Title: Re: MtGox API question
Post by: notme on January 13, 2012, 12:20:22 AM
https://mtgox.com/api
Quote
All of the API methods below have cached results, ticker, depth . . . have a 10 seconds cache . No need to poll more often, you wont have more results, you could just be blocked by the prolexic anti ddos features.

I need to get the prices for all currencies. To do this I would have to go to the ticker for each currency. Eg.
Code:
http://mtgox.com/api/0/data/ticker.php?Currency=USD
http://mtgox.com/api/0/data/ticker.php?Currency=AUD
http://mtgox.com/api/0/data/ticker.php?Currency=EUR
etc.
Will doing this get my server blocked from the DDOS protection?

Run it for a few days on your dev box and find out.  Open a support ticket on support.mtgox.com for a direct answer.  They may even change your limits if they agree your application needs special treatment.


Title: Re: MtGox API question
Post by: Revalin on January 13, 2012, 12:21:41 AM
If you want realtime data, you may want to consider the streaming WebSocket API:

https://bitcointalk.org/index.php?topic=5855.0


Title: Re: MtGox API question
Post by: stcupp on January 13, 2012, 06:45:57 AM
If you want realtime data, you may want to consider the streaming WebSocket API:

https://bitcointalk.org/index.php?topic=5855.0

I don't really know much about websockets. Looks like its time to read up on some documentation  :)