Title: Need VB.NET help with Mt Gox API Post by: binaryblue on July 10, 2011, 06:44:43 PM Hi Bitcoin Forum.
I'm writing a program that needs to grab info from the Mt. Gox API. However, I can't even get the public info (Ticker Data, Market Depth, etc.). I've tried using (with no success): Code: Dim wc As new System.Net.WebClient Below is from a different thread outside the newbies section on this site: The person was able to get the public info though. Code: Function PostWebpageData(ByVal url As String, ByVal Data As String) As String In fact, when I go to http://mtgox.com/code/data/ticker.php (http://mtgox.com/code/data/ticker.php) in firefox, I get a prompt to download the PHP page, which does have info in it. Can anybody show me the code needed to get the public data from Mt. Gox's API? Title: Re: Need VB.NET help with Mt Gox API Post by: runlinux on July 10, 2011, 07:01:27 PM i have a working bot and getting the public API was easy.
let me post a few snippets for you: Code: html = "" From there, you can parse the html and get what you need from it. and for getting your own personal stuff: Code: Sub getBalance() same thing, just parse the html and you can see if it works or not. Title: Re: Need VB.NET help with Mt Gox API Post by: binaryblue on July 10, 2011, 07:16:28 PM Thanks runlinux! Just what I needed.
Title: Re: Need VB.NET help with Mt Gox API Post by: runlinux on July 10, 2011, 07:19:05 PM glad i could help. I was scratching my head for a few weeks trying to get the posting of data working.
now, write a bot and rule the world! |