Bitcoin Forum
May 10, 2024, 10:21:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: get Bitcoin price using asp.net  (Read 1526 times)
kieran5405 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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...
1715336492
Hero Member
*
Offline Offline

Posts: 1715336492

View Profile Personal Message (Offline)

Ignore
1715336492
Reply with quote  #2

1715336492
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715336492
Hero Member
*
Offline Offline

Posts: 1715336492

View Profile Personal Message (Offline)

Ignore
1715336492
Reply with quote  #2

1715336492
Report to moderator
1715336492
Hero Member
*
Offline Offline

Posts: 1715336492

View Profile Personal Message (Offline)

Ignore
1715336492
Reply with quote  #2

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

Activity: 588
Merit: 500



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 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


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


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

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!