Pages:
Author

Topic: I Need a Newbs Noob Guide to Accessing the Mt Gox API - page 2. (Read 4607 times)

hero member
Activity: 728
Merit: 500
I don't think I emphasized my ignorance enough. Thank you for your help though. Once I get to the point where I know what you are talking about, it will be useful.
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
You don't.  You get the depth as of now, and only a slice around the current price.

To automate it on Unix, create a cron job like this:

Code:
* * * * * curl https://mtgox.com/api/0/data/getDepth.php > `date +mtgox-%F--%T`

That will dump it to a new file once a minute.  Better find another way to store it before you get buried in files.  Smiley
hero member
Activity: 728
Merit: 500
Thanks, but how do I expand the range?

Also, I would like to automate this but maybe that is too annoying of a question to ask. If noone wants to help with that I understand, I will return when I have messed around in the commandline and with some scripts.
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
Step 1: Fetch https://mtgox.com/api/0/data/getDepth.php?Currency=USD

Step 2: save it somewhere.

Repeat as desired.


For the link:
Code:
[url=https://bitcointalk.org/index.php?topic=6019.0]sierrachartfeed-0.4[/url]
hero member
Activity: 728
Merit: 500
So I would like to start sampling and saving the mt gox order book and price info for analysis. I am able to gather the trade history using slush's sierrachartfeed script, but no orderbook info.

The most complicated thing I have ever programmed was a perl script that asked for username and password then attempted to play blackjack with you and failed.

It would be most convenient if this would work on windows xp, but I can install some linux distro if recommended.

Also what is the forum code to make my links like this (html example):
Code:
Pages:
Jump to: