Bitcoin Forum
December 18, 2017, 09:08:58 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: get Bitcoin price using asp.net  (Read 1451 times)
kieran5405
Newbie
*
Offline Offline

Activity: 16


View Profile
May 14, 2013, 02:44:08 PM
 #1


Hi,

Does anyone know how to get the buying and selling bitcoin price using .NET from the mt gox or similar site . 

I have looked at the API sites and nothing seems to be aimed at .NET.

Thanks for any pointers and help...
1513631338
Hero Member
*
Offline Offline

Posts: 1513631338

View Profile Personal Message (Offline)

Ignore
1513631338
Reply with quote  #2

1513631338
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513631338
Hero Member
*
Offline Offline

Posts: 1513631338

View Profile Personal Message (Offline)

Ignore
1513631338
Reply with quote  #2

1513631338
Report to moderator
n8rwJeTt8TrrLKPa55eU
Hero Member
*****
Offline Offline

Activity: 588



View Profile
May 14, 2013, 03:52:47 PM
 #2

First, use System.Net.WebClient to retrieve the content from

http://data.mtgox.com/api/2/BTCUSD/money/ticker

Then, depending on how complex you wanna get, either just parse the result via Regex.Match to extract the "last" trade value, or alternatively the built-in DataContractJsonSerializer to map to a .NET class, or the built-in JsonReaderWriterFactory.CreateJsonReader will create XML from JSON, or find some free add-on libraries that will parse JSON (e.g. http://json.codeplex.com/).
kieran5405
Newbie
*
Offline Offline

Activity: 16


View Profile
May 15, 2013, 09:25:28 AM
 #3


cheers for that...got it working with ur help...
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!